public class ModifyOperationContext extends AbstractChangeOperationContext
logChange
authorizedPrincipal, 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, setLogChange
add, 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, throwReferral
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, 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, throwReferral
public 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
Exception
public 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
NamingException
public String getName()
getName
in interface OperationContext
getName
in class AbstractOperationContext
public ClonedServerEntry getAlteredEntry()
public void setAlteredEntry(ClonedServerEntry alteredEntry)
alteredEntry
- The modified entrypublic String toString()
toString
in class Object
Object.toString()
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.