|
SAP NetWeaver 7.30 (SP02) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPcdContext
The basic interface for the persistence objects of the Pcd GL. It adds
following functionality to 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| Field Summary | |
|---|---|
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 intial 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 intial context factory of the UCD. |
static String |
UCD_SCHEMA_PREFIX
Schema prefix for the UCD. |
| Fields inherited from interface javax.naming.directory.DirContext |
|---|
ADD_ATTRIBUTE, REMOVE_ATTRIBUTE, REPLACE_ATTRIBUTE |
| Fields inherited from interface javax.naming.Context |
|---|
APPLET, 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 |
| Method Summary | |
|---|---|
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)
|
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)
|
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)
|
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). |
| Methods inherited from interface javax.naming.directory.DirContext |
|---|
bind, bind, createSubcontext, createSubcontext, getAttributes, getAttributes, getAttributes, getAttributes, getSchema, getSchema, getSchemaClassDefinition, getSchemaClassDefinition, rebind, rebind, search, search, search, search, search, search, search |
| Methods inherited from interface javax.naming.Context |
|---|
addToEnvironment, 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, unbind |
| Methods inherited from interface com.sapportals.portal.pcd.gl.notif.IObservable |
|---|
register |
| Field Detail |
|---|
static 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
| Method Detail |
|---|
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
NamingException
NamingException
void 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 inserted
NamingException
void 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 inserted
NamingException
void 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
void 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 inserted
NamingException
void 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
void unbind(Name name,
boolean removePersonalization)
throws NamingException
name - The name (as instance of Name)removePersonalization - True if the personalization is to be removed.
NamingException
void unbind(String name,
boolean removePersonalization)
throws NamingException
name - The name (as instance of String)removePersonalization - True if the personalization is to be removed.
NamingException
DirContext 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 inserted
NamingException
DirContext 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 inserted
NamingException
IDeltaLink 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 IPcdContext
NamingException
IDeltaLink 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
IPcdContext
NamingException
IDeltaLink 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 inserted
NamingException
IDeltaLink createDeltaLink(String name,
Attributes attributes,
String target,
int position)
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
IPcdContextposition - The position where the delta link is to be inserted
NamingException
IUnit 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
name
NamingException
IUnit 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
name
NamingException
String getAtomicName()
throws NamingException
NamingException
boolean isRootOfUnit(Name name)
throws NamingException
name -
NamingException
boolean isRootOfUnit(String name)
throws NamingException
name -
NamingException
boolean isPartOfUnit(Name name)
throws NamingException
name -
NamingException
boolean isPartOfUnit(String name)
throws NamingException
name -
NamingException
void 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
intermedate contexts do not exits).
NamingException
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
intermedate contexts do not exits).
NamingException
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 option
NamingException - is thrown, if the target can't be created (e.g. because
intermedate contexts do not exits).
NamingException
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 context
NamingException - is thrown, if the target can't be created (e.g. because
intermedate 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 option
NamingException - is thrown, if the target can't be created (e.g. because
intermedate 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 context
NamingException - is thrown, if the target can't be created (e.g. because
intermedate 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 resolved
NamingException - is thrown, if the target can't be created (e.g. because
intermedate 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 resolved
NamingException - is thrown, if the target can't be created (e.g. because
intermedate 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 object
NamingException - is thrown, if the target can't be created (e.g. because
intermedate 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
intermedate 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 object
NamingException - is thrown, if the target can't be created (e.g. because
intermedate 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
intermedate 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 option
NamingException - is thrown, if the target can't be created (e.g. because
intermedate 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 context
NamingException - is thrown, if the target can't be created (e.g. because
intermedate 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 object
NamingException - is thrown, if the target can't be created (e.g. because
intermedate 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 option
NamingException - is thrown, if the target can't be created (e.g. because
intermedate 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 object
NamingException - is thrown, if the target can't be created (e.g. because
intermedate 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 context
NamingException - is thrown, if the target can't be created (e.g. because
intermedate contexts do not exits).
void destroySubcontext(String name,
boolean recursive)
throws NamingException
name - The name of the source (given as Stringrecursive - Deep delete
NamingException - is thrown, if the target can't be created (e.g. because
intermedate 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
intermedate contexts do not exits).
void destroySubcontext(Name name,
boolean recursive)
throws NamingException
name - The name of the source (given as Namerecursive - Deep delete
NamingException - is thrown, if the target can't be created (e.g. because
intermedate 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
intermedate contexts do not exits).
NamingEnumeration listRelations(Name name,
Attributes matchingAttributes,
RelationDirection direction)
throws NamingException
name - matchingAttributes - direction -
NamingException
NamingEnumeration getWhereUsedList(String name)
throws NamingException
name -
NamingException
NamingEnumeration getWhereUsedList(Name name)
throws NamingException
name -
NamingException
void setChildPosition(String name,
int position)
throws NamingException
name - position -
NamingException
void setChildPosition(Name name,
int position)
throws NamingException
name - position -
NamingException
int getChildPosition(String name)
throws NamingException
name -
NamingException
int getChildPosition(Name name)
throws NamingException
name -
NamingException
NamingEnumeration listRelations(String name,
Attributes matchingAttributes,
RelationDirection direction)
throws NamingException
name - matchingAttributes - direction -
NamingException
NamingEnumeration 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 returned
NamingExceptionEnumerationLimitException
NamingEnumeration list(String name,
int fromIndex,
int numberOfEntries)
throws NamingException
name - The name of context (given as StringfromIndex - Start indexnumberOfEntries - number of entries to be returned
NamingExceptionlist(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 returned
NamingExceptionEnumerationLimitException
NamingEnumeration listBindings(String name,
int fromIndex,
int numberOfEntries)
throws NamingException
name - The name of context (given as StringfromIndex - Start indexnumberOfEntries - number of entries to be returned
NamingExceptionlistBindings(Name name, int
fromIndex, int toIndex)
int listSize(Name name)
throws NamingException
name - The name of context (given as Name)
NamingException
int listSize(String name)
throws NamingException
name - The name of context (given as String)
NamingException
NamingEnumeration search(Name name,
Attributes matchingAttributes,
SearchControls cons)
throws NamingException
name - matchingAttributes - cons -
NamingException
NamingEnumeration search(String name,
Attributes matchingAttributes,
SearchControls cons)
throws NamingException
name - matchingAttributes - cons -
NamingException
NamingEnumeration 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
String getAccessUrl()
throws NamingException
NamingException
void 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
null
AttributeModificationException - if the modification cannot be completed successfully
NamingException - 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
null
AttributeModificationException - if the modification cannot be completed successfully
NamingException - if a naming exception is encountered
void 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 null
AttributeModificationException - if the modifications cannot be completed successfully
NamingException - if a naming exception is encounteredmodifyAttributes(Name, int, Attributes),
ModificationItem
void 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 null
AttributeModificationException - if the modifications cannot be completed successfully
NamingException - if a naming exception is encountered
void removeModifications(Name name)
throws NamingException
name - the name of the object
NamingException - if context is not part of a delta link or personalized
void removeModifications(String name)
throws NamingException
name - the name of the object
NamingException - if context is not part of a delta link or personalized
void 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 personalized
void 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 personalized
IDlModificationState getDlModificationState(Name name)
throws NamingException
name -
NamingExceptionIDlModificationState
IDlModificationState getDlModificationState(String name)
throws NamingException
name -
NamingExceptionIDlModificationState
Date getDateOfLastChange(Name name)
throws NamingException
name -
NamingException
Date getDateOfLastChange(String name)
throws NamingException
name -
NamingExceptiongetDateOfLastChange(javax.naming.Name)
Attributes getAttributes(String name,
boolean readOnly)
throws NamingException
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] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/pcd/gl/api
|
api
|
EP-PIN
|
[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 NetWeaver 7.30 (SP02) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||