public class ModifyOperationContext extends AbstractChangeOperationContext
logChangeauthorizedPrincipal, byPassed, dn, EMPTY_CONTROLS, entry, next, previous, requestControls, responseControls, session, throwReferral| Constructor and Description |
|---|
ModifyOperationContext(CoreSession session)
Creates a new instance of ModifyOperationContext.
|
ModifyOperationContext(CoreSession session,
org.apache.directory.shared.ldap.name.DN dn,
List<org.apache.directory.shared.ldap.entry.Modification> modItems)
Creates a new instance of ModifyOperationContext.
|
ModifyOperationContext(CoreSession session,
org.apache.directory.shared.ldap.message.internal.InternalModifyRequest modifyRequest) |
| Modifier and Type | Method and Description |
|---|---|
static List<org.apache.directory.shared.ldap.entry.Modification> |
createModItems(org.apache.directory.shared.ldap.entry.ServerEntry serverEntry,
org.apache.directory.shared.ldap.entry.ModificationOperation modOp) |
ClonedServerEntry |
getAlteredEntry()
Returns the entry after it has been renamed and potentially changed for
Rdn alterations.
|
List<org.apache.directory.shared.ldap.entry.Modification> |
getModItems() |
String |
getName() |
void |
setAlteredEntry(ClonedServerEntry alteredEntry)
Set the modified entry once the operation has been proceced
on the backend.
|
void |
setModItems(List<org.apache.directory.shared.ldap.entry.Modification> modItems)
Set the modified attributes
|
String |
toString() |
getChangeLogEvent, isLogChange, setChangeLogEvent, setLogChangeadd, addRequestControl, addRequestControls, addResponseControl, delete, getByPassed, getDn, getEffectivePrincipal, getEntry, getFirstOperation, getLastOperation, getNextOperation, getPreviousOperation, getRequestControl, getResponseControl, getResponseControlCount, getResponseControls, getSession, hasBypass, hasEntry, hasRequestControl, hasRequestControls, hasResponseControl, hasResponseControls, ignoreReferral, isBypassed, isFirstOperation, isReferralIgnored, isReferralThrown, lookup, lookup, modify, newLookupContext, setAuthorizedPrincipal, setByPassed, setDn, setEntry, setNextOperation, setPreviousOperation, setRequestControls, setSession, throwReferralclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addRequestControl, addRequestControls, addResponseControl, delete, getByPassed, getDn, getEffectivePrincipal, getEntry, getFirstOperation, getLastOperation, getNextOperation, getPreviousOperation, getRequestControl, getResponseControl, getResponseControlCount, getResponseControls, getSession, hasBypass, hasEntry, hasRequestControl, hasRequestControls, hasResponseControl, hasResponseControls, ignoreReferral, isBypassed, isFirstOperation, isReferralIgnored, isReferralThrown, lookup, lookup, modify, newLookupContext, setByPassed, setDn, setEntry, throwReferralpublic ModifyOperationContext(CoreSession session)
public ModifyOperationContext(CoreSession session, org.apache.directory.shared.ldap.name.DN dn, List<org.apache.directory.shared.ldap.entry.Modification> modItems)
dn - the dn of the entry to be modifiedmodItems - the modifications to be performed on the entrypublic ModifyOperationContext(CoreSession session, org.apache.directory.shared.ldap.message.internal.InternalModifyRequest modifyRequest) throws Exception
Exceptionpublic void setModItems(List<org.apache.directory.shared.ldap.entry.Modification> modItems)
modItems - The modified attributespublic List<org.apache.directory.shared.ldap.entry.Modification> getModItems()
public static List<org.apache.directory.shared.ldap.entry.Modification> createModItems(org.apache.directory.shared.ldap.entry.ServerEntry serverEntry, org.apache.directory.shared.ldap.entry.ModificationOperation modOp) throws NamingException
NamingExceptionpublic String getName()
getName in interface OperationContextgetName in class AbstractOperationContextpublic ClonedServerEntry getAlteredEntry()
public void setAlteredEntry(ClonedServerEntry alteredEntry)
alteredEntry - The modified entrypublic String toString()
toString in class ObjectObject.toString()Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.