public class S_Document extends S_TiePublicObject
S_LibraryObject.MapInfoACL_ATTRIBUTE, CLASS_NAME, CREATEDATE_ATTRIBUTE, CREATOR_ATTRIBUTE, DELETOR_ATTRIBUTE, EXPIRATIONDATE_ATTRIBUTE, FAMILY_ATTRIBUTE, LASTMODIFIER_ATTRIBUTE, LASTMODIFYDATE_ATTRIBUTE, NAME_ATTRIBUTE, OWNER_ATTRIBUTE, POLICY_ENUM_EXTENDEDFREE_IGNORE_OWNERSHIP, POLICY_ENUM_EXTENDEDFREE_INVALID_VALUE, POLICY_ENUM_EXTENDEDFREE_REQUIRE_ADMIN, POLICYBUNDLE_ATTRIBUTE, RESOLVED_OBJECT_ATTRIBUTE, SECURINGPUBLICOBJECT_ATTRIBUTECASCADE_OP_COPY_PUBLICOBJECT_TO_CATEGORY, CASCADE_OP_COPY_PUBLICOBJECT_TO_RIGHT_RELATIONSHIP, CASCADE_OP_DELETE_FAMILY_TO_VERSIONSERIES, CASCADE_OP_DELETE_PUBLICOBJECT_TO_LEFT_RELATIONSHIP, CASCADE_OP_DELETE_PUBLICOBJECT_TO_RIGHT_RELATIONSHIP, CASCADE_OP_DELETE_PUBLICOBJECT_TO_VERSIONDESCRIPTION, CASCADE_OP_DELETE_RELATIONSHIP_TO_LEFT_PUBLICOBJECT, CASCADE_OP_DELETE_RELATIONSHIP_TO_RIGHT_PUBLICOBJECT, CASCADE_OP_DELETE_VERSIONDESCRIPTION_TO_PUBLICOBJECT, CASCADE_OP_DELETE_VERSIONDESCRIPTION_TO_VERSIONSERIES, CASCADE_OP_DELETE_VERSIONSERIES_TO_FAMILY, CASCADE_OP_DELETE_VERSIONSERIES_TO_VERSIONDESCRIPTION, CASCADE_OP_FREE_CATEGORY_TO_PUBLICOBJECT, CASCADE_OP_FREE_CATEGORY_TO_SCHEMAOBJECT, CASCADE_OP_FREE_CATEGORY_TO_SYSTEMOBJECT, CASCADE_OP_FREE_FAMILY_TO_VERSIONSERIES, CASCADE_OP_FREE_PUBLICOBJECT_TO_CATEGORY, CASCADE_OP_FREE_PUBLICOBJECT_TO_LEFT_RELATIONSHIP, CASCADE_OP_FREE_PUBLICOBJECT_TO_RIGHT_RELATIONSHIP, CASCADE_OP_FREE_PUBLICOBJECT_TO_VERSIONDESCRIPTION, CASCADE_OP_FREE_RELATIONSHIP_TO_LEFT_PUBLICOBJECT, CASCADE_OP_FREE_RELATIONSHIP_TO_RIGHT_PUBLICOBJECT, CASCADE_OP_FREE_SCHEMAOBJECT_TO_CATEGORY, CASCADE_OP_FREE_SYSTEMOBJECT_TO_CATEGORY, CASCADE_OP_FREE_VERSIONDESCRIPTION_TO_PUBLICOBJECT, CASCADE_OP_FREE_VERSIONDESCRIPTION_TO_VERSIONSERIES, CASCADE_OP_FREE_VERSIONSERIES_TO_FAMILY, CASCADE_OP_FREE_VERSIONSERIES_TO_VERSIONDESCRIPTION, CASCADE_OP_UNDEFINED, CASCADE_OP_UNDELETE_FAMILY_TO_VERSIONSERIES, CASCADE_OP_UNDELETE_PUBLICOBJECT_TO_LEFT_RELATIONSHIP, CASCADE_OP_UNDELETE_PUBLICOBJECT_TO_RIGHT_RELATIONSHIP, CASCADE_OP_UNDELETE_PUBLICOBJECT_TO_VERSIONDESCRIPTION, CASCADE_OP_UNDELETE_RELATIONSHIP_TO_LEFT_PUBLICOBJECT, CASCADE_OP_UNDELETE_RELATIONSHIP_TO_RIGHT_PUBLICOBJECT, CASCADE_OP_UNDELETE_VERSIONDESCRIPTION_TO_PUBLICOBJECT, CASCADE_OP_UNDELETE_VERSIONDESCRIPTION_TO_VERSIONSERIES, CASCADE_OP_UNDELETE_VERSIONSERIES_TO_FAMILY, CASCADE_OP_UNDELETE_VERSIONSERIES_TO_VERSIONDESCRIPTION, CASCADE_OP_UPDATE_CATEGORY_TO_PUBLICOBJECT, CASCADE_OP_UPDATE_CATEGORY_TO_SCHEMAOBJECT, CASCADE_OP_UPDATE_CATEGORY_TO_SYSTEMOBJECT, CASCADE_OP_UPDATE_PUBLICOBJECT_TO_CATEGORY, CASCADE_OP_UPDATE_SCHEMAOBJECT_TO_CATEGORY, CASCADE_OP_UPDATE_SYSTEMOBJECT_TO_CATEGORY, DEFAULT_RENDERER, m_ClassId, m_Id, m_Session| Modifier | Constructor and Description |
|---|---|
protected |
S_Document(S_LibrarySession session,
Long classId)
Construct a S_Document object.
|
protected |
S_Document(S_LibrarySession session,
S_LibraryObjectData data)
Construct a S_Document object.
|
| Modifier and Type | Method and Description |
|---|---|
protected S_ContentQuota |
checkQuotaSpecification(S_LibraryObjectDefinition def)
Checks to see if ContentQuota is specified in the definition.
|
protected void |
checkQuotaUpdate(S_ContentQuota quota)
Check quota update.
|
protected void |
deriveDefinition(S_LibraryObjectDefinition sdef)
Add to the S_LibraryObjectDefinition
for this class.
|
Serializable |
DYNClearContentQuota(Serializable payload)
Bean-callable wrapper to clearContentQuota
|
Serializable |
DYNCloneContentObject(Serializable payload)
dynamic wrapper to cloneContentObject
|
protected void |
extendedPreCopy(OperationState opState,
S_LibraryObjectDefinition sdef)
Operations to be performed prior to creating an object copy.
|
protected void |
extendedPreFree(OperationState opState,
S_LibraryObjectDefinition def)
operations to be performed before freeing
an object.
|
protected void |
extendedPreInsert(OperationState opState,
S_LibraryObjectDefinition def)
Update any system attributes appropriate for creating this object
|
protected void |
extendedPreUpdate(OperationState opState,
S_LibraryObjectDefinition def)
Update any system attributes appropriate for updating this object
|
String |
getCharacterSet()
Gets the Iana character set of the content or null if not specified.
|
protected long |
getConsumedStorage()
Returns the size of the document as the consumed storage of the
document.
|
RandomAccessor |
getContentByRandomAccess()
Gets a RandomAccessor for randomly reading the content of this document.
|
S_ContentObject |
getContentObject() |
S_ContentQuota |
getContentQuota()
Gets the S_ContentQuota for this object.
|
Reader |
getContentReader()
Gets the document content as a Reader
|
long |
getContentSize()
Gets the size of this document's content.
|
InputStream |
getContentStream()
Gets the document content as an InputStream.
|
String |
getLanguage()
Gets the language of the content or null if not specified.
|
protected void |
postSecurityChangeAuditEvent(S_PublicObject domain,
S_AccessControlList acl)
Posts an audit event for the security change operation.
|
protected void |
setContentObject(OperationState opState,
S_LibraryObjectDefinition sdef,
S_ContentQuota quota,
boolean update)
Set content during either Document insert or update.
|
void |
setOwnerHasRead(boolean readState)
change the value of the READBYOWNER attribute if the
current user is the owner of the Document.
|
RandomAccessor |
updateContentByRandomAccess(S_LibraryObjectDefinition sdocdef,
Long expirationPeriod)
Gets a RandomAccessor for randomly writing and reading the content of
this document.
|
protected void |
updateContentLastModifyDate(OperationState opState)
Updates the last modify date attribute on this documents
contentobject.
|
protected void |
verifyCanGetContent()
Verifies that the user has getContent permission on this
object
|
protected void |
verifyCanGetContent(S_ContentObject refco)
Verifies that the user has getContent permission on this
object
|
protected void |
verifyCanSetContent()
Verifies that the user has setContent permission on this
object
|
addCategory, addRelationship, addRelationship, canUseContentQuota, cascadeCopy, cascadeDelete, cascadeFree, cascadeUndelete, checkAccess, constructPublicObjectArray, createCategories, createDefaultPolicyPropertyBundle, createDefaultPropertyBundle, delete, delete, determineResolvedObject, DYNReplaceCreator, DYNReplaceDeletor, DYNReplaceModifier, extendedPostDelete, extendedPostFree, extendedPostInsert, extendedPostUndelete, extendedPostUpdate, extendedPreDelete, extendedPreUndelete, forceSecuredObjectsToClear, freeIfNoFolderReferences, freeNonsharedAcl, freeNonsharedLockObject, getAcl, getAllFolderPaths, getAllFolderPaths, getAllFolderPaths, getAllFolderPaths, getAllLeftRelationships, getAllRightRelationships, getAnyFolderPath, getAnyFolderPath, getAnyFolderPath, getAnyFolderPath, getAuditEventFolderContext, getCategories, getCategories, getCategories, getCategory, getDefaultAclFromUserProfile, getFamily, getFlags, getLeftRelationships, getLeftwardRelationshipDatas, getLeftwardRelationshipDatas, getLeftwardRelationshipObjectDatas, getLeftwardRelationshipObjectDatas, getLeftwardRelationshipObjects, getLeftwardRelationshipObjects, getLeftwardRelationships, getLeftwardRelationships, getLeftwardRelationshipsCount, getLeftwardRelationshipsCount, getLinkIds, getLinks, getLockedForSessionId, getLockEntries, getLockObject, getLockRestrictions, getOwner, getPrimaryParentFolder, getPropagatedSecurityAttributeNames, getPropagatedSecurityColumnNames, getReferencingFolderIds, getReferencingFolders, getResolvedObject, getRightRelationships, getRightwardRelationshipDatas, getRightwardRelationshipDatas, getRightwardRelationshipObjectDatas, getRightwardRelationshipObjectDatas, getRightwardRelationshipObjects, getRightwardRelationshipObjects, getRightwardRelationships, getRightwardRelationships, getSpecificLeftRelationships, getSpecificRightRelationships, getVersionDescriptions, handleCascade, handleExtendedFreePolicy, hasNameAttribute, invokeLockingPolicy, isAuditCertificateSecured, isDeleted, isLocked, isLockedForSession, isLockedForSessionByCurrentSession, isLockObjectEnabled, isLockObjectEnabled, isOwner, isVersionable, postCreateAddToFolder, postDelete, postUndelete, postUpdateAddToFolder, preDelete, preUndelete, propagateFreeIfNoFolderReferences, propagateNameChanges, propagateSecurityChanges, propogateSettingsToProxyService, putProperty, reassociateLinks, relationshipExists, removeRelationship, removeRelationship, removeRowFromAclProxyIfSecured, resolveACLSetting, resolveResolvedObject, resolveSecuredBySettings, signalLeftRelationshipFreed, signalRightRelationshipFreed, undelete, undelete, unlockForSession, updateFamily, updateFlags, updateLastModifiedInfo, updatePrimaryParentFolder, vectorToSPublicObjectArray, verifyCanAddRelationship, verifyCanCreate, verifyCanFree, verifyCanLock, verifyCanRemoveRelationship, verifyCanSetPolicy, verifyCanUnlock, verifyCanUpdatePublicObject, verifyCanUseContentQuota, verifyGrantAccess, verifyObjectNotLocked, verifyObjectNotLocked, verifyPublicObjectPermissionadded, applyValueDefault, associatedPostFree, associatedPostInsert, associatedPreInsert, canPurge, cascadeUpdate, checkRequiredForInsert, checkSettable, clearArrayTypeAttributeValues, clearMapTypeAttributeValues, clonePublicObjectAttribute, constructIdArray, constructIdArray, copy, copy, copyVectorToLibraryObjectArray, createDefaultPropertyBundle, createInstance, deleteRows, deriveOwnerUniqueName, deriveOwnerUniqueName, deriveUppercasedAttribute, determineClassDomain, determinePolicy, determinePolicy, determineValueDefault, determineValueDomain, dispose, DYNInvalidateState, DYNLockRows, equals, equals, executePolicyOperation, findPolicyFromPropertyBundleAv, free, free, getAttribute, getAttributeByUpperCaseName, getAuditCertificateName, getAuditDomainContext, getAuditDomainContextFolder, getClassData, getClassId, getClassName, getClassObject, getContentStorageManager, getData, getDefinition, getEffectivePolicyActionContexts, getEffectivePolicyListElements, getEventualAttributeByUpperCaseName, getId, getLibraryConnection, getName, getObjectReferenceAttribute, getPropertyBundle, getPropertyValue, getResourceString, getResourceString, getService, getSession, getSessionInterface, getTraceLogger, handleEvent, hashCode, insertReferenceAttributes, insertRow, insertRows, invalidateState, invokeOperation, invokePolicyMethod, isBroadcastCreateEventEnabled, isInstanceOf, isPersistent, issueCascade, isTraced, lockRows, postEvent, postEvent, postEvent, postFree, postInsert, postUpdate, preFree, preInsert, preUpdate, privilegedUpdate, removed, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, toString, trace, update, updateRows, validateStringArray, verifyCanUpdate, verifyPersistent, verifyWriteableTransactionInProgressclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAttributeByUpperCaseName, getClassId, getId, getSessionInterfacegetTraceLogger, isTraced, traceprotected S_Document(S_LibrarySession session, S_LibraryObjectData data) throws IfsException
session - current LibrarySessiondata - Data componentIfsExceptionprotected S_Document(S_LibrarySession session, Long classId) throws IfsException
session - current LibrarySessionIfsExceptionprotected void deriveDefinition(S_LibraryObjectDefinition sdef) throws IfsException
deriveDefinition in class S_PublicObjectsdef - the S_LibraryObjectDefinition that contains
the definition of the target object.IfsException - if operation fails.protected void extendedPreInsert(OperationState opState, S_LibraryObjectDefinition def) throws IfsException
extendedPreInsert in class S_PublicObjectopState - current operation statedef - current object definition to be updated with system attributesIfsException - if operation fails.protected void extendedPreUpdate(OperationState opState, S_LibraryObjectDefinition def) throws IfsException
extendedPreUpdate in class S_PublicObjectopState - the operation statedef - current object definition to be updated with system attributesIfsException - if operation fails.protected void updateContentLastModifyDate(OperationState opState) throws IfsException
opState - the Operation stateIfsException - if operation fails.public Serializable DYNClearContentQuota(Serializable payload) throws IfsException
payload - ignoredIfsException - if operation fails.protected void extendedPreFree(OperationState opState, S_LibraryObjectDefinition def) throws IfsException
extendedPreFree in class S_PublicObjectopState - the OperationStatedef - the Definition containing options for this operationIfsException - if operation fails.protected void extendedPreCopy(OperationState opState, S_LibraryObjectDefinition sdef) throws IfsException
extendedPreCopy in class S_PublicObjectopState - the OperationStatesdef - any modifications to make to the copied objectIfsException - if operation fails.protected void setContentObject(OperationState opState, S_LibraryObjectDefinition sdef, S_ContentQuota quota, boolean update) throws IfsException
opState - the OperationStatesdef - the S_LibraryObjectDefinition for the Documentquota - the new quota setting (if any)update - whether the content is being set as part of a
Document updateIfsException - if operation fails.protected void checkQuotaUpdate(S_ContentQuota quota) throws IfsException
quota - the new quota settingIfsException - if operation fails.protected void postSecurityChangeAuditEvent(S_PublicObject domain, S_AccessControlList acl) throws IfsException
postSecurityChangeAuditEvent in class S_PublicObjectdomain - domain contextacl - new ACLIfsException - if the operation failspublic Serializable DYNCloneContentObject(Serializable payload) throws IfsException
payload - the payload to cloneIfsException - if operation fails.public void setOwnerHasRead(boolean readState)
throws IfsException
readState - - value to set for READBYOWNERIfsException - if the operation failspublic S_ContentObject getContentObject() throws IfsException
IfsExceptionprotected long getConsumedStorage()
throws IfsException
getConsumedStorage in class S_PublicObjectIfsException - if the operation failspublic String getCharacterSet() throws IfsException
IfsExceptionpublic String getLanguage() throws IfsException
IfsExceptionpublic S_ContentQuota getContentQuota() throws IfsException
IfsException - if the operation failspublic InputStream getContentStream() throws IfsException
IfsException - if operation fails.public Reader getContentReader() throws IfsException
IfsException - if operation fails.public RandomAccessor getContentByRandomAccess() throws IfsException
IfsException - if the operation failspublic RandomAccessor updateContentByRandomAccess(S_LibraryObjectDefinition sdocdef, Long expirationPeriod) throws IfsException
sdocdef - a DocumentDefinition, as a
S_LibraryObjectDefinitionexpirationPeriod - the expiration period for the RandomAccessor,
in seconds, or null for the default expiration
periodIfsException - if the operation failspublic long getContentSize()
throws IfsException
IfsException - if operation fails.protected void verifyCanGetContent()
throws IfsException
IfsException - if the operation failsprotected void verifyCanGetContent(S_ContentObject refco) throws IfsException
verifyCanGetContent in class S_LibraryObjectrefco - the content object to verify againstIfsException - if the operation failsprotected void verifyCanSetContent()
throws IfsException
verifyCanSetContent in class S_LibraryObjectIfsException - if the operation failsprotected S_ContentQuota checkQuotaSpecification(S_LibraryObjectDefinition def) throws IfsException
def - server-side definition that might contain a
ContentQuota specificationIfsException - if operation fails.Copyright © 2025. All rights reserved.