public interface IPcdContext extends DirContext, IObservable
javax.naming.directory.DirContext:
DeltaLinks.PcdContext is bound
(directly or through intermediate contexts).IPcdAttributes as extension of
AttributesIPcdContext to store their data. The
support for bind -methods is very limited: Only objects that
implement IPcdContext,IRelation and
IPcdLink can be bound this IPcdContext.
Restrictions: The length of atomic names is restricted. Get
the maximum length with the method
IPcdObjectFactory.getMaxLengthAtomicName. This value is
currently 105.
This interface is not intended to be implemented by clients.
IDeltaLink,
IUnit,
IPcdAttribute| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_OBJECT_FACTORIES
Dynamic replacement of object factories
|
static String |
APPLICATION_STATE_FACTORIES
Dynamic replacement of state factories
|
static String |
CRAWLER_OBJECTS
Key for tracking crawled objects
|
static String |
FACTORY_SERVICE_ID |
static String |
PCD_DISABLE_OBJECT_CLASS_CHECK
Deprecated.
not to be used at all
|
static String |
PCD_FILTER
Environment key for filter.
|
static String |
PCD_GL_OBJECT_FACTORY
If this is used as value for the Context.OBJECT_FACTORIES environment
setting, the PCD does not call any semantic object factory but returns
its own objects (IPcdContext etc.)
|
static String |
PCD_GL_STATE_FACTORY |
static String |
PCD_INITIAL_CONTEXT_FACTORY
Name of the initial context factory of the PCD.
|
static String |
PCD_PERSONALIZATION_PRINCIPAL
Environment property key for the principal that is to be used for
personalization.
|
static String |
PCD_REPORTING_PRINCIPAL
Environment property key for the principal that is to be used for
reporting (e.g.
|
static String |
PCD_RETURN_OBJECT_CLASS_IN_ENUMERATIONS
Environment key for enumerations.
|
static String |
PCD_RUNTIME_PERMISSION_CHECK
Environment property that forces the PCD to check the runtime permission.
|
static String |
PCD_SCHEMA_PREFIX
Schema prefix for the PCD.
|
static String |
PCD_USE_NON_PERSONALIZED_COPY_SOURCE
Environment property for specific copy use cases.
|
static String |
PCD_VERSION_CONTROL_ACTIVITY
Key for DTR activity
|
static String |
REQUESTED_INTERFACE
Deprecated.
Use
aspects
instead
|
static String |
UCD_INITIAL_CONTEXT_FACTORY
Name of the initial context factory of the UCD.
|
static String |
UCD_SCHEMA_PREFIX
Schema prefix for the UCD.
|
ADD_ATTRIBUTE, REMOVE_ATTRIBUTE, REPLACE_ATTRIBUTEAPPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES| Modifier and Type | Method and Description |
|---|---|
void |
bind(Name name,
Object obj,
Attributes attrs,
int position)
Binds an object as a child of this context (see DirContext).
|
void |
bind(String name,
Object obj,
Attributes attrs,
int position)
Binds an object to context (see DirContext).
|
void |
copy(Name source,
Name target)
Perform a copy of the source to the target.
|
void |
copy(Name oldName,
Name newName,
boolean recursive)
Perform a (optionally deep) copy of the source to the target.
|
void |
copy(Name oldName,
Name newName,
boolean recursive,
int targetPos)
Perform a (optionally deep) copy of the source to the target.
|
void |
copy(Name oldName,
Name newName,
boolean recursive,
int targetPos,
boolean physically)
Perform a (optionally deep) copy of the source to the target.
|
void |
copy(Name oldName,
Name newName,
boolean recursive,
int targetPos,
boolean physically,
Attributes newAttributes)
Perform a (optionally deep) copy of the source to the target.
|
void |
copy(Name oldName,
Name newName,
boolean recursive,
int targetPos,
boolean physically,
Attributes newAttributes,
String[] attributeFilterStrings)
Performs a (optionally deep) copy of the source to the target.
|
void |
copy(String oldName,
String newName)
Perform a copy of the source to the target.
|
void |
copy(String oldName,
String newName,
boolean recursive)
Perform a (optionally ) copy of the source to the target.
|
void |
copy(String oldName,
String newName,
boolean recursive,
int targetPos)
Perform a (optionally ) copy of the source to the target.
|
void |
copy(String oldName,
String newName,
boolean recursive,
int targetPos,
boolean physically)
Perform a (optionally deep) copy of the source to the target.
|
void |
copy(String oldName,
String newName,
boolean recursive,
int targetPos,
boolean physically,
Attributes newAttributes)
Perform a (optionally deep) copy of the source to the target.
|
void |
copy(String oldName,
String newName,
boolean recursive,
int targetPos,
boolean physically,
Attributes newAttributes,
String[] attributeFilterStrings)
Performs a (optionally deep) copy of the source to the target.
|
IDeltaLink |
createDeltaLink(Name name,
Attributes attributes,
Name target)
Create a DeltaLink as (virtual) subcontext of this context.
|
IDeltaLink |
createDeltaLink(Name name,
Attributes attributes,
Name target,
int position)
Create a DeltaLink as (virtual) subcontext of this context.
|
IDeltaLink |
createDeltaLink(String name,
Attributes attributes,
String target)
Create a DeltaLink as (virtual) subcontext of this context.
|
IDeltaLink |
createDeltaLink(String name,
Attributes attributes,
String target,
int position)
Create a DeltaLink as (virtual) subcontext of this context.
|
DirContext |
createSubcontext(Name name,
Attributes attributes,
int position)
Creates a new subcontext (see DirContext).
|
DirContext |
createSubcontext(String name,
Attributes attributes,
int position)
Creates a new subcontext (see DirContext).
|
void |
destroySubcontext(Name name,
boolean recursive)
Deletes a (optionally deep) Subcontext The personalization of all objects
will be deleted as well.
|
void |
destroySubcontext(Name name,
boolean recursive,
boolean removePersonalization)
Deletes a (optionally deep) Subcontext
|
void |
destroySubcontext(String name,
boolean recursive)
Deletes a (optionally deep) Subcontext.
|
void |
destroySubcontext(String name,
boolean recursive,
boolean removePersonalization)
Deletes a (optionally deep) Subcontext.
|
String |
getAccessUrl()
Returns the unique id of the object, including the schema prefix
|
IAclHandle |
getAclHandle()
This method returns the Acl Handler which allowes you to access the ACL
object and ACE objects.
|
String |
getAtomicName()
Gets the atomic name of the object.
|
Attributes |
getAttributes(Name name,
boolean readOnly)
Retrieves all of the attributes associated with a named object.
|
Attributes |
getAttributes(String name,
boolean readOnly)
Retrieves all of the attributes associated with a named object.
|
int |
getChildPosition(Name name)
Gets the current child position of child specified by name
|
int |
getChildPosition(String name)
Gets the current child position of child specified by name
|
Date |
getDateOfLastChange(Name name)
The method returns the date of the last change that affects this node.
|
Date |
getDateOfLastChange(String name) |
IDlModificationState |
getDlModificationState(Name name)
Return the modification state if this context is a delta link.
|
IDlModificationState |
getDlModificationState(String name)
Return the modification state if this context is a delta link.
|
IUnit |
getUnit(Name name)
Retrieve the unit for the object specified by name (analogous to
getAttributes). |
IUnit |
getUnit(String name)
Retrieve the unit for the object specified by name (analogous to
getAttributes) |
NamingEnumeration |
getWhereUsedList(Name name)
Returns a NamingEnumeration that lists all delta links and simple links
that link to the object specified by the given name
|
NamingEnumeration |
getWhereUsedList(String name)
Returns a NamingEnumeration that lists all delta links and simple links
that link to the object specified by the given name
|
boolean |
isPartOfUnit(Name name)
Checks if context is the part of a unit
|
boolean |
isPartOfUnit(String name)
Checks if context is the part of a unit
|
boolean |
isRootOfUnit(Name name)
Checks if context is the root of a unit
|
boolean |
isRootOfUnit(String name)
Checks if context is the root of a unit
|
NamingEnumeration |
list(Name name,
int fromIndex,
int numberOfEntries)
Returns only a defined sublist containing
numberOfEntries
objects starting with index fromIndex. |
NamingEnumeration |
list(String name,
int fromIndex,
int numberOfEntries) |
NamingEnumeration |
listBindings(Name name,
int fromIndex,
int numberOfEntries)
Returns only a defined sublist containing
numberOfEntries
objects starting with index fromIndex. |
NamingEnumeration |
listBindings(String name,
int fromIndex,
int numberOfEntries) |
NamingEnumeration |
listRelations(Name name,
Attributes matchingAttributes,
RelationDirection direction)
Returns a NamingEnumeration that lists all relations for which the
IPcdContext identified by name is source or target and where the
relations attributes match matchingAttributes (unless matchingAttributes
is null).
|
NamingEnumeration |
listRelations(String name,
Attributes matchingAttributes,
RelationDirection direction)
Returns a NamingEnumeration that lists all relations for which the
IPcdContext identified by name is source or target and where the
relations attributes match matchingAttributes (unless matchingAttributes
is null).
|
int |
listSize(Name name)
Returns the number of objects bound to the context.
|
int |
listSize(String name)
Returns the number of objects bound to the context.
|
void |
modifyAttributes(Name name,
int mod_op,
Attributes attrs)
Modifies the attributes associated with a named object.
|
void |
modifyAttributes(Name name,
ModificationItem[] mods)
Modifies the attributes associated with a named object using an ordered
list of modifications.
|
void |
modifyAttributes(String name,
int mod_op,
Attributes attrs)
Modifies the attributes associated with a named object.
|
void |
modifyAttributes(String name,
ModificationItem[] mods)
Modifies the attributes associated with a named object using an ordered
list of modifications.
|
void |
rebind(Name name,
Object obj,
Attributes attrs,
int position)
Rebinds an object to context (see DirContext).
|
void |
rebind(Name name,
Object obj,
Attributes attrs,
int position,
boolean removePersonalization)
Rebinds an object to context (see DirContext).
|
void |
rebind(String name,
Object obj,
Attributes attrs,
int position)
Rebinds an object to context (see DirContext).
|
void |
rebind(String name,
Object obj,
Attributes attrs,
int position,
boolean removePersonalization)
Rebinds an object to context (see DirContext).
|
void |
removeAttributeModifications(Name name,
String[] attributeIds)
Removes attribute modifications if the context is part of a delta link.
|
void |
removeAttributeModifications(String name,
String[] attributeIds)
Removes attribute modifications if the context is part of a delta link.
|
void |
removeModifications(Name name)
Removes modifications if the context is part of a delta link.
|
void |
removeModifications(String name)
Removes modifications if the context is part of a delta link.
|
void |
rename(Name oldName,
Name newName,
boolean recursive)
Perform a (optionally deep) rename of the source to the target.
|
void |
rename(Name oldName,
Name newName,
boolean recursive,
int targetPos)
Perform a (optionally deep) rename of the source to the target.
|
void |
rename(Name oldName,
Name newName,
boolean recursive,
int targetPos,
Attributes newAttributes)
Perform a (optionally deep) rename of the source to the target.
|
void |
rename(String oldName,
String newName,
boolean recursive)
Perform a (optionally deep) rename of the source to the target.
|
void |
rename(String oldName,
String newName,
boolean recursive,
int targetPos)
Perform a (optionally deep) rename of the source to the target.
|
void |
rename(String oldName,
String newName,
boolean recursive,
int targetPos,
Attributes newAttributes)
Perform a (optionally deep) rename of the source to the target.
|
NamingEnumeration |
search(Name name,
Attributes matchingAttributes,
SearchControls cons)
Allows to use matchingAttributes in combination with SearchControls.
|
NamingEnumeration |
search(Name name,
String filterExpr,
Object[] filterArgs,
SearchControls cons)
Allows to use filter arguments in combination with the filter expression.
|
NamingEnumeration |
search(String name,
Attributes matchingAttributes,
SearchControls cons)
Allows to use matchingAttributes in combination with SearchControls.
|
void |
setChildPosition(Name name,
int position)
Sets a new position for a subobject specified by name.
|
void |
setChildPosition(String name,
int position)
Sets a new position for a subobject specified by name.
|
void |
unbind(Name name,
boolean removePersonalization)
Unbinds (deletes) an object from the context (see DirContext).
|
void |
unbind(String name,
boolean removePersonalization)
Unbinds (deletes) an object from the context (see DirContext).
|
bind, bind, createSubcontext, createSubcontext, getAttributes, getAttributes, getAttributes, getAttributes, getSchema, getSchema, getSchemaClassDefinition, getSchemaClassDefinition, rebind, rebind, search, search, search, search, search, search, searchaddToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbindregisterstatic final String PCD_SCHEMA_PREFIX
static final String PCD_INITIAL_CONTEXT_FACTORY
static final String UCD_SCHEMA_PREFIX
static final String UCD_INITIAL_CONTEXT_FACTORY
static final String PCD_GL_OBJECT_FACTORY
static final String PCD_GL_STATE_FACTORY
static final String PCD_PERSONALIZATION_PRINCIPAL
static final String PCD_REPORTING_PRINCIPAL
static final String PCD_RUNTIME_PERMISSION_CHECK
static final String PCD_USE_NON_PERSONALIZED_COPY_SOURCE
PCD_PERSONALIZATION_PRINCIPAL, the copy source will be the
non-personalized object and the copy target will be personalized.static final String APPLICATION_OBJECT_FACTORIES
static final String APPLICATION_STATE_FACTORIES
@Deprecated static final String REQUESTED_INTERFACE
static final String PCD_RETURN_OBJECT_CLASS_IN_ENUMERATIONS
static final String FACTORY_SERVICE_ID
static final String PCD_FILTER
static final String PCD_VERSION_CONTROL_ACTIVITY
@Deprecated static final String PCD_DISABLE_OBJECT_CLASS_CHECK
static final String CRAWLER_OBJECTS
void bind(Name name, Object obj, Attributes attrs, int position) throws NamingException
name - The name (as instance of Name)attrs - The attributes of objectobj - The object to be boundposition - The position where the object is to be inserted; this has no
effect if this context is not part of a unit. throws
NamingExceptionNamingException - if a naming exception is encounteredvoid bind(String name, Object obj, Attributes attrs, int position) throws NamingException
name - The name (as instance of String)attrs - The attributes of objectobj - The object to be boundposition - The position where the object is to be insertedNamingException - if a naming exception is encounteredvoid rebind(Name name, Object obj, Attributes attrs, int position) throws NamingException
name - The name (as instance of Name)attrs - The attributes of objectobj - The object to be boundposition - The position where the object is to be insertedNamingException - if a naming exception is encounteredvoid rebind(Name name, Object obj, Attributes attrs, int position, boolean removePersonalization) throws NamingException
name - The name (as instance of Name)attrs - The attributes of objectobj - The object to be boundposition - The position where the object is to be insertedremovePersonalization - True if the personalization is to be removed.NamingException - if a naming exception is encounteredvoid rebind(String name, Object obj, Attributes attrs, int position) throws NamingException
name - The name (as instance of String)attrs - The attributes of objectobj - The object to be boundposition - The position where the object is to be insertedNamingException - if a naming exception is encounteredvoid rebind(String name, Object obj, Attributes attrs, int position, boolean removePersonalization) throws NamingException
name - The name (as instance of String)attrs - The attributes of objectobj - The object to be boundposition - The position where the object is to be insertedremovePersonalization - True if the personalization is to be removed.NamingException - if a naming exception is encounteredvoid unbind(Name name, boolean removePersonalization) throws NamingException
name - The name (as instance of Name)removePersonalization - True if the personalization is to be removed.NamingException - if a naming exception is encounteredvoid unbind(String name, boolean removePersonalization) throws NamingException
name - The name (as instance of String)removePersonalization - True if the personalization is to be removed.NamingException - if a naming exception is encounteredDirContext createSubcontext(Name name, Attributes attributes, int position) throws NamingException
name - The name of the subcontext(as instance of Name)attributes - The attributes of the new contextposition - The position where the object is to be insertedNamingException - if a naming exception is encounteredDirContext createSubcontext(String name, Attributes attributes, int position) throws NamingException
name - The name of the subcontext(as instance of String)attributes - The attributes of the new contextposition - The position where the object is to be insertedNamingException - if a naming exception is encounteredIDeltaLink createDeltaLink(Name name, Attributes attributes, Name target) throws NamingException
name - The name of the delta link (as instance of Name)attributes - The attributes of the DeltaLinktarget - The target of the delta link as instance of Name,
which must identify another IPcdContextNamingException - if a naming exception is encounteredIDeltaLink createDeltaLink(String name, Attributes attributes, String target) throws NamingException
name - The name of the delta link (as instance of String
)attributes - The attributes of the DeltaLinktarget - The target of the delta link as instance of
String, which must identify another
IPcdContextNamingException - if a naming exception is encounteredIDeltaLink createDeltaLink(Name name, Attributes attributes, Name target, int position) throws NamingException
name - The name of the delta link (as instance of Name)attributes - The attributes of the DeltaLinktarget - The target of the delta link as instance of Name,
which must identify another IPcdContextposition - The position where the delta link is to be insertedNamingException - if a naming exception is encounteredIDeltaLink createDeltaLink(String name, Attributes attributes, String target, int position) throws NamingException
name - The name of the delta link (as instance of Stringattributes - The attributes of the DeltaLinktarget - The target of the delta link as instance of
String, which must identify another
IPcdContextposition - The position where the delta link is to be insertedNamingException - if a naming exception is encounteredIUnit getUnit(Name name) throws NamingException
getAttributes). The unit of the object is determined by
traversing the hierarchy up to the root and looking for a node that is
marked as unit.name - The name (as instance of Name) of
the objects for which the unit is requested.IUnit, that contains the bound to the given
nameNamingException - if a naming exception is encounteredIUnit getUnit(String name) throws NamingException
getAttributes)name - The name (as instance of String) of
the objects for which the unit is requested.IUnit, that contains the bound to the given
nameNamingException - if a naming exception is encounteredString getAtomicName() throws NamingException
NamingException - if a naming exception is encounteredboolean isRootOfUnit(Name name) throws NamingException
name - the name of the object (given as Name)NamingException - if a naming exception is encounteredboolean isRootOfUnit(String name) throws NamingException
name - the name of the object (given as String)NamingException - if a naming exception is encounteredboolean isPartOfUnit(Name name) throws NamingException
name - the name of the object (given as Name)NamingException - if a naming exception is encounteredboolean isPartOfUnit(String name) throws NamingException
name - the name of the object (given as String)NamingException - if a naming exception is encounteredvoid copy(Name source, Name target) throws NamingException
source - The name of the source (given as Name)target - The name of the target (given as Name)NamingException - is thrown, if the target can't be created (e.g. because
intermediate contexts do not exits).void copy(String oldName, String newName) throws NamingException
oldName - The name of the source (given as String)newName - The name of the target (given as String)NamingException - is thrown, if the target can't be created (e.g. because
intermediate contexts do not exits).void copy(String oldName, String newName, boolean recursive) throws NamingException
oldName - The name of the source (given as String)newName - The name of the target (given as String)recursive - Deep copy optionNamingException - is thrown, if the target can't be created (e.g. because
intermediate contexts do not exits).void copy(String oldName, String newName, boolean recursive, int targetPos) throws NamingException
oldName - The name of the source (given as String)newName - The name of the target (given as String)recursive - Deep copy optiontargetPos - position in the target contextNamingException - is thrown, if the target can't be created (e.g. because
intermediate contexts do not exits).void copy(Name oldName, Name newName, boolean recursive) throws NamingException
oldName - The name of the source (given as Name)newName - The name of the target (given as Name)recursive - Deep copy optionNamingException - is thrown, if the target can't be created (e.g. because
intermediate contexts do not exits).void copy(Name oldName, Name newName, boolean recursive, int targetPos) throws NamingException
oldName - The name of the source (given as Name)newName - The name of the target (given as Name)recursive - Deep copy optiontargetPos - position in the target contextNamingException - is thrown, if the target can't be created (e.g. because
intermediate contexts do not exits).void copy(Name oldName, Name newName, boolean recursive, int targetPos, boolean physically) throws NamingException
oldName - The name of the source (given as Name)newName - The name of the target (given as Name)recursive - Deep copy optiontargetPos - position in the target contextphysically - false if delta links are to be resolvedNamingException - is thrown, if the target can't be created (e.g. because
intermediate contexts do not exits).void copy(String oldName, String newName, boolean recursive, int targetPos, boolean physically) throws NamingException
oldName - The name of the source (given as String)newName - The name of the target (given as String)recursive - Deep copy optiontargetPos - position in the target contextphysically - false if delta links are to be resolvedNamingException - is thrown, if the target can't be created (e.g. because
intermediate contexts do not exits).void copy(Name oldName, Name newName, boolean recursive, int targetPos, boolean physically, Attributes newAttributes) throws NamingException
oldName - The name of the source (given as Name)newName - The name of the target (given as Name)recursive - Deep copy optiontargetPos - position in the target contextphysically - false if delta links are to be resolvednewAttributes - Attributes to add for the target objectNamingException - is thrown, if the target can't be created (e.g. because
intermediate contexts do not exits).void copy(Name oldName, Name newName, boolean recursive, int targetPos, boolean physically, Attributes newAttributes, String[] attributeFilterStrings) throws NamingException
oldName - The name of the source (given as Name)newName - The name of the target (given as Name)recursive - Deep copy optiontargetPos - position in the target contextphysically - false if delta links are to be resolvednewAttributes - Attributes to add for the target objectattributeFilterStrings - Array of strings containing filters for attributes that are to
be excluded from the copy operation.NamingException - is thrown, if the target can't be created (e.g. because
intermediate contexts do not exits).void copy(String oldName, String newName, boolean recursive, int targetPos, boolean physically, Attributes newAttributes) throws NamingException
oldName - The name of the source (given as String)newName - The name of the target (given as String)recursive - Deep copy optiontargetPos - position in the target contextphysically - false if delta links are to be resolvednewAttributes - Attributes to add for the target objectNamingException - is thrown, if the target can't be created (e.g. because
intermediate contexts do not exits).void copy(String oldName, String newName, boolean recursive, int targetPos, boolean physically, Attributes newAttributes, String[] attributeFilterStrings) throws NamingException
oldName - The name of the source (given as String)newName - The name of the target (given as String)recursive - Deep copy optiontargetPos - position in the target contextphysically - false if delta links are to be resolvednewAttributes - Attributes to add for the target objectattributeFilterStrings - Array of strings containing filters for attributes that are to
be excluded from the copy operation.NamingException - is thrown, if the target can't be created (e.g. because
intermediate contexts do not exits).void rename(String oldName, String newName, boolean recursive) throws NamingException
oldName - The name of the source (given as String)newName - The name of the target (given as String)recursive - Deep rename optionNamingException - is thrown, if the target can't be created (e.g. because
intermediate contexts do not exits).void rename(String oldName, String newName, boolean recursive, int targetPos) throws NamingException
oldName - The name of the source (given as String)newName - The name of the target (given as String)recursive - Deep rename optiontargetPos - position in the target contextNamingException - is thrown, if the target can't be created (e.g. because
intermediate contexts do not exits).void rename(String oldName, String newName, boolean recursive, int targetPos, Attributes newAttributes) throws NamingException
oldName - The name of the source (given as String)newName - The name of the target (given as String)recursive - Deep rename optiontargetPos - position in the target contextnewAttributes - New attributes for the renamed objectNamingException - is thrown, if the target can't be created (e.g. because
intermediate contexts do not exits).void rename(Name oldName, Name newName, boolean recursive) throws NamingException
oldName - The name of the source (given as Name)newName - The name of the target (given as Name)recursive - Deep rename optionNamingException - is thrown, if the target can't be created (e.g. because
intermediate contexts do not exits).void rename(Name oldName, Name newName, boolean recursive, int targetPos, Attributes newAttributes) throws NamingException
oldName - The name of the source (given as Name)newName - The name of the target (given as Name)recursive - Deep rename optiontargetPos - position in the target contextnewAttributes - New attributes for the renamed objectNamingException - is thrown, if the target can't be created (e.g. because
intermediate contexts do not exits).void rename(Name oldName, Name newName, boolean recursive, int targetPos) throws NamingException
oldName - The name of the source (given as Name)newName - The name of the target (given as Name)recursive - Deep rename optiontargetPos - position in the target contextNamingException - is thrown, if the target can't be created (e.g. because
intermediate contexts do not exits).void destroySubcontext(String name, boolean recursive) throws NamingException
name - The name of the source (given as Stringrecursive - Deep deleteNamingException - is thrown, if the target can't be created (e.g. because
intermediate contexts do not exits).void destroySubcontext(String name, boolean recursive, boolean removePersonalization) throws NamingException
name - The name of the source (given as Stringrecursive - Deep deleteremovePersonalization - True if the personalization is to be deleted.NamingException - is thrown, if the target can't be created (e.g. because
intermediate contexts do not exits).void destroySubcontext(Name name, boolean recursive) throws NamingException
name - The name of the source (given as Namerecursive - Deep deleteNamingException - is thrown, if the target can't be created (e.g. because
intermediate contexts do not exits).void destroySubcontext(Name name, boolean recursive, boolean removePersonalization) throws NamingException
name - The name of the source (given as Namerecursive - Deep deleteremovePersonalization - True if the personalization is to be deleted.NamingException - is thrown, if the target can't be created (e.g. because
intermediate contexts do not exits).NamingEnumeration getWhereUsedList(String name) throws NamingException
name - The name of context (given as NameNamingException - if a naming exception is encounteredNamingEnumeration getWhereUsedList(Name name) throws NamingException
name - The name of context (given as NameNamingException - if a naming exception is encounteredvoid setChildPosition(String name, int position) throws NamingException
name - The name of context (given as Stringposition - the new positionNamingException - if a naming exception is encounteredvoid setChildPosition(Name name, int position) throws NamingException
name - The name of context (given as Nameposition - the new positionNamingException - if a naming exception is encounteredint getChildPosition(String name) throws NamingException
name - The name of context (given as StringNamingException - if a naming exception is encounteredint getChildPosition(Name name) throws NamingException
name - The name of context (given as NameNamingException - if a naming exception is encounteredNamingEnumeration listRelations(Name name, Attributes matchingAttributes, RelationDirection direction) throws NamingException
name - The name of context (given as NamematchingAttributes - the attributes to search fordirection - source or targetNamingException - if a naming exception is encounteredNamingEnumeration listRelations(String name, Attributes matchingAttributes, RelationDirection direction) throws NamingException
name - The name of context (given as StringmatchingAttributes - the attributes to search fordirection - source or targetNamingException - if a naming exception is encounteredNamingEnumeration list(Name name, int fromIndex, int numberOfEntries) throws NamingException
numberOfEntries
objects starting with index fromIndex. If one or more
objects have to be skipped because of filters or missing permissions, an
EnumerationLimitException is thrown on the last possible call of
NamingEnumeration.hasMore() or
NamingEnumeration.next(). The EnumerationLimitException is
also thrown if the number of entries that was specified is exceeded. The
EnumerationLimitException contains the index of the last entry that was
read from the PCD.
If the numberOfEntries is negative, the enumeration entries
are in reverse order.
This is not supported if filters are used.
name - The name of context (given as NamefromIndex - Start indexnumberOfEntries - number of entries to be returnedNamingException - if a naming exception is encounteredEnumerationLimitExceptionNamingEnumeration list(String name, int fromIndex, int numberOfEntries) throws NamingException
name - The name of context (given as StringfromIndex - Start indexnumberOfEntries - number of entries to be returnedNamingException - if a naming exception is encounteredlist(Name name, int fromIndex, int toIndex)NamingEnumeration listBindings(Name name, int fromIndex, int numberOfEntries) throws NamingException
numberOfEntries
objects starting with index fromIndex. If one or more
objects have to be skipped because of filters or missing permissions, an
EnumerationLimitException is thrown on the last possible call of
NamingEnumeration.hasMore() or
NamingEnumeration.next(). The EnumerationLimitException is
also thrown if the number of entries that was specified is exceeded. The
EnumerationLimitException contains the index of the last entry that was
read from the PCD.name - The name of context (given as NamefromIndex - Start indexnumberOfEntries - number of entries to be returnedNamingException - if a naming exception is encounteredEnumerationLimitExceptionNamingEnumeration listBindings(String name, int fromIndex, int numberOfEntries) throws NamingException
name - The name of context (given as StringfromIndex - Start indexnumberOfEntries - number of entries to be returnedNamingException - if a naming exception is encounteredlistBindings(Name name, int
fromIndex, int toIndex)int listSize(Name name) throws NamingException
name - The name of context (given as Name)NamingException - if a naming exception is encounteredint listSize(String name) throws NamingException
name - The name of context (given as String)NamingException - if a naming exception is encounteredNamingEnumeration search(Name name, Attributes matchingAttributes, SearchControls cons) throws NamingException
name - The name of context (given as Name)matchingAttributes - the attributes to search forcons - the search controls that control the search. If null, the
default search controls are used (equivalent to
(new SearchControls())).NamingException - if a naming exception is encounteredNamingEnumeration search(String name, Attributes matchingAttributes, SearchControls cons) throws NamingException
name - The name of context (given as StringmatchingAttributes - the attributes to search forcons - the search controls that control the search. If null, the
default search controls are used (equivalent to
(new SearchControls())).NamingException - if a naming exception is encounteredNamingEnumeration search(Name name, String filterExpr, Object[] filterArgs, SearchControls cons) throws NamingException
filterExpr are replaced by the
filterArgs using the method
MessageFormat.format(String,Object[]).search in interface DirContextNamingExceptionDirContext.search(javax.naming.Name,
java.lang.String, java.lang.Object[],
javax.naming.directory.SearchControls)IAclHandle getAclHandle() throws NamingException
NamingException - if a naming exception is encounteredString getAccessUrl() throws NamingException
NamingException - if a naming exception is encounteredvoid modifyAttributes(Name name, int mod_op, Attributes attrs) throws NamingException
The parameter mod_op describes the modification operation. The constant
ADD_ATTRIBUTE specifies to add an attribute with the
specified values. If attribute does not exist, create the attribute. The
resulting attribute has a union of the specified value set and the prior
value set. If the attribute is ordered then the specified values are
appended otherwise the values are merged. If the attribute value type is
PcdAttributeValueType.TEXT then the specified locale-text
pairs replace existing locale-text pairs with the same locale.
The constant REPLACE_ATTRIBUTE specifies to replace an
attribute with specified values. If attribute already exists, replaces
all existing values with new specified values. If the attribute does not
exist, creates it. If no value is specified, deletes all the values of
the attribute.
The constant REMOVE_ATTRIBUTE specifies to delete the
specified attribute values from the attribute. The resulting attribute
has the set difference of its prior value set and the specified value
set. If no values are specified, deletes the entire attribute. If the
attribute does not exist, or if some or all members of the specified
value set do not exist, this absence is ignored and the operation
succeeds. If the attribute value type is
PcdAttributeValueType.TEXT, then generally deletes all
locale-text pairs for which the locale is specified. The locale-text pair
for the empty locale is not removed.
modifyAttributes in interface DirContextname - the name of the object whose attributes will be updatedmod_op - the modification operation, one of: ADD_ATTRIBUTE
, REPLACE_ATTRIBUTE,
REMOVE_ATTRIBUTE.attrs - the attributes to be used for the modification; may not be
nullAttributeModificationException - if the modification cannot be completed successfullyNamingException - if a naming exception is encounteredmodifyAttributes(Name, ModificationItem[])void modifyAttributes(String name, int mod_op, Attributes attrs) throws NamingException
modifyAttributes(Name, int, Attributes)for details.modifyAttributes in interface DirContextname - the name of the object whose attributes will be updatedmod_op - the modification operation, one of: ADD_ATTRIBUTE
, REPLACE_ATTRIBUTE,
REMOVE_ATTRIBUTE.attrs - the attributes to be used for the modification; map not be
nullAttributeModificationException - if the modification cannot be completed successfullyNamingException - if a naming exception is encounteredvoid modifyAttributes(Name name, ModificationItem[] mods) throws NamingException
modifyAttributes in interface DirContextname - the name of the object whose attributes will be updatedmods - an ordered sequence of modifications to be performed; may not
be nullAttributeModificationException - if the modifications cannot be completed successfullyNamingException - if a naming exception is encounteredmodifyAttributes(Name, int, Attributes),
ModificationItemvoid modifyAttributes(String name, ModificationItem[] mods) throws NamingException
modifyAttributes(Name, ModificationItem[])for details.modifyAttributes in interface DirContextname - the name of the object whose attributes will be updatedmods - an ordered sequence of modifications to be performed; may not
be nullAttributeModificationException - if the modifications cannot be completed successfullyNamingException - if a naming exception is encounteredvoid removeModifications(Name name) throws NamingException
name - the name of the objectNamingException - if context is not part of a delta link or personalizedvoid removeModifications(String name) throws NamingException
name - the name of the objectNamingException - if context is not part of a delta link or personalizedvoid removeAttributeModifications(Name name, String[] attributeIds) throws NamingException
name - the name of the objectattributeIds - Ids of the attributes that are to be reset. If
null, all attribute modifications will be
removed.NamingException - if context is not part of a delta link or personalizedvoid removeAttributeModifications(String name, String[] attributeIds) throws NamingException
name - the name of the objectattributeIds - Ids of the attributes that are to be reset. If
null, all attribute modifications will be
removed.NamingException - if context is not part of a delta link or personalizedIDlModificationState getDlModificationState(Name name) throws NamingException
name - the name of the objectNamingException - if a naming exception is encounteredIDlModificationStateIDlModificationState getDlModificationState(String name) throws NamingException
name - the name of the objectNamingException - if a naming exception is encounteredIDlModificationStateDate getDateOfLastChange(Name name) throws NamingException
name - the name of the objectNamingException - if a naming exception is encounteredDate getDateOfLastChange(String name) throws NamingException
name - the name of the objectNamingException - if a naming exception is encounteredgetDateOfLastChange(javax.naming.Name)Attributes getAttributes(String name, boolean readOnly) throws NamingException
name - the name of the object from which to retrieve attributesreadOnly - If true, the returned instance of the attributes cannot be
modified. This avoids that the attributes are cloned.NamingException - if a naming exception is encounteredgetAttributes(Name, boolean)Attributes getAttributes(Name name, boolean readOnly) throws NamingException
name - the name of the object from which to retrieve attributesreadOnly - If true, the returned instance of the attributes cannot be
modified. This avoids that the attributes are cloned.NamingException - if a naming exception is encounteredDirContext.getAttributes(javax.naming.Name)| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS
|
[sap.com]
|
api
|
BC-PIN-PCD
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/pcd/gl/api
|
-
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/pcd/gl/api
|
api
|
EP-PIN
|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/semantics/api
|
api
|
EP-PIN
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice