public class DirectoryObject extends TiePublicObject implements DirectoryObjectInterface
This class is essentially abstract. The two major subclasses of this class are DirectoryUser and DirectoryGroup. Many operations require some user or group entity, and therefore use DirectoryObject to represent this. For example, security grant and revoke operations can use either a user or group as the grantee, and therefore take a DirectoryObject argument.
DirectoryObject is a subclass of PublicObject; hence, DirectoryObject can have associated AccessControlLists to manage security on the DirectoryObjects. Typically, DirectoryUser objects are accessible to all users (that is, their ACL has Discover granted to the "World" group).
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME
Class name for this class.
|
static String |
CREDENTIALMANAGER_ATTRIBUTE
The name of the CredentialManager for this DirectoryObject.
|
static String |
DISTINGUISHEDNAME_ATTRIBUTE
The name by which the CredentialManager for this DirectoryObject refers
to this user or group.
|
ACL_ATTRIBUTE, CREATEDATE_ATTRIBUTE, CREATOR_ATTRIBUTE, DELETOR_ATTRIBUTE, DESCRIPTION_ATTRIBUTE, EXPIRATIONDATE_ATTRIBUTE, FAMILY_ATTRIBUTE, FLAG_CATEGORY_EXISTS, FLAG_CONFIGURATIONCATEGORY_EXISTS, FLAG_MARKED, FLAG_NOINFERIOR, FLAG_NOSELECT, FLAG_NTFS_ARCHIVE, FLAG_NTFS_HIDDEN, FLAG_NTFS_READONLY, FLAG_NTFS_SYSTEM, FLAG_UNMARKED, FLAGS_ATTRIBUTE, LASTMODIFIER_ATTRIBUTE, LASTMODIFYDATE_ATTRIBUTE, LOCKENTRIES_ATTRIBUTE, LOCKOBJECT_ATTRIBUTE, NAME_ATTRIBUTE, OWNER_ATTRIBUTE, POLICYBUNDLE_ATTRIBUTE, POLICYLISTS_ATTRIBUTE, PRIMARYPARENTFOLDER_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTE, RESOLVEDPUBLICOBJECT_ATTRIBUTE, SECURINGPUBLICOBJECT_ATTRIBUTE
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session
Modifier | Constructor and Description |
---|---|
protected |
DirectoryObject(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Constructs a DirectoryObject object.
|
Modifier and Type | Method and Description |
---|---|
protected static DirectoryObject |
constructDirectoryObject(LibrarySession sess,
S_LibraryObjectData data)
Constructs a DirectoryObject from a S_LibraryObjectData.
|
protected static DirectoryObject[] |
constructDirectoryObjectArray(LibrarySession sess,
Long[] ids)
Construct a DirectoryObject array from an array of object IDs.
|
protected static Vector |
constructDirectoryObjectVector(LibrarySession sess,
Vector vector)
Constructs a DirectoryObject Vector from a Vector of
S_DirectoryObjectData.
|
Long[] |
getAllAncestorIds()
Gets the IDs of all ancestors to this DirectoryObject.
|
DirectoryGroup[] |
getAllAncestors()
Gets all ancestors to this DirectoryObject.
|
DirectoryGroup |
getAllAncestors(int index)
Deprecated.
iFS 9.0.3 Use getAllAncestors() to get entire array
|
DirectoryObject[] |
getAllMembers()
Gets all members belonging to this DirectoryObject.
|
DirectoryObject |
getAllMembers(int index)
Gets a specific memeber at the specified index in array of
DirectoryObject.
|
DirectoryUser[] |
getAllUserMembers()
Gets all DirectoryUser members belonging to this DirectoryObject.
|
DirectoryUser |
getAllUserMembers(int index)
Gets a specific DirectoryUser Member at the specified index in array
of DirectoryObject.
|
String |
getCredentialManager()
Gets the credential manager of this DirectoryObject.
|
DirectoryGroup[] |
getDirectAncestors()
Gets the direct ancestors to this DirectoryObject.
|
DirectoryGroup |
getDirectAncestors(int index)
Deprecated.
iFS 9.0.3 Use getDirectAncestors() and index into the resultant array
|
DirectoryObject[] |
getDirectMembers()
Gets the direct members belonging to this DirectoryObject.
|
DirectoryObject |
getDirectMembers(int index)
Gets the specific direct member at the specified index in array of
DirectoryObject.
|
String |
getDistinguishedName()
Gets the distinguished name for this DirectoryObject.
|
boolean |
isMemberOf(DirectoryObject parent)
See if the target is the same as or is a member of the specified
object.
|
void |
resetAllAncestors()
Deprecated.
iFS 9.0.3 No longer has any effect
|
void |
resetDirectAncestors()
Deprecated.
iFS 9.0.3 No longer has any effect
|
void |
setCredentialManager(String credentialManager)
Sets the credential manager of this DirectoryObject.
|
void |
setDistinguishedName(String name)
Sets the distinguished name of this DirectoryObject.
|
protected static DirectoryObject |
vectorDirectoryObjectElement(Vector vector,
int index)
Returns a DirectoryObject element from the Vector of DirectoryObject
at the specified index.
|
protected static DirectoryObject[] |
vectorToDirectoryObjectArray(Vector vector)
Converts a Vector of DirectoryObject to an array of DirectoryObject.
|
addAccess, addAttachment, addCategory, addFlags, addMessageList, addRelationship, auditPublicObjectLocked, auditPublicObjectUnlocked, canAcquireManualLock, canReleaseDavLock, canReleaseLock, canReleaseManualLock, capabilities, checkAuditViewCapability, checkCapabilities, checkCapability, checkEffectiveAccess, checkEffectiveAccess, checkLockAccess, checkParentFolderCapability, checkVersioned, clearFlags, constructPublicObject, constructPublicObjectArray, constructPublicObjectVector, containsLockEntry, copy, coreAutoFolderingEnabled, createCategories, createDedicatedPolicyPropertyBundle, delete, deriveEffectiveAccessLevel, findAttachmentRelation, findOrAddActivityRecord, findOrAddActivityRecord, findOrAddActor, findOrAddActor, findOrAddMessageList, findOrAddMessageList, free, getAcl, getActivityRecord, getActor, getAllFolderPaths, getAllFolderPaths, getAllFolderPaths, getAnyFolderPath, getAnyFolderPath, getAnyFolderPath, getAttachmentRelation, getAttachmentRelations, getAttachments, getCapabilities, getCategories, getCategories, getCategories, getCategories, getCategories, getCategory, getConsumedStorage, getCreateDate, getCreator, getDefaultAccessLevel, getDefinitionForSimplePropertyUpdates, getDeletor, getDescription, getEffectiveAccessLevel, getEffectiveAccessLevel, getExpirationDate, getFamily, getFirstCategory, getFirstVersion, getFlags, getFolderReferences, getFolderReferences, getFolderReferencesSortSpecification, getLastModifier, getLastModifyDate, getLastVersion, getLeftwardRelationshipObjects, getLeftwardRelationshipObjects, getLeftwardRelationships, getLeftwardRelationships, getLeftwardRelationshipsCount, getLeftwardRelationshipsCount, getLinks, getLockEntries, getLockEntries, getLockObject, getLockRestrictions, getLockTypeAuditProperties, getMessageList, getNextVersion, getOwner, getPolicyBundle, getPolicyLists, getPreviousVersion, getPrimaryFolderPath, getPrimaryParentFolder, getPrimaryParentFolder, getRelations, getReservationComment, getReservationDate, getReservor, getResolvedPublicObject, getRestrictingLockEntries, getRightwardRelationshipObjects, getRightwardRelationshipObjects, getRightwardRelationships, getRightwardRelationships, getSecuringPublicObject, getSingletonVersionDescription, getVersionNumber, getVersions, getVersionSeries, getWorkingCopy, grantAccess, handleCopy, handleCreate, handleUnlockAll, hasActivityRecord, hasActor, hasAttachmentRelation, hasCategories, hasCategory, hasConfigurationCategories, hasMessageList, hasNameAttribute, hasPropertyBundleAttribute, isAttachment, isDeleted, isLatestVersion, isLocked, isLockingSupported, isOwner, isReserved, isReservedByCurrentUser, isVersionable, isVersioned, isWorkingCopy, listLeftwardRelationships, listRightwardRelationships, lock, lock, lock, lock, newVersion, postCopy, postCreate, postSecurityChangedEvent, postUpdate, preCopy, preCreate, preFree, preUpdate, putPolicy, reassociateLinks, removeAllPolicies, removeAttachment, removePolicy, removePolicy, removeRelationship, reserveNext, resetFolderReferences, resolveFolderReferenceSortSpecification, revokeAccess, revokeAllAccess, setAcl, setDescription, setExpirationDate, setFlags, setFolderReferencesSortSpecification, setLockEntries, setLockEntrySecurity, setOwner, setOwnerByName, setPolicyBundle, setPolicyLists, setSecuringPublicObject, toPublicObjectArray, undelete, unlock, unlock, unlockAll, unReserve, updateFlags, updateLock, vectorPublicObjectElement, vectorToPublicObjectArray, verifyAddRelationshipCapability, verifyCapabilities, verifyCapability, verifyDeleteCapability, verifyLockCapability, verifyRemoveRelationshipCapability, verifyUnlockCapability, verifyVersionSeries
added, addSimpleProperty, addSimpleProperty, applyProperties, auditCreated, auditUpdated, canPurge, checkIfPropertyBundleSupported, checkRequiredAttributeSet, clearCopyContext, clearFreeContext, clearUpdateContext, compareTo, constructIdArray, constructIdArray, constructLibraryObject, constructLibraryObjectVector, createDedicatedPropertyBundle, createInstance, deriveDomainUniqueName, dispose, equals, equals, free, freeAll, get, getAttribute, getAttributeByUpperCaseName, getAttributes, getAttributesByUpperCaseNames, getAuditDomainContext, getAuditEventFolderContext, getClassId, getClassname, getClassName, getClassObject, getCommonName, getCommonNameAndClass, getCopyContext, getCreateContext, getData, getDefinition, getEffectivePolicyListElements, getEventualAttributeByUpperCaseName, getFreeContext, getId, getLabel, getName, getObjectReferenceAttribute, getOperationActionSpecificationContext, getPropertyBundle, getPropertyValue, getPublicObjectAttribute, getResourceString, getResourceString, getSchemaObjectAttribute, getSession, getSessionInterface, getSharedStateFactory, getSimpleObjectAttribute, getSimpleProperties, getSimpleProperty, getSimplePropertyValue, getStringIdentifier, getSystemObjectAttribute, getTraceLogger, getUpdateContext, handleAdminModeChange, handleEvent, handleFree, handleUpdate, hashCode, invalidateState, invokeOperation, invokeOperation, invokeServerMethod, isConnected, isCoreEventPostingEnabled, isInstanceOf, isPersistent, isTraced, isValidEventType, lockRows, lookupInstanceLabel, performPostCreateExtensions, performPostFreeExtensions, performPostUpdateExtensions, performPreCreateExtensions, performPreFreeExtensions, performPreUpdateExtensions, postEvent, postEvent, postFree, prePostAuditEvent, putProperty, putProperty, removeAllProperties, removeAllSimpleProperties, removeAllSimpleProperties, removed, removeProperty, removeSimpleProperty, removeSimpleProperty, renderAsRandomAccessContent, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, setAttributes, setCopyContext, setFreeContext, setId, setName, setPropertyBundle, setPropertyValue, setUpdateContext, toString, trace, trustHandleCreate, trustHandleCreateAsAdmin, trustHandleFree, trustHandleFreeAsAdmin, trustHandleUpdate, trustHandleUpdateAsAdmin, update, updateAndExposeDefinition, validatePropertyValues, vectorLibraryObjectElement, vectorToLibraryObjectArray, verifyAdministrationMode, verifyConnected, verifyPersistent, verifySystemUserAccess, verifyTargetObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAttributeByUpperCaseName, getClassId, getId, getSessionInterface
getTraceLogger, isTraced, trace
public static final String CLASS_NAME
Useful for methods that take a class name argument.
public static final String DISTINGUISHEDNAME_ATTRIBUTE
public static final String CREDENTIALMANAGER_ATTRIBUTE
protected DirectoryObject(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- the sessionid
- the idclassId
- the class iddata
- the DirectoryObject dataIfsException
- if the operation failspublic String getCredentialManager() throws IfsException
IfsException
- if operation fails.public String getDistinguishedName() throws IfsException
IfsException
- if operation fails.public DirectoryObject[] getAllMembers() throws IfsException
For DirectoryGroup, this method is overridden to produce the full set of member DirectoryObjects that are members (directly or indirectly) of that DirectoryGroup.
For DirectoryUser, the array only contains the target object.
IfsException
- if operation fails.public DirectoryObject getAllMembers(int index) throws IfsException
For the DirectoryObject class, the only valid index is zero(0), which will return this object.
index
- index into the array of DirectoryObjectsIfsException
- if operation fails.public DirectoryUser[] getAllUserMembers() throws IfsException
This list is the full set of member DirectoryUsers that are members (directly or indirectly) of this DirectoryGroup.
IfsException
- if operation fails.public DirectoryUser getAllUserMembers(int index) throws IfsException
index
- index into the array of DirectoryGroupsIfsException
- if operation fails.public DirectoryObject[] getDirectMembers() throws IfsException
For DirectoryGroup objects, this method is overridden to return the set of direct members of that DirectoryGroup.
For DirectoryUser obejects, a null array is returned.
IfsException
- if operation fails.public DirectoryObject getDirectMembers(int index) throws IfsException
index
- index into the array of DirectoryObjectsIfsException
- if operation fails.public DirectoryGroup[] getDirectAncestors() throws IfsException
IfsException
- if operation fails.public DirectoryGroup getDirectAncestors(int index) throws IfsException
index
- index into the array of DirectoryGroupIfsException
- if operation fails.public Long[] getAllAncestorIds() throws IfsException
IfsException
- if operation fails.public DirectoryGroup[] getAllAncestors() throws IfsException
IfsException
- if operation fails.public DirectoryGroup getAllAncestors(int index) throws IfsException
index
- index into the array of DirectoryGroupIfsException
- if operation fails.public boolean isMemberOf(DirectoryObject parent) throws IfsException
parent
- the object to compare againstIfsException
- if operation fails.public void setDistinguishedName(String name) throws IfsException
name
- the distinguished nameIfsException
- if the operation fails.public void setCredentialManager(String credentialManager) throws IfsException
credentialManager
- the name of the credential managerIfsException
- if the operation fails.protected static Vector constructDirectoryObjectVector(LibrarySession sess, Vector vector) throws IfsException
sess
- current LibrarySessionvector
- vector of DirectoryObject objectsIfsException
- if the operation failsprotected static DirectoryObject[] constructDirectoryObjectArray(LibrarySession sess, Long[] ids) throws IfsException
sess
- the requesting sessionids
- the array of object IDsIfsException
- if operation fails.protected static DirectoryObject constructDirectoryObject(LibrarySession sess, S_LibraryObjectData data) throws IfsException
sess
- current LibrarySessiondata
- data componentIfsException
- if the operation failsprotected static DirectoryObject[] vectorToDirectoryObjectArray(Vector vector) throws IfsException
vector
- Vector of DirectoryObjectIfsException
- if the operation failsprotected static DirectoryObject vectorDirectoryObjectElement(Vector vector, int index) throws IndexOutOfBoundsException
vector
- Vector of DirectoryObjectindex
- index into DirectoryObjectIndexOutOfBoundsException
- if invalid index specified.public void resetDirectAncestors() throws IfsException
This must be called to force a new array of getDirectAncestors to be fetched from the server.
IfsException
- if operation fails.public void resetAllAncestors() throws IfsException
IfsException
- if the operation failsCopyright © 2023. All rights reserved.