public class PublicObject extends TieLibraryObject implements PublicObjectInterface
isVersionable()
method will tell you if that class can be
versioned.
Family
,
Relationship
,
Category
,
PublicObjectDefinition
Modifier and Type | Field and Description |
---|---|
static String |
ACL_ATTRIBUTE
The AccessControlList that secures this object.
|
static String |
CLASS_NAME
This class name for this class.
|
static String |
CREATEDATE_ATTRIBUTE
The date and time (in GMT) when this object was created.
|
static String |
CREATOR_ATTRIBUTE
The DirectoryUser that created this object.
|
static String |
DELETOR_ATTRIBUTE
The DirectoryUser that deleted (not 'Freed') this object.
|
static String |
DESCRIPTION_ATTRIBUTE
A textual description of this object.
|
static String |
EXPIRATIONDATE_ATTRIBUTE
The date when this object 'expires'.
|
static String |
FAMILY_ATTRIBUTE
The Family to which this object belongs if this object is versioned.
|
static long |
FLAG_CATEGORY_EXISTS
Flag that indicates one or more Categories exist (bit 16).
|
static long |
FLAG_CONFIGURATIONCATEGORY_EXISTS
Flag that indicates one or more ConfigurationCategories exist (bit 17).
|
static long |
FLAG_MARKED
Flag for IMAP "Marked" status (bit 2).
|
static long |
FLAG_NOINFERIOR
Flag for IMAP "No Inferior" status (bit 0).
|
static long |
FLAG_NOSELECT
Flag for IMAP "No Select" status (bit 1).
|
static long |
FLAG_NTFS_ARCHIVE
Flag for SMB/NTFS "archive" status (bit 6).
|
static long |
FLAG_NTFS_HIDDEN
Flag for SMB/NTFS "hidden" status (bit 4).
|
static long |
FLAG_NTFS_READONLY
Flag for SMB/NTFS "readonly" status (bit 7).
|
static long |
FLAG_NTFS_SYSTEM
Flag for SMB/NTFS "system" status (bit 5).
|
static long |
FLAG_UNMARKED
Flag for IMAP "Unmarked" status (bit 3).
|
static String |
FLAGS_ATTRIBUTE
System-set flags of this object.
|
static String |
LASTMODIFIER_ATTRIBUTE
The DirectoryUser that last modified this object.
|
static String |
LASTMODIFYDATE_ATTRIBUTE
The date and time (in GMT) when this object was last modified.
|
static String |
LOCKENTRIES_ATTRIBUTE
LockEntries for this object.
|
static String |
LOCKOBJECT_ATTRIBUTE
The lock object for this PublicObject.
|
static String |
NAME_ATTRIBUTE
The name of this object.
|
static String |
OWNER_ATTRIBUTE
The DirectoryUser that owns this object.
|
static String |
POLICYBUNDLE_ATTRIBUTE
Deprecated.
CM SDK 10gR2: see release notes for changes to Policy framework
|
static String |
POLICYLISTS_ATTRIBUTE
The set of PolicyLists explicitly applied to this object.
|
static String |
PRIMARYPARENTFOLDER_ATTRIBUTE
The primary parent folder for this PublicObject.
|
static String |
PROPERTYBUNDLE_ATTRIBUTE
The PropertyBundle associated with this object.
|
static String |
RESOLVEDPUBLICOBJECT_ATTRIBUTE
The PublicObject to which this object resolves.
|
static String |
SECURINGPUBLICOBJECT_ATTRIBUTE
A PublicObject from which this object should defer security decisions
(e.g, all versions in a Family may have the Family as their securing public object).
|
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session
Modifier | Constructor and Description |
---|---|
protected |
PublicObject(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Constructs a PublicObject object - standard variant.
|
Modifier and Type | Method and Description |
---|---|
protected AccessControlEntry |
addAccess(AccessControlEntryDefinition def)
addAccess - USed by grantAccess() and revokeAccess() to
add a AccessControlEntry for this object.
|
AttachmentRelation |
addAttachment(Document doc)
Add an Attachment.
|
Category |
addCategory(CategoryDefinition catdef)
Adds a Category associated with this PublicObject.
|
void |
addFlags(long addedFlags)
Adds flags to the exist value of the FLAGS attribute,
without causing the modification attributes to change.
|
MessageList |
addMessageList()
Deprecated.
9.2.4: use
findOrAddMessageList |
Relationship |
addRelationship(RelationshipDefinition reldef)
Creates a relationship object linking this object
(the "left" object) to the PublicObject (the "right" object)
contained in the specified Relationship Definition.
|
protected void |
auditPublicObjectLocked(int lockType)
Audits a PublicObject being locked.
|
protected void |
auditPublicObjectUnlocked(int lockType)
Audits a PublicObject being unlocked.
|
boolean |
canAcquireManualLock()
Returns whether a LockEntry of type
LibraryConstants.LOCKTYPE_MANUAL can be acquired for this
object by the current user. |
boolean |
canReleaseDavLock()
Returns whether a LockEntry of type
LibraryConstants.LOCKTYPE_DAV can be released from this
object by the current user. |
protected boolean |
canReleaseLock(LockEntry existingLock)
Returns whether the given existing LockEntry
can be released from this object by the current user.
|
boolean |
canReleaseManualLock()
Returns whether a LockEntry of type
LibraryConstants.LOCKTYPE_MANUAL can be released from this
object by the current user. |
PublicObjectCapabilities |
capabilities()
Returns the PublicObjectCapabilities delegate which tracks the
capabilities of this object.
|
boolean |
checkAuditViewCapability()
Checks if user can view audit information for this object.
|
boolean |
checkCapabilities(AccessLevel capabilities)
Checks if the given capabilities are enabled for this object.
|
boolean |
checkCapability(long capability)
Checks if the given capability is enabled for this object.
|
boolean |
checkEffectiveAccess(AccessLevel level)
Checks to see if current user has the specified
access level on this object.
|
boolean |
checkEffectiveAccess(DirectoryObject obj,
AccessLevel level)
Check to see if specified user has the specified
access level on this object.
|
boolean |
checkLockAccess(AccessLevel level)
Checks to see if current user is locked from the specified
access level on this object.
|
protected void |
checkParentFolderCapability(PublicObjectDefinition poDef)
Check ADDITEM capability on a new parent folder, if one is specified.
|
protected void |
checkVersioned() |
void |
clearFlags(long clearedFlags)
Clears flags from the exist value of the FLAGS attribute,
without causing the modification attributes to change.
|
protected static PublicObject |
constructPublicObject(LibrarySession sess,
S_LibraryObjectData data) |
static PublicObject[] |
constructPublicObjectArray(LibrarySession sess,
Long[] ids)
Constructs a PublicObject array from an array of object IDs.
|
protected static Vector |
constructPublicObjectVector(LibrarySession sess,
Vector vector) |
boolean |
containsLockEntry(LockEntry le)
Checks if the specified LockEntry is contained in this instance's
set of LockEntries.
|
PublicObject |
copy(LibraryObjectDefinition def)
Produces a copy of this PublicObject.
|
protected boolean |
coreAutoFolderingEnabled()
Extensibility point to see if core AutoFoldering is enabled.
|
protected void |
createCategories(CategoryDefinition[] catDefs)
Creates a set of Category objects associated with this PublicObject,
without changing the modify date/modifier on the target object.
|
protected PolicyPropertyBundle |
createDedicatedPolicyPropertyBundle()
Deprecated.
CM SDK 10gR2: see release notes for changes to Policy framework
|
void |
delete()
Mark an object for delete.
|
void |
deriveEffectiveAccessLevel(AccessLevel level)
Modify the AccessLevel specified to enable or disable
effective permissions for this object.
|
AttachmentRelation |
findAttachmentRelation(Document doc)
Find an AttachmentRelation that corresponds to an attached Document.
|
ActivityRecord |
findOrAddActivityRecord()
Add an ActivityRecord to the target object if one does not already exist,
and otherwise return the existing instance.
|
ActivityRecord |
findOrAddActivityRecord(ActivityRecordDefinition def)
Add an ActivityRecord to the target object if one does not already exist,
and otherwise return the existing instance.
|
Actor |
findOrAddActor()
Add an Actor to the target object if one does not already exist,
and otherwise return the existing instance.
|
Actor |
findOrAddActor(ActorDefinition def)
Add an Actor to the target object if one does not already exist,
and otherwise return the existing instance.
|
MessageList |
findOrAddMessageList()
Add a MessageList to the target object if one does not already exist,
and otherwise return the existing instance.
|
MessageList |
findOrAddMessageList(MessageListDefinition def)
Add a MessageList to the target object if one does not already exist,
and otherwise return the existing instance.
|
void |
free(LibraryObjectDefinition def)
Permanently removes this object from the repository, with options.
|
AccessControlList |
getAcl()
Returns this object's AccessControlList.
|
ActivityRecord |
getActivityRecord()
Returns the ActivityRecord category if one exists.
|
Actor |
getActor()
Returns the Actor category if one exists.
|
String[] |
getAllFolderPaths()
Gets all Folder paths to the target object, starting from the
Root Folder.
|
String[] |
getAllFolderPaths(Folder reference)
Gets all Folder paths to the target object.
|
String[] |
getAllFolderPaths(Folder reference,
FolderPathOptions fpo)
Gets all Folder paths to the target object.
|
String |
getAnyFolderPath()
Gets any Folder path to the target object, starting from the
Root Folder.
|
String |
getAnyFolderPath(Folder reference)
Gets any Folder path to the target object.
|
String |
getAnyFolderPath(Folder reference,
FolderPathOptions fpo)
Gets any Folder path to the target object.
|
AttachmentRelation |
getAttachmentRelation()
Returns the AttachmentRelation category if one exists.
|
AttachmentRelation[] |
getAttachmentRelations()
Get the AttachmentRelations that comprise the set of attachments.
|
Document[] |
getAttachments()
Get the attached Documents.
|
AccessLevel |
getCapabilities()
Returns the enabled capabilities for this object.
|
Category[] |
getCategories()
Returns an array of categories for this PublicObject.
|
Category[] |
getCategories(ClassObject classobj)
Returns the associated Category objects that are instances of the
ClassObject (or one of its subclasses) specified.
|
Category[] |
getCategories(ClassObject classobj,
SortSpecification sort)
Returns the associated Category objects that are instances of
the specified class or a subclass of the specified class.
|
Category |
getCategories(int index)
Returns the Category at specified index
in the array of all Categories.
|
Category[] |
getCategories(SortSpecification sort)
Returns the associated Category objects.
|
Category |
getCategory(ClassObject classobj)
Returns the associated Category object that is an
instance of the ClassObject (or one of its subclasses) specified.
|
long |
getConsumedStorage()
Returns the storage (in bytes) consumed by the content of this object.
|
Date |
getCreateDate()
Returns the date this object was created.
|
DirectoryUser |
getCreator()
Returns the user that created this object.
|
AccessLevel |
getDefaultAccessLevel()
Returns the access level defined for
"World" access; i.e. the minimum access granted
implicitly to all users.
|
LibraryObjectDefinition |
getDefinitionForSimplePropertyUpdates(boolean updateLastModInfo)
Gets the LibraryObjectDefinition to use for adding or removing
SimpleProperties to/from the target object.
|
DirectoryUser |
getDeletor()
Returns the user that deleted this object, or null if the
object is not marked for deletion.
|
String |
getDescription()
Returns the description of this object.
|
AccessLevel |
getEffectiveAccessLevel()
Get the access level on this object
for the current user.
|
AccessLevel |
getEffectiveAccessLevel(DirectoryObject obj)
Get the access level on this object
for the specified user.
|
Date |
getExpirationDate()
Returns the expiration date set for this object
|
Family |
getFamily()
Returns the Family with which this object is associated.
|
Category |
getFirstCategory(ClassObject clssObj)
Return the first category of given type, or null.
|
PublicObject |
getFirstVersion()
Returns the PublicObject referenced by the first VersionDescription in the
PrimaryVersionSeries.
|
long |
getFlags()
Gets the flags bitmask.
|
Folder[] |
getFolderReferences()
Returns an array of folders that reference this PublicObject.
|
Folder |
getFolderReferences(int index)
Returns the Folder at specified index
in the array of ReferencingFolders.
|
SortSpecification |
getFolderReferencesSortSpecification()
Returns the current sort specification used
by the getFolderReferences method.
|
DirectoryUser |
getLastModifier()
Returns the user that last modified this object.
|
Date |
getLastModifyDate()
Returns the date this object was last modified
|
PublicObject |
getLastVersion()
Returns the PublicObject referenced by the last VersionDescription in the
PrimaryVersionSeries.
|
PublicObject[] |
getLeftwardRelationshipObjects(ClassObject relClass)
Returns all "left side" public objects that are related to this object by
the specied Relationship Class.
|
PublicObject[] |
getLeftwardRelationshipObjects(String relClassName)
Returns all "left side" public objects that are related to this object by
the specied Relationship Class.
|
Relationship[] |
getLeftwardRelationships(ClassObject relClass)
Returns all "left side" relationship instances that are used to relate to this object
to other PublicObjects.
|
Relationship[] |
getLeftwardRelationships(String relClassName)
Returns all "left side" relationship instances that are used to relate to this object
to other PublicObjects.
|
long |
getLeftwardRelationshipsCount(ClassObject relClass)
Returns the count of all "left side" relationship instances that are used to relate to this object
to other PublicObjects.
|
long |
getLeftwardRelationshipsCount(String relClassName)
Returns the count of all "left side" relationship instances that are used to relate to this object
to other PublicObjects.
|
Link[] |
getLinks()
Gets all Link objects that refer to this PublicObject.
|
LockEntry[] |
getLockEntries()
Returns all LockEntry objects associated with this instance.
|
LockEntry[] |
getLockEntries(boolean includeFamily)
Returns the LockEntry instances that have been applied to this object,
optionally including the LockEntry instances that have been applied to
this object's Family, if this object has a Family.
|
LockObject |
getLockObject()
Returns the lock object of this object.
|
AccessLevel |
getLockRestrictions()
Gets the set of lock restrictions for the current user.
|
protected AttributeValue[] |
getLockTypeAuditProperties(int lockType)
Gets the audit event properties to add that describe
a Lock type.
|
MessageList |
getMessageList()
Returns the MessageList category if one exists.
|
PublicObject |
getNextVersion()
Returns the PublicObject referenced by the next VersionDescription in the
PrimaryVersionSeries.
|
DirectoryUser |
getOwner()
Returns the user that owns the object.
|
PolicyPropertyBundle |
getPolicyBundle()
Deprecated.
CM SDK 10gR2: see release notes for changes to Policy framework
|
PolicyList[] |
getPolicyLists()
Gets the PolicyLists for this object.
|
PublicObject |
getPreviousVersion()
Returns the PublicObject referenced by the previous VersionDescription in the
PrimaryVersionSeries.
|
String |
getPrimaryFolderPath()
Gets the primary path to the object, using the PRIMARYPARENTFOLDER
attribute of the target object and the referencing folders above it
in the folder hierarchy.
|
Folder |
getPrimaryParentFolder()
Gets the primary parent folder for the object.
|
Folder |
getPrimaryParentFolder(boolean useFamily)
Gets the primary parent folder for the object.
|
Relation[] |
getRelations()
Gets the set of Relation attached as categories to this object.
|
String |
getReservationComment()
Returns the reservation comment specified when
this object's primaryVersionSeries was reserved.
|
Date |
getReservationDate()
Returns the Date on which this object's primaryVersionSeries was reserved.
|
DirectoryUser |
getReservor()
Returns the user that has reserved the primaryVersionSeries for this object.
|
PublicObject |
getResolvedPublicObject()
Returns the PublicObject to which this object resolves.
|
LockEntry[] |
getRestrictingLockEntries(AccessLevel level)
Gets the set of lock entries that result in restricting the specified
access for the current user.
|
PublicObject[] |
getRightwardRelationshipObjects(ClassObject relClass)
Returns all "right side" public objects that are related to this object by
the specified Relationship Class.
|
PublicObject[] |
getRightwardRelationshipObjects(String relClassName)
Returns all "right side" public objects that are related to this object by
the specified Relationship Class.
|
Relationship[] |
getRightwardRelationships(ClassObject relClass)
Returns all "right side" relationship instances that are used to relate to this object
to other PublicObjects.
|
Relationship[] |
getRightwardRelationships(String relClassName)
Returns all "right side" relationship instances that are used to relate to this object
to other PublicObjects.
|
PublicObject |
getSecuringPublicObject()
Returns the Public Object that controls this object's
security.
|
protected VersionDescription |
getSingletonVersionDescription() |
long |
getVersionNumber()
returns the sequential number of this revision within the
primary version series.
|
PublicObject[] |
getVersions()
Returns an array of PublicObjects which are all referenced by
the VersionDescriptions in the primary version series.
|
VersionSeries |
getVersionSeries()
Returns the Primary VersionSeries with which this object is associated.
|
PublicObject |
getWorkingCopy()
Returns the working copy of this object's Family.
|
AccessControlEntry |
grantAccess(AccessControlEntryDefinition def)
Add or extend an AccessControlEntryDefinition for this object.
|
protected PublicObject |
handleCopy(LibraryObjectDefinition def)
Handle the low-level repository copy
|
protected PublicObject |
handleCreate(LibraryObjectDefinition lodef)
Handles the low-level creation of the PublicObject
|
protected void |
handleUnlockAll()
Provides a template for subclasses to specify additional logic for the
unlockAll() operation.
|
boolean |
hasActivityRecord()
Returns indication as to whether the object has an associated
ActivityRecord category.
|
boolean |
hasActor()
Returns indication as to whether the object has an associated
Actor category.
|
boolean |
hasAttachmentRelation()
Returns indication as to whether the object has an associated
AttachmentRelation category.
|
boolean |
hasCategories()
Returns indication as to whether the object has any associated
Categories.
|
boolean |
hasCategory(ClassObject clssObj)
Check, if any category of given type is present.
|
boolean |
hasConfigurationCategories()
Returns indication as to whether the object has any associated
ConfigurationCategories.
|
boolean |
hasMessageList()
Returns indication as to whether the object has an associated
MessageList category.
|
boolean |
hasNameAttribute()
Overrides to return true for any PublicObject, indicating
that the instance has a NAME attribute.
|
boolean |
hasPropertyBundleAttribute()
Overrides to return true for any PublicObject, indicating
that the instance has a PROPERTYBUNDLE attribute.
|
boolean |
isAttachment(Document doc)
Returns indication as to whether the specified Document is an attachment.
|
boolean |
isDeleted()
isDeleted() - returns true if the object is marked for deletion, false otherwise
|
boolean |
isLatestVersion()
Returns true if this public object is referenced by the lastest
VersionDescription in this object's primaryVersionSeries.
|
boolean |
isLocked()
Returns true when the lockobject attribute on this PublicObject is not null
|
boolean |
isLockingSupported()
Return indication as to whether this type supports locking.
|
boolean |
isOwner(DirectoryObject obj)
Returns true if the specified object is the
owner of this object.
|
boolean |
isReserved()
Returns true if primaryVersionSeries is currently reserved
(by anyone).
|
boolean |
isReservedByCurrentUser()
Returns true if primaryVersionSeries is currently reserved
by the current user.
|
boolean |
isVersionable()
Returns true if this class of object is versionable.
|
boolean |
isVersioned()
Returns true if this object is versioned (FAMILY !
|
boolean |
isWorkingCopy()
Returns true if this object is a working copy, which is
the PENDINGPUBLICOBJECT of a Family's primary VersionSeries.
|
protected Vector |
listLeftwardRelationships(ClassObject relClass,
SortSpecification sortSpec) |
protected Vector |
listRightwardRelationships(ClassObject relClass,
SortSpecification sortSpec) |
LockEntry |
lock(LockEntryDefinition ledef)
Locks this object by adding a LockEntry associated with it.
|
void |
lock(LockObject lockobj)
Sets the value of the lockObject attribute of the object.
|
void |
lock(LockObjectDefinition ldef)
Constructs a new lockobject from the definition and sets it as
the value of the lockObject attribute on the PublicObject.
|
void |
lock(SystemLockEntry sle)
Lock the target object by adding an existing SystemLockEntry
associated with it.
|
VersionDescription |
newVersion(VersionDescriptionDefinition vddef)
Creates a new VersionDescription at the end of the primary version series.
|
protected void |
postCopy(LibraryObjectDefinition def,
PublicObject clone)
Extensibility point to perform actions after the copy of a object.
|
protected void |
postCreate(LibraryObjectDefinition lodef)
Extensibility point to perform actions after the
creation of a PublicObject.
|
void |
postSecurityChangedEvent()
Post an event that notes that the security has been changed on an object,
forcing all sessions to re-examine whether the target object should be
discoverable.
|
protected void |
postUpdate(LibraryObjectDefinition lodef)
Extensibility point to perform actions after the update of a PublicObject.
|
protected void |
preCopy(LibraryObjectDefinition def)
Extensibility point to perform actions prior to the copy of a object.
|
protected void |
preCreate(LibraryObjectDefinition lodef)
Extensibility point to perform actions prior to the
creation of a PublicObject.
|
protected void |
preFree(LibraryObjectDefinition def)
Extensibility point to perform actions prior to the
permanent deletion ("free") of a object.
|
protected void |
preUpdate(LibraryObjectDefinition lodef)
Extensibility point to perform actions prior to the update of
a PublicObject.
|
void |
putPolicy(Policy policy)
Deprecated.
CM SDK 10gR2: see release notes for changes to Policy framework
|
void |
reassociateLinks(PublicObject newTarget)
Reassociates the Links that are associated with the target object
to the specified new target object.
|
void |
removeAllPolicies()
Deprecated.
CM SDK 10gR2: see release notes for changes to Policy framework
|
void |
removeAttachment(Document doc)
Remove an Attachment.
|
void |
removePolicy(Policy policy)
Deprecated.
CM SDK 10gR2: see release notes for changes to Policy framework
|
void |
removePolicy(String opname)
Deprecated.
CM SDK 10gR2: see release notes for changes to Policy framework
|
void |
removeRelationship(Relationship rel)
Frees the specified relationship object that relates two PublicObjects.
|
void |
reserveNext(String contentPath,
String comment)
Reserves (locks) the primary version series so a new version can be added.
|
void |
resetFolderReferences()
Clears the locally cached list of Referencing Folders.
|
protected SortSpecification |
resolveFolderReferenceSortSpecification(LibrarySession session)
Forces the SortSpecification (if specified) to be resolved and
verified.
|
AccessControlEntry |
revokeAccess(AccessControlEntryDefinition def)
Remove or restrict an AccessControlEntryDefinition for this object.
|
void |
revokeAllAccess()
Removes all AccessControlEntryDefinitions for this object.
|
void |
setAcl(AccessControlList acl)
Sets the AccessControlList for this object.
|
void |
setDescription(String description)
Updates the description of this object.
|
void |
setExpirationDate(Date date)
Updates the expiration date set for this object.
|
void |
setFlags(long flags)
Sets the flags bitmask.
|
void |
setFolderReferencesSortSpecification(SortSpecification sort)
Sets the sort specification used
by the getFolderReferences method.
|
void |
setLockEntries(LockEntry[] les)
Sets all LockEntry objects associated with this instance.
|
protected void |
setLockEntrySecurity(LockEntryDefinition def)
Set security for a new LockEntry.
|
void |
setOwner(DirectoryUser owner)
Updates the owner of this object.
|
void |
setOwnerByName(String ownerName)
Updates the Owner of this object.
|
void |
setPolicyBundle(PolicyPropertyBundle bundle)
Deprecated.
CM SDK 10gR2: see release notes for changes to Policy framework
|
void |
setPolicyLists(PolicyList[] policyLists)
Sets the PolicyLists for this object.
|
void |
setSecuringPublicObject(PublicObject pubobj)
Sets the Public Object that controls our security.
|
static PublicObject[] |
toPublicObjectArray(LibrarySession sess,
Long[] ids,
PublicObject[] objs)
Constructs a PublicObject array from an array of object IDs.
|
void |
undelete()
cancel "mark delete" status for an object.
|
void |
unlock()
Releases the lock on the object.
|
void |
unlock(LockEntry le)
Release the specified lock on the target object.
|
void |
unlockAll()
Removes all of this object's LockEntry instances.
|
void |
unReserve()
Cancels the reservation on the primary version series.
|
void |
updateFlags(long updatedFlags)
Update flags without causing the modification attributes to change.
|
void |
updateLock(LockObjectDefinition lodef)
Updates the lockobject of this PublicObject with the information in
the LockObjectdefinition.
|
protected static PublicObject |
vectorPublicObjectElement(Vector vector,
int index)
Returns a PublicObject from a specified Vector of PublicObject
and an index.
|
protected static PublicObject[] |
vectorToPublicObjectArray(Vector vector)
Converts a Vector of PublicObject to an
array of PublicObject.
|
protected void |
verifyAddRelationshipCapability()
Verify the ability to add a relationship.
|
void |
verifyCapabilities(AccessLevel capabilities)
Verifies that every capability specified by the given AccessLevel is
enabled; throws an exception if any of the capabilities are not enabled.
|
void |
verifyCapability(long capability)
Verifies that the given capability is enabled; throws an exception if the
capability is not enabled.
|
protected void |
verifyDeleteCapability()
Verify the ability to delete.
|
protected void |
verifyLockCapability(int lockType)
Verify the ability to obtain a lock.
|
protected void |
verifyRemoveRelationshipCapability()
Verify the ability to remove a relationship.
|
protected void |
verifyUnlockCapability(LockEntry le)
Verify the ability to release a lock.
|
protected VersionSeries |
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
public static final String NAME_ATTRIBUTE
public static final String DESCRIPTION_ATTRIBUTE
public static final String OWNER_ATTRIBUTE
public static final String ACL_ATTRIBUTE
public static final String FAMILY_ATTRIBUTE
public static final String RESOLVEDPUBLICOBJECT_ATTRIBUTE
public static final String CREATEDATE_ATTRIBUTE
public static final String CREATOR_ATTRIBUTE
public static final String LASTMODIFYDATE_ATTRIBUTE
public static final String LASTMODIFIER_ATTRIBUTE
public static final String DELETOR_ATTRIBUTE
public static final String POLICYLISTS_ATTRIBUTE
public static final String POLICYBUNDLE_ATTRIBUTE
public static final String PROPERTYBUNDLE_ATTRIBUTE
public static final String SECURINGPUBLICOBJECT_ATTRIBUTE
public static final String EXPIRATIONDATE_ATTRIBUTE
public static final String LOCKOBJECT_ATTRIBUTE
LockObject
,
Constant Field Valuespublic static final String PRIMARYPARENTFOLDER_ATTRIBUTE
public static final String FLAGS_ATTRIBUTE
public static final String LOCKENTRIES_ATTRIBUTE
public static final long FLAG_NOINFERIOR
public static final long FLAG_NOSELECT
public static final long FLAG_MARKED
public static final long FLAG_UNMARKED
public static final long FLAG_NTFS_HIDDEN
public static final long FLAG_NTFS_SYSTEM
public static final long FLAG_NTFS_ARCHIVE
public static final long FLAG_NTFS_READONLY
public static final long FLAG_CATEGORY_EXISTS
public static final long FLAG_CONFIGURATIONCATEGORY_EXISTS
protected PublicObject(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- current LibSessionid
- the idclassId
- the class iddata
- the object's dataIfsException
- if the operation failspublic boolean hasNameAttribute() throws IfsException
hasNameAttribute
in class LibraryObject
IfsException
- if the operation failspublic boolean hasPropertyBundleAttribute() throws IfsException
hasPropertyBundleAttribute
in class LibraryObject
IfsException
- if the operation failspublic LibraryObjectDefinition getDefinitionForSimplePropertyUpdates(boolean updateLastModInfo) throws IfsException
getDefinitionForSimplePropertyUpdates
in class LibraryObject
updateLastModInfo
- whether to update the LastModify info
of the target objectIfsException
- if the operation failspublic Date getCreateDate() throws IfsException
IfsException
- if the operation failspublic DirectoryUser getCreator() throws IfsException
IfsException
- if the operation failspublic DirectoryUser getDeletor() throws IfsException
IfsException
- if the operation failspublic DirectoryUser getLastModifier() throws IfsException
IfsException
- if the operation failspublic String getDescription() throws IfsException
IfsException
- if the operation failspublic void setDescription(String description) throws IfsException
description
- New descriptionIfsException
- if the operation failspublic Date getLastModifyDate() throws IfsException
IfsException
- if the operation failspublic DirectoryUser getOwner() throws IfsException
IfsException
- if the operation failspublic boolean isOwner(DirectoryObject obj) throws IfsException
IfsException
- if the operation failspublic void setOwner(DirectoryUser owner) throws IfsException
owner
- the new owner for the object.IfsException
- if the operation failspublic void setOwnerByName(String ownerName) throws IfsException
The owner is specified by name.
ownerName
- the owner nameIfsException
- if the operation failspublic void setAcl(AccessControlList acl) throws IfsException
acl
- the AccessControlList setting.IfsException
- if the operation failspublic AccessControlList getAcl() throws IfsException
Returns null if no AccessControlList was specified.
IfsException
- if the operation failspublic PublicObject getSecuringPublicObject() throws IfsException
Returns null if no Securing Object was specified.
IfsException
- if the operation failspublic void setSecuringPublicObject(PublicObject pubobj) throws IfsException
pubobj
- the PublicObject that controls the securityIfsException
- if the operation failspublic Category addCategory(CategoryDefinition catdef) throws IfsException
catdef
- CategoryDefinition that describes the new Category
that will be associated with this PublicObjectIfsException
- if the operation failsprotected void createCategories(CategoryDefinition[] catDefs) throws IfsException
Elements in the specified array may be null (they are skipped).
catDefs
- the definitions of the categories to be createdIfsException
- if the operation failspublic Category[] getCategories(SortSpecification sort) throws IfsException
sort
- the specification of how the returned Category
objects will be sortedIfsException
- if the operation failspublic Category[] getCategories(ClassObject classobj) throws IfsException
classobj
- the class of CategoryIfsException
- if the operation failspublic Category getCategory(ClassObject classobj) throws IfsException
The caller must be certain that no more than one category of the specified class exists, or be satisfied that the first category encountered be returned. Returns null if no Category object of the specified class exist.
classobj
- the class of CategoryIfsException
- if the operation failspublic Category[] getCategories(ClassObject classobj, SortSpecification sort) throws IfsException
classobj
- the class of Categorysort
- the specification of how the returned Category
objects will be sortedIfsException
- if the operation failspublic boolean hasCategory(ClassObject clssObj) throws IfsException
clssObj
- the class of CategoryIfsException
- if the operation failspublic Category getFirstCategory(ClassObject clssObj) throws IfsException
clssObj
- the class of CategoryIfsException
- if the operation failspublic Relation[] getRelations() throws IfsException
IfsException
- if the operation failspublic Date getExpirationDate() throws IfsException
IfsException
- if the operation failspublic void setExpirationDate(Date date) throws IfsException
date
- New expiration dateIfsException
- if the operation failspublic long getFlags() throws IfsException
IfsException
- if the operation failspublic void setFlags(long flags) throws IfsException
Equivalent to:
AttributeValue av = AttributeValue.newAttributeValue(flags);
setAttribute(FLAGS_ATTRIBUTE, av);
flags
- the flags value.IfsException
- if the operation failspublic void updateFlags(long updatedFlags) throws IfsException
updatedFlags
- the updated value of the flags attributeIfsException
- if the operation failspublic void addFlags(long addedFlags) throws IfsException
This assumes that a transaction context has been established.
addedFlags
- the added flagsIfsException
- if the operation failspublic void clearFlags(long clearedFlags) throws IfsException
This assumes that a transaction context has been established.
clearedFlags
- the cleared flagsIfsException
- if the operation failspublic LockEntry[] getLockEntries() throws IfsException
IfsException
- if the operation failspublic LockEntry[] getLockEntries(boolean includeFamily) throws IfsException
includeFamily
- whether to include this Document's Family's LockEntry
instances, if this object has a FamilyIfsException
- if the operation failspublic void setLockEntries(LockEntry[] les) throws IfsException
les
- array of associated LockEntry objectsIfsException
- if the operation failspublic LockObject getLockObject() throws IfsException
IfsException
- if the operation failspublic boolean isLocked() throws IfsException
IfsException
- if the operation failspublic void lock(LockObject lockobj) throws IfsException
A user must have setAttribute permission on the object
to perform this operation.
Use this variant of lock for sharing locks.
The rules for sharing locks are as follows
lockobj
- The lockobject to be used for locking the
PublicObjectIfsException
- if the operation failspublic void lock(LockObjectDefinition ldef) throws IfsException
A user must have SetAttribute permissions on the object to perform
this operation.
See JavaDoc on LockObject for details on different lockstates.
ldef
- The lockobject definition for the lockIfsException
- if the operation failspublic void updateLock(LockObjectDefinition lodef) throws IfsException
The rules are as follows:
lodef
- LockObjectDefinition with updated attributesIfsException
- if the operation failspublic void unlock() throws IfsException
A user must have SetAttribute permissions on the object to perform
this operation.
This will set the LockObject attribute on PublicObject to null.
see JavaDoc for LockObject for details on unlocking
PublicObjects in different LockStates.
IfsException
- if the operation failspublic boolean canAcquireManualLock() throws IfsException
LibraryConstants.LOCKTYPE_MANUAL
can be acquired for this
object by the current user.
Returns true if all of the following conditions are true:
IfsException
- if the operation failspublic boolean canReleaseManualLock() throws IfsException
LibraryConstants.LOCKTYPE_MANUAL
can be released from this
object by the current user.
Returns true if this object has a MANUAL lock and at least one of the following conditions are true:
LibrarySession.EXECUTIONMODE_ADMINISTRATION
IfsException
- if the operation failspublic boolean canReleaseDavLock() throws IfsException
LibraryConstants.LOCKTYPE_DAV
can be released from this
object by the current user.
Returns true if this object has a DAV lock and at least one of the following conditions are true:
LibrarySession.EXECUTIONMODE_ADMINISTRATION
IfsException
- if the operation failsprotected boolean canReleaseLock(LockEntry existingLock) throws IfsException
Returns true if the given existing LockEntry is not null and at least one of the following conditions are true:
LibrarySession.EXECUTIONMODE_ADMINISTRATION
existingLock
- the LockEntry to check if can be released.IfsException
- if the operation failspublic LockEntry lock(LockEntryDefinition ledef) throws IfsException
ledef
- the definition of the new LockEntry.IfsException
- if the operation failspublic void lock(SystemLockEntry sle) throws IfsException
sle
- the SystemLockEntry to apply.IfsException
- if the operation failspublic void unlock(LockEntry le) throws IfsException
le
- the LockEntry to remove from the target object.IfsException
- if the operation failspublic void unlockAll() throws IfsException
NOTE: this should not be called directly. It is called as a side-effect of a delete operation.
IfsException
- if the operation failsprotected void verifyLockCapability(int lockType) throws IfsException
lockType
- the lock type for the new LockEntry.IfsException
- if the operation failsprotected void verifyUnlockCapability(LockEntry le) throws IfsException
le
- the LockEntry being releasedIfsException
- if the operation failsprotected void setLockEntrySecurity(LockEntryDefinition def) throws IfsException
def
- the definition of the new LockEntry.IfsException
- if the operation failspublic boolean containsLockEntry(LockEntry le) throws IfsException
le
- the LockEntry to look forIfsException
- if the operation failsprotected void handleUnlockAll() throws IfsException
IfsException
- if the operation failspublic boolean isLockingSupported()
Returns true, but can be overridden by subclasses that do not support locking (e.g. by Folder)
public AccessLevel getLockRestrictions() throws IfsException
IfsException
- if the operation failspublic LockEntry[] getRestrictingLockEntries(AccessLevel level) throws IfsException
level
- specified levelIfsException
- if the operation failspublic boolean checkLockAccess(AccessLevel level) throws IfsException
level
- specified levelIfsException
- if the operation failspublic PublicObjectCapabilities capabilities()
public AccessLevel getCapabilities() throws IfsException
To determine the set of enabled capabilities, this method checks:
IfsException
- if the operation failspublic boolean checkCapability(long capability) throws IfsException
To determine the set of enabled capabilities, this method checks:
capability
- the capability to check.IfsException
- if the operation otherwise failspublic boolean checkCapabilities(AccessLevel capabilities) throws IfsException
To determine the set of enabled capabilities, this method checks:
capabilities
- the capabilities to check.IfsException
- if the operation otherwise failspublic void verifyCapability(long capability) throws IfsException
This method verifies:
capability
- the capability to verify.IfsException
- public void verifyCapabilities(AccessLevel capabilities) throws IfsException
This method verifies:
capabilities
- the set of capabilities (an AccessLevel) to verify.IfsException
- public boolean checkAuditViewCapability() throws IfsException
Override base class to check CAPABILITY_GETAUDITHISTORY.
IfsException
- if the operation failsprotected void verifyDeleteCapability() throws IfsException
IfsException
- if the operation failsprotected void auditPublicObjectLocked(int lockType) throws IfsException
lockType
- the lock typeIfsException
- if the operation failsprotected void auditPublicObjectUnlocked(int lockType) throws IfsException
lockType
- the lock typeIfsException
- if the operation failsprotected AttributeValue[] getLockTypeAuditProperties(int lockType) throws IfsException
lockType
- the lock typeIfsException
- if the operation failspublic void deriveEffectiveAccessLevel(AccessLevel level) throws IfsException
This is overridden to add permissions based on the target object and other permissions defined on the specified level.
level
- the current permissions for the requesting
user on the target object.IfsException
- if the operation failspublic void setPolicyLists(PolicyList[] policyLists) throws IfsException
policyLists
- the PolicyList objects to applyIfsException
- if the operation failspublic PolicyList[] getPolicyLists() throws IfsException
IfsException
- if the operation failspublic void putPolicy(Policy policy) throws IfsException
policy
- the Policy to addIfsException
- if the operation failspublic void removePolicy(String opname) throws IfsException
opname
- the operation name of the policy to removeIfsException
- if the operation failspublic void removePolicy(Policy policy) throws IfsException
policy
- the operation name of the policy to removeIfsException
- if the operation failspublic void removeAllPolicies() throws IfsException
IfsException
- if the operation failspublic void setPolicyBundle(PolicyPropertyBundle bundle) throws IfsException
bundle
- the PolicyPropertyBundle setting.IfsException
- if the operation failspublic PolicyPropertyBundle getPolicyBundle() throws IfsException
IfsException
- if the operation failspublic Folder getPrimaryParentFolder() throws IfsException
IfsException
- if the operation failspublic Folder getPrimaryParentFolder(boolean useFamily) throws IfsException
Same as the zero-argument variant, but uses the target object's Family's path if the target object is not foldered.
useFamily
- whether Family's path should be used if target is
unfolderedIfsException
- if the operation failspublic String getPrimaryFolderPath() throws IfsException
IfsException
- if the operation failspublic String getAnyFolderPath() throws IfsException
IfsException
- if the operation failspublic String getAnyFolderPath(Folder reference) throws IfsException
IfsException
- if the operation failspublic String getAnyFolderPath(Folder reference, FolderPathOptions fpo) throws IfsException
reference
- The folder representing the
top node of the desired pathsfpo
- Options describing the
path determination operation;
optional; if null is specified,
default beahvior will be in forceIfsException
- if the operation failspublic long getConsumedStorage() throws IfsException
IfsException
- if the operation failspublic String[] getAllFolderPaths() throws IfsException
IfsException
- if the operation failspublic String[] getAllFolderPaths(Folder reference) throws IfsException
IfsException
- if the operation failspublic String[] getAllFolderPaths(Folder reference, FolderPathOptions fpo) throws IfsException
reference
- The folder representing the
top node of the desired pathsfpo
- Options describing the
path determination operation;
optional; if null is specified,
default beahvior will be in forceIfsException
- if the operation failspublic SortSpecification getFolderReferencesSortSpecification() throws IfsException
IfsException
- if the operation failspublic void setFolderReferencesSortSpecification(SortSpecification sort) throws IfsException
sort
- the folder references sort specification.IfsException
- if the operation failspublic Folder[] getFolderReferences() throws IfsException
IfsException
- if the operation fails.public Folder getFolderReferences(int index) throws IfsException
index
- index into the array of referencing foldersIfsException
- if the operation failspublic void resetFolderReferences() throws IfsException
IfsException
- if the operation failspublic Link[] getLinks() throws IfsException
IfsException
- if the operation failspublic void reassociateLinks(PublicObject newTarget) throws IfsException
newTarget
- new target object for the current set of
links to this objectIfsException
- if operation fails.public Category[] getCategories() throws IfsException
IfsException
- if operation fails.public Category getCategories(int index) throws IfsException
index
- index into the array of categoriesIfsException
- if the operation failsprotected void preCreate(LibraryObjectDefinition lodef) throws IfsException
Set an option that indicates that Categories are NOT to be created from within S_PublicObject.
preCreate
in class LibraryObject
lodef
- object definition that will be used to create
the objectIfsException
- if the operation failsprotected PublicObject handleCreate(LibraryObjectDefinition lodef) throws IfsException
lodef
- object definition that will be used to create the objectIfsException
- if the operation failsprotected void postCreate(LibraryObjectDefinition lodef) throws IfsException
This assumes that a transaction context has already been established.
postCreate
in class LibraryObject
lodef
- object definition that was used to create the objectIfsException
- if the operation failsprotected void preUpdate(LibraryObjectDefinition lodef) throws IfsException
Set an option that indicates that Categories are NOT to be created from within S_PublicObject.
preUpdate
in class LibraryObject
lodef
- object definition used to define how the target object
will be updatedIfsException
- if operation fails.protected void postUpdate(LibraryObjectDefinition lodef) throws IfsException
Create any categories that are specified in the definition.
postUpdate
in class LibraryObject
lodef
- object definition used to define how the
target object was updatedIfsException
- if operation fails.protected void preFree(LibraryObjectDefinition def) throws IfsException
Override to free all existing categories, in such a way that the PO doesn't get updated for each category free.
preFree
in class LibraryObject
def
- object definition used to hold
options related to the free operationIfsException
- if operation fails.public void free(LibraryObjectDefinition def) throws IfsException
If a null definition is specified, a default definition is used.
free
in class LibraryObject
def
- Context for the free operation.IfsException
- if the operation failsprotected void checkParentFolderCapability(PublicObjectDefinition poDef) throws IfsException
poDef
- object definitionIfsException
- if the operation failsprotected boolean coreAutoFolderingEnabled() throws IfsException
Applications (e.g. ECM) may overrides this if they process this differently.
IfsException
- if the operation failspublic PublicObject copy(LibraryObjectDefinition def) throws IfsException
def
- Definition describing changes to the new object, or null for exact copy.IfsException
- if the operation failsprotected void preCopy(LibraryObjectDefinition def) throws IfsException
This method is typically overridden by subclasses that
perform other operations prior to the target object
being copied.
Subclasses are expected to invoke super.preCopy
.
def
- object definition used to define how the target object
will be copiedIfsException
- if operation fails.protected PublicObject handleCopy(LibraryObjectDefinition def) throws IfsException
def
- the LibraryObjectDefinition describing the desired copyIfsException
- if the operation failsprotected void postCopy(LibraryObjectDefinition def, PublicObject clone) throws IfsException
This method is typically overridden by subclasses that
perform other operations after the target object
is copied.
Subclasses are expected to invoke super.postCopy
.
def
- object definition used to define how the target object
was copiedclone
- the copied objectIfsException
- if operation fails.public Relationship addRelationship(RelationshipDefinition reldef) throws IfsException
reldef
- Describes the new Relationship object,
including the PublicObject to which this object
will be relatedIfsException
- if the operation failspublic void removeRelationship(Relationship rel) throws IfsException
rel
- the relationship object to be removedIfsException
- if the operation failsprotected void verifyAddRelationshipCapability() throws IfsException
IfsException
- if the operation failsprotected void verifyRemoveRelationshipCapability() throws IfsException
IfsException
- if the operation failspublic PublicObject[] getRightwardRelationshipObjects(String relClassName) throws IfsException
relClassName
- the class name of the Relationship (or descendant
of Relationship) on which to filterIfsException
- if the operation failspublic PublicObject[] getRightwardRelationshipObjects(ClassObject relClass) throws IfsException
relClass
- the Relationship class (or descendant of
Relationship) on which to filterIfsException
- if the operation failspublic PublicObject[] getLeftwardRelationshipObjects(String relClassName) throws IfsException
relClassName
- the class name of the Relationship (or descendant of Relationship) on which to filter.IfsException
- if the operation failspublic PublicObject[] getLeftwardRelationshipObjects(ClassObject relClass) throws IfsException
relClass
- the Relationship class (or descendant of Relationship) on which to filter.IfsException
- if the operation failspublic Relationship[] getRightwardRelationships(String relClassName) throws IfsException
relClassName
- the class name of the Relationship (or descendant of Relationship) on which to filter.IfsException
- if the operation failspublic Relationship[] getRightwardRelationships(ClassObject relClass) throws IfsException
relClass
- the Relationship class (or descendant of Relationship) on which to filter.IfsException
- if the operation failspublic Relationship[] getLeftwardRelationships(String relClassName) throws IfsException
relClassName
- the class name of the Relationship (or descendant of Relationship) on which to filter.IfsException
- if the operation failspublic Relationship[] getLeftwardRelationships(ClassObject relClass) throws IfsException
relClass
- the Relationship class (or descendant of Relationship) on which to filter.IfsException
- if the operation failspublic long getLeftwardRelationshipsCount(String relClassName) throws IfsException
relClassName
- the name of the class of relationship on which to filter.IfsException
- if the operation failspublic long getLeftwardRelationshipsCount(ClassObject relClass) throws IfsException
relClass
- the class of relationship on which to filterIfsException
- if the operation failspublic Document[] getAttachments() throws IfsException
IfsException
- if the operation failspublic AttachmentRelation[] getAttachmentRelations() throws IfsException
IfsException
- if the operation failspublic AttachmentRelation addAttachment(Document doc) throws IfsException
doc
- the Attachment to addIfsException
- if the operation failspublic void removeAttachment(Document doc) throws IfsException
doc
- the Document to remove as an aattachment
(assuming it is an Attachment)IfsException
- if the operation failspublic boolean isAttachment(Document doc) throws IfsException
doc
- the Document to checkIfsException
- if the operation failspublic AttachmentRelation findAttachmentRelation(Document doc) throws IfsException
doc
- the Document to look forIfsException
- if the operation failspublic MessageList findOrAddMessageList() throws IfsException
Uses a default MessageListDefinition.
IfsException
- if the operation failspublic MessageList findOrAddMessageList(MessageListDefinition def) throws IfsException
def
- the definition to use if a new instance is createdIfsException
- if the operation failspublic MessageList addMessageList() throws IfsException
findOrAddMessageList
IfsException
- if the operation failspublic Actor findOrAddActor() throws IfsException
Uses a default ActorDefinition.
IfsException
- if the operation failspublic Actor findOrAddActor(ActorDefinition def) throws IfsException
def
- the definition to use if a new instance is createdIfsException
- if the operation failspublic ActivityRecord findOrAddActivityRecord() throws IfsException
Uses a default ActivityRecordDefinition.
IfsException
- if the operation failspublic ActivityRecord findOrAddActivityRecord(ActivityRecordDefinition def) throws IfsException
def
- the definition to use if a new instance is createdIfsException
- if the operation failspublic void reserveNext(String contentPath, String comment) throws IfsException
contentPath
- the path of the local work file. This is saved with the
version series as a convenience, but is not used.comment
- Reservation comment.IfsException
- if the operation failsVersionSeries
public void unReserve() throws IfsException
IfsException
- if the operation failspublic VersionDescription newVersion(VersionDescriptionDefinition vddef) throws IfsException
vddef
- The VersionDescriptionDefinition describing the desired new version.IfsException
- if the operation failspublic boolean isReserved() throws IfsException
IfsException
- if the operation failspublic boolean isReservedByCurrentUser() throws IfsException
IfsException
- if the operation failspublic DirectoryUser getReservor() throws IfsException
IfsException
- if the operation failspublic Date getReservationDate() throws IfsException
IfsException
- if the operation failspublic String getReservationComment() throws IfsException
IfsException
- if the operation failspublic boolean isVersioned() throws IfsException
IfsException
- if the operation failspublic boolean isLatestVersion() throws IfsException
This method is one of many versioning convenience methods on PublicObject. These methods are valid only when this public object is referenced by a single VersionDescription in the primaryVersionSeries (simple versioning). For more complex versioning models, you must use the methods on the version classes (Family, et. al).
IfsException
- if the operation failspublic PublicObject[] getVersions() throws IfsException
IfsException
- if the operation failspublic PublicObject getFirstVersion() throws IfsException
This method is one of many versioning convenience methods on PublicObject. These methods are valid only when this public object is referenced by a single VersionDescription in the primaryVersionSeries (simple versioning). For more complex versioning models, you must use the methods on the version classes (Family, et. al).
IfsException
- if the operation failspublic PublicObject getLastVersion() throws IfsException
This method is one of many versioning convenience methods on PublicObject. These methods are valid only when this public object is referenced by a single VersionDescription in the primaryVersionSeries (simple versioning). For more complex versioning models, you must use the methods on the version classes (Family, et. al).
IfsException
- if the operation failspublic PublicObject getNextVersion() throws IfsException
This method is one of many versioning convenience methods on PublicObject. These methods are valid only when this public object is referenced by a single VersionDescription in the primaryVersionSeries (simple versioning). For more complex versioning models, you must use the methods on the version classes (Family, et. al).
IfsException
- if the operation failspublic PublicObject getPreviousVersion() throws IfsException
This method is one of many versioning convenience methods on PublicObject. These methods are valid only when this public object is referenced by a single VersionDescription in the primaryVersionSeries (simple versioning). For more complex versioning models, you must use the methods on the version classes (Family, et. al).
IfsException
- if the operation failspublic Family getFamily() throws IfsException
IfsException
- if the operation failspublic PublicObject getWorkingCopy() throws IfsException
Returns null if this object does not have a Family, or if the Family is reserved by another user. Otherwise it returns the current Working Copy (the VersionSeries' PendingPublicObject).
IfsException
- if the operation failspublic boolean isWorkingCopy() throws IfsException
IfsException
- if the operation failspublic PublicObject getResolvedPublicObject() throws IfsException
this
. For the version classes, (Family,
VersionSeries, and VersionDescription), this will return a non
version-class object as determined by the configuration of the instance
of the version class.
For example, getResolvedPublicObject() on a VersionDescription will return the
PublicObject which it is tracking [same as
VersionDescription.getPublicObject()
].
For a VersionSeries, this will normally return the latest versioned PublicObject in that series (but this can be overridden). Refer to each version class' javadoc for details.
IfsException
- if the operation failspublic VersionSeries getVersionSeries() throws IfsException
IfsException
- if the operation failsprotected VersionDescription getSingletonVersionDescription() throws IfsException
IfsException
protected VersionSeries verifyVersionSeries() throws IfsException
IfsException
protected void checkVersioned() throws IfsException
IfsException
public boolean isVersionable() throws IfsException
IfsException
- if the operation failsprotected Vector listLeftwardRelationships(ClassObject relClass, SortSpecification sortSpec) throws IfsException
IfsException
protected Vector listRightwardRelationships(ClassObject relClass, SortSpecification sortSpec) throws IfsException
IfsException
public boolean hasCategories() throws IfsException
IfsException
- if the operation failspublic boolean hasConfigurationCategories() throws IfsException
IfsException
- if the operation failsprotected PolicyPropertyBundle createDedicatedPolicyPropertyBundle() throws IfsException
IfsException
- if the operation failsprotected SortSpecification resolveFolderReferenceSortSpecification(LibrarySession session) throws IfsException
session
- the current LibrarySessionIfsException
- if the operation failsprotected static Vector constructPublicObjectVector(LibrarySession sess, Vector vector) throws IfsException
IfsException
protected static PublicObject constructPublicObject(LibrarySession sess, S_LibraryObjectData data) throws IfsException
IfsException
public static PublicObject[] constructPublicObjectArray(LibrarySession sess, Long[] ids) throws IfsException
sess
- the requesting sessionids
- the array of object IDsIfsException
- if the operation failspublic static PublicObject[] toPublicObjectArray(LibrarySession sess, Long[] ids, PublicObject[] objs) throws IfsException
The specified array will be used if it is the correct size; otherwise, an array will be constructed on the correct size. This will throw an exception if any of the IDs cannot be converted into a PublicObject.
sess
- the requesting sessionids
- the array of object IDsobjs
- the array type to be returnedIfsException
- if the operation failsprotected static PublicObject[] vectorToPublicObjectArray(Vector vector)
vector
- A Vector containing PublicObjectsprotected static PublicObject vectorPublicObjectElement(Vector vector, int index) throws IndexOutOfBoundsException
vector
- A Vector containing PublicObjectindex
- An index into the Vector of PublicObjectIndexOutOfBoundsException
- if index is invalidpublic void delete() throws IfsException
IfsException
- if the operation failspublic void undelete() throws IfsException
IfsException
- if the operation failspublic boolean isDeleted() throws IfsException
IfsException
- if the operation failspublic AccessLevel getDefaultAccessLevel() throws IfsException
IfsException
- if the operation failspublic AccessLevel getEffectiveAccessLevel() throws IfsException
IfsException
- if the operation failspublic AccessLevel getEffectiveAccessLevel(DirectoryObject obj) throws IfsException
obj
- specified user on which to check Access ControlIfsException
- if the operation failspublic boolean checkEffectiveAccess(AccessLevel level) throws IfsException
level
- specified levelIfsException
- if the operation failspublic boolean checkEffectiveAccess(DirectoryObject obj, AccessLevel level) throws IfsException
obj
- the object being checkedlevel
- specified level.IfsException
- if the operation failspublic AccessControlEntry grantAccess(AccessControlEntryDefinition def) throws IfsException
def
- AccessControlEntryDefinition definitionIfsException
- if the operation failspublic AccessControlEntry revokeAccess(AccessControlEntryDefinition def) throws IfsException
def
- AccessControlEntryDefinition definitionIfsException
- if the operation failsprotected AccessControlEntry addAccess(AccessControlEntryDefinition def) throws IfsException
def
- AccessControlEntryDefinition definitionIfsException
- if the operation failspublic void postSecurityChangedEvent() throws IfsException
IfsException
- if operation failspublic long getVersionNumber() throws IfsException
This method is one of many versioning convenience methods on PublicObject. These methods are valid only when this public object is referenced by a single VersionDescription in the primaryVersionSeries (simple versioning). For more complex versioning models, you must use the methods on the version classes (Family, et. al).
IfsException
- if the operation failspublic void revokeAllAccess() throws IfsException
IfsException
- if the operation failspublic boolean hasMessageList() throws IfsException
IfsException
- if the operation failspublic boolean hasAttachmentRelation() throws IfsException
IfsException
- if the operation failspublic boolean hasActivityRecord() throws IfsException
IfsException
- if the operation failspublic boolean hasActor() throws IfsException
IfsException
- if the operation failspublic MessageList getMessageList() throws IfsException
IfsException
- if the operation failspublic AttachmentRelation getAttachmentRelation() throws IfsException
IfsException
- if the operation failspublic ActivityRecord getActivityRecord() throws IfsException
IfsException
- if the operation failspublic Actor getActor() throws IfsException
IfsException
- if the operation failsCopyright © 2023. All rights reserved.