Class EntryChangeContainer
- java.lang.Object
-
- org.apache.directory.api.asn1.ber.AbstractContainer
-
- org.apache.directory.api.ldap.codec.controls.search.entryChange.EntryChangeContainer
-
- All Implemented Interfaces:
Asn1Container
public class EntryChangeContainer extends AbstractContainer
- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description EntryChangeContainer(LdapApiService codec)
Creates a new EntryChangeContainer object.EntryChangeContainer(LdapApiService codec, EntryChange control)
Creates a container with decorator, optionally decorating the supplied Control if it is not a decorator implementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clean()
Clean the containervoid
decorate(EntryChange control)
Checks to see if the supplied EntryChange implementation is a decorator and if so just sets the EntryChangeDecorator to it.EntryChangeDecorator
getEntryChangeDecorator()
void
setEntryChangeDecorator(EntryChangeDecorator control)
Set a EntryChangeControl Object into the container.-
Methods inherited from class org.apache.directory.api.asn1.ber.AbstractContainer
getCurrentTLV, getDecodedBytes, getGrammar, getMaxPDUSize, getNewTlvId, getParentTLV, getState, getStream, getTlvId, getTransition, incrementDecodedBytes, isGathering, isGrammarEndAllowed, rewind, setCurrentTLV, setDecodedBytes, setGathering, setGrammar, setGrammarEndAllowed, setMaxPDUSize, setParentTLV, setState, setStream, setTransition, updateParent
-
-
-
-
Constructor Detail
-
EntryChangeContainer
public EntryChangeContainer(LdapApiService codec)
Creates a new EntryChangeContainer object. We will store one grammar, it's enough ...- Parameters:
codec
- The LDAP service instance
-
EntryChangeContainer
public EntryChangeContainer(LdapApiService codec, EntryChange control)
Creates a container with decorator, optionally decorating the supplied Control if it is not a decorator implementation.- Parameters:
codec
- The LDAP service instancecontrol
- The EntryChange ControlDecorator, or a Control to be wrapped by a new decorator.
-
-
Method Detail
-
getEntryChangeDecorator
public EntryChangeDecorator getEntryChangeDecorator()
- Returns:
- Returns the EntryChangeControl.
-
decorate
public void decorate(EntryChange control)
Checks to see if the supplied EntryChange implementation is a decorator and if so just sets the EntryChangeDecorator to it. Otherwise the supplied control is decorated by creating a new EntryChangeDecorator to wrap the object.- Parameters:
control
- The EntryChange Control to wrap, if it is not a decorator.
-
setEntryChangeDecorator
public void setEntryChangeDecorator(EntryChangeDecorator control)
Set a EntryChangeControl Object into the container. It will be completed by the ldapDecoder.- Parameters:
control
- the EntryChangeControl to set.
-
clean
public void clean()
Clean the container- Overrides:
clean
in classAbstractContainer
-
-