public class PropertyBundle extends TieApplicationObject
PropertyBundles are used for several intrinsic features of iFS:
PropertyDefinition
,
PropertyBundle
,
PropertyBundleDefinition
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME
Name of this class.
|
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 |
PropertyBundle(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Construct a PropertyBundle.
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyProperties(LibraryObjectDefinition def)
Applies any properties that might be present in the specified definition.
|
ParameterTable |
constructEquivalentParameterTable()
Construct a ParameterTable that is equivalent to the
PropertyBundle's set of properties.
|
static ParameterTable |
constructEquivalentParameterTable(LibrarySession session,
Property[] props)
Construct a ParameterTable that is equivalent to the
specified set of properties.
|
static ParameterTable |
constructEquivalentParameterTable(LibrarySession session,
PropertyBundleDefinition pbDef)
Construct a ParameterTable that is equivalent to the
set of properties defined in the specified PropertyBundleDefinition.
|
protected static PropertyBundle |
constructPropertyBundle(LibrarySession sess,
S_LibraryObjectData data)
Constructs a PropertyBundle from the specified data.
|
protected static Vector |
constructPropertyBundleVector(LibrarySession sess,
Vector vector)
Constructs a Vector of PropertyBundle from a Vector of
S_LibraryObjectData.
|
Property[] |
getProperties()
Gets all the properties in this PropertyBundle.
|
Property |
getProperties(int index)
Gets the Property at the specified index.
|
Property |
getProperty(String name)
Gets a specified Property by name.
|
Property |
getPropertyByUpperCaseName(String name)
Gets a specified Property by name, where the name must be in all
uppercase.
|
AttributeValue |
getPropertyValue(String name)
Gets the value of a specific Property by name.
|
AttributeValue |
getPropertyValueByUpperCaseName(String name)
Gets the value of a specific Property by name, where the name must be
in all uppercase.
|
AttributeValue[] |
getPropertyValues()
Gets the values of all the properties in this PropertyBundle.
|
void |
putProperty(AttributeValue av)
Adds a Property to this object's PropertyBundle.
|
void |
putPropertyValue(AttributeValue av)
Puts a new value for a Property, replacing any attribute of the
same name (analogous to Hashtable.put()).
|
void |
putPropertyValue(String name,
AttributeValue av)
Puts a new value for a Property, replacing any attribute of the
same name (analogous to Hashtable.put()).
|
void |
removeAllProperties()
Removes all Properties from this object's PropertyBundle, leaving
an empty PropertyBundle.
|
void |
removeAllPropertyValues()
Removes all Properties from this PropertyBundle.
|
void |
removeProperty(String name)
Removes a Property from this object's PropertyBundle.
|
void |
removePropertyValue(String name)
Removes a Property, if it exists in this PropertyBundle
(analogous to Hashtable.remove())
|
void |
resetProperties()
Clears the locally cached array of properties.
|
void |
setPropertyValue(String key,
AttributeValue value)
Sets a property on the PropertyBundle associated with this instance.
|
protected static PropertyBundle |
vectorPropertyBundleElement(Vector vector,
int index)
Returns a specific PropertyBundle from a Vector of PropertyBundle, at
the specified index.
|
protected static PropertyBundle[] |
vectorToPropertyBundleArray(Vector vector)
Converts a Vector of PropertyBundle to an array of PropertyBundle.
|
auditPublicObjectLocked, auditPublicObjectUnlocked, auditUpdated, constructApplicationObject, constructApplicationObjectVector, isValidEventType, postCreate, preFree, reportApplicationObjectCreated, reportApplicationObjectFreed
addAccess, addAttachment, addCategory, addFlags, addMessageList, addRelationship, 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, postSecurityChangedEvent, postUpdate, preCopy, preCreate, 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, auditCreated, 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, 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, lockRows, lookupInstanceLabel, performPostCreateExtensions, performPostFreeExtensions, performPostUpdateExtensions, performPreCreateExtensions, performPreFreeExtensions, performPreUpdateExtensions, postEvent, postEvent, postFree, prePostAuditEvent, putProperty, removeAllSimpleProperties, removeAllSimpleProperties, removed, removeSimpleProperty, removeSimpleProperty, renderAsRandomAccessContent, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, setAttributes, setCopyContext, setFreeContext, setId, setName, setPropertyBundle, 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
protected PropertyBundle(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- the sessionid
- the idclassId
- the class iddata
- the Property dataIfsException
- if operation failsprotected void applyProperties(LibraryObjectDefinition def) throws IfsException
LibraryObject
This is called from both postCreate() and postUpdate().
applyProperties
in class LibraryObject
def
- The definition used in create or update operationIfsException
- if the operation failspublic Property[] getProperties() throws IfsException
IfsException
- if the operation failspublic Property getProperties(int index) throws IfsException
index
- index into the Property arrayIfsException
- if operation failspublic AttributeValue[] getPropertyValues() throws IfsException
IfsException
- if the operation failspublic void resetProperties() throws IfsException
This must be called to force a new array of properties to be fetched from the server.
IfsException
- if operation failspublic Property getProperty(String name) throws IfsException
name
- the name of the PropertyIfsException
- if the operation failspublic Property getPropertyByUpperCaseName(String name) throws IfsException
This is equivalent to getProperty
, but avoids an
unnecessary conversion of the name to upper case.
name
- the uppercased name of the PropertyIfsException
- if the operation failspublic AttributeValue getPropertyValue(String name) throws IfsException
getPropertyValue
in class LibraryObject
name
- name of the PropertyIfsException
- if the operation failspublic AttributeValue getPropertyValueByUpperCaseName(String name) throws IfsException
This is equivalent to getPropertyValue
, but avoids an
unnecessary conversion of the name to upper case.
name
- uppercased name of the PropertyIfsException
- if the operation failspublic void putPropertyValue(String name, AttributeValue av) throws IfsException
name
- the name of the Propertyav
- the AttributeValue containing the new value;IfsException
- if the operation failspublic void putPropertyValue(AttributeValue av) throws IfsException
av
- the AttributeValue containing the new value;
implies the name & data typeIfsException
- if the operation failspublic void removePropertyValue(String name) throws IfsException
name
- the name of the PropertyIfsException
- if the operation failspublic void removeAllPropertyValues() throws IfsException
IfsException
- if the operation failspublic void putProperty(AttributeValue av) throws IfsException
putProperty
in class LibraryObject
av
- the name/value of the property to addIfsException
- if the operation failspublic void removeProperty(String name) throws IfsException
removeProperty
in class LibraryObject
name
- the name of the property to removeIfsException
- if the operation failspublic void removeAllProperties() throws IfsException
removeAllProperties
in class LibraryObject
IfsException
- if the operation failspublic void setPropertyValue(String key, AttributeValue value) throws IfsException
setPropertyValue
in class LibraryObject
key
- the property's keyvalue
- the property valueIfsException
- if the operation failspublic ParameterTable constructEquivalentParameterTable() throws IfsException
IfsException
- if the operation failspublic static ParameterTable constructEquivalentParameterTable(LibrarySession session, Property[] props) throws IfsException
session
- the session contextprops
- the PropertiesIfsException
- if the operation failspublic static ParameterTable constructEquivalentParameterTable(LibrarySession session, PropertyBundleDefinition pbDef) throws IfsException
session
- the session contextpbDef
- the PropertiesIfsException
- if the operation failsprotected static Vector constructPropertyBundleVector(LibrarySession sess, Vector vector) throws IfsException
sess
- sessionvector
- Vector of S_LODataIfsException
- if operation fails.protected static PropertyBundle constructPropertyBundle(LibrarySession sess, S_LibraryObjectData data) throws IfsException
sess
- the sessiondata
- the PropertyBundle dataIfsException
- if an error occursprotected static PropertyBundle[] vectorToPropertyBundleArray(Vector vector)
vector
- Vector of PropertyBundleprotected static PropertyBundle vectorPropertyBundleElement(Vector vector, int index)
vector
- Vector of PropertyBundleindex
- index into the Vector of PropertyBundleIndexOutOfBoundsException
- if invalid index specified.Copyright © 2023. All rights reserved.