public class Document extends TiePublicObject
ContentObject
,
DocumentDefinition
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME
This class name for this class.
|
static String |
CONTENTOBJECT_ATTRIBUTE
The ContentObject that contains this document's content.
|
static String |
CONTENTQUOTA_ATTRIBUTE
The ContentQuota being charged for this document's content.
|
static String |
INITIALLIFECYCLEDATE_ATTRIBUTE
The initial base date used to manage lifecycle of this document.
|
static String |
LIFECYCLEDATE_ATTRIBUTE
The current base date used to manage lifecycle of this document.
|
static String |
LIFECYCLEPOLICY_ATTRIBUTE
The LifecyclePolicy which describes the
lifecycle rules for this document.
|
static String |
LIFECYCLEPOLICYENTRYID_ATTRIBUTE
The ID of the LifecyclePolicyEntry that represents the current
lifecycle state of the Document, or null if no LifecyclePolicy
is set.
|
static String |
LIFECYCLEPOLICYID_ATTRIBUTE
Attribute which holds the ID of the LifecyclePolicy if set or null
if not set; used for indexing purposes.
|
static String |
READBYOWNER_ATTRIBUTE
An indicator of whether the Document Owner has read the current content.
|
static String |
RETENTIONPOLICY_ATTRIBUTE
The RetentionPolicy which describes the
retention rules for this document.
|
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 |
Document(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Constructs a Document object - standard variant.
|
Modifier and Type | Method and Description |
---|---|
protected void |
auditContentRead(int mode)
Audits content being read.
|
protected void |
auditLifecyclePolicyCleared(LifecyclePolicy lp)
Audit the clearing of a LifecyclePolicy from this document.
|
protected void |
auditLifecyclePolicySet(LifecyclePolicy lp)
Audit the setting of a LifecyclePolicy on this document.
|
void |
auditLifecycleStateUpdated(LifecyclePolicyEntry lpe)
Audit the update of Lifecycle state on this document.
|
protected void |
auditPublicObjectLocked(int lockType)
Audits a PublicObject being locked.
|
protected void |
auditPublicObjectUnlocked(int lockType)
Audits a PublicObject being unlocked.
|
protected void |
auditRetentionPolicyCleared(RetentionPolicy rp)
Audit the clearing of a RetentionPolicy from this document.
|
protected void |
auditRetentionPolicySet(RetentionPolicy rp)
Audit the setting of a RetentionPolicy on this document.
|
protected void |
auditUpdated(LibraryObjectDefinition lodef)
Creates audit events for the update operation.
|
PublicObjectCapabilities |
capabilities()
Returns the PublicObjectCapabilities delegate which tracks the
capabilities of this object.
|
protected static Document |
constructDocument(LibrarySession sess,
S_LibraryObjectData data)
Constructs a Document object from the
S_LibraryObjectData object.
|
protected static Vector |
constructDocumentVector(LibrarySession sess,
Vector vector)
Returns Document Vector from a Vector of S_DocumentData objects.
|
void |
filterContent(boolean plaintext)
Generates a HTML or plaintext version of the document, via the
Context INSO filters.
|
String |
generateFilename()
Generates a filename which is the objectname plus the format
extension.
|
void |
generateSummary(String pointOfView,
long sizeAsPercent,
long sizeAsNumParagraphs,
String summaryLevel)
Generates one or more summaries for a document by submitting a
request to Context to generate summaries.
|
void |
generateThemes(boolean fullThemes)
Generates the Themes for this Document by submitting a request to
Context to generate Themes.
|
String |
getCharacterSet()
Returns the Iana character encoding of the content, or
null if not specified.
|
static Long |
getClassId(LibrarySession session)
Get the ID of the ClassObject representing DOCUMENT.
|
RandomAccessor |
getContentByRandomAccess()
Gets a RandomAccessor for randomly reading the content of this document.
|
Date |
getContentModificationDate()
Returns the date on which the CONTENT on this document
was last modified.
|
ContentObject |
getContentObject()
Gets the content for this Document.
|
ContentQuota |
getContentQuota()
Gets the ContentQuota object being charged by this Document.
|
Reader |
getContentReader()
Gets the document content as a Reader
|
long |
getContentRowId()
Gets Content row ID.
|
long |
getContentSize()
Gets the size of this document's content.
|
InputStream |
getContentStream()
Gets the document content as an InputStream.
|
LifecyclePolicyEntry |
getCurrentLifecyclePolicyEntry()
Returns the current LifecyclePolicyEntry reflecting the current state of
the document.
|
Reader |
getFilteredContent()
Gets the plaintext or HTML content of the document, previously
generated by a call to filterContent()
|
Format |
getFormat()
Gets the format for this Document.
|
Date |
getInitialLifecycleDate()
Returns the initial base date used to manage lifecycle of this document.
|
String |
getLanguage()
Gets the Oracle language of the content,
or null if not specified.
|
Date |
getLifecycleDate()
Returns the current base date used to manage lifecycle of this document.
|
LifecyclePolicy |
getLifecyclePolicy()
Returns the LifecyclePolicy which describes the
lifecycle rules for this document.
|
int |
getLifecycleState()
Returns the lifecycle state of the Document, derived from the current
LifecyclePolicyEntryId setting.
|
Media |
getMedia()
Gets the media for this Document.
|
String |
getMimeType()
Returns the MIME type of this Document's Format.
|
LifecyclePolicyEntry |
getNextLifecyclePolicyEntry()
Returns the next LifecyclePolicyEntry reflecting the state of
the document once the next Lifecycle state is processed.
|
RandomAccessContentInterface |
getRandomAccessContent(boolean canWrite)
Deprecated.
CM SDK 10gR2: use getContentByRandomAccess or updateContentByRandomAccess
|
RandomAccessContentInterface |
getRandomAccessContent(boolean canWrite,
boolean shouldLock)
Deprecated.
CM SDK 10gR2: use getContentByRandomAccess or updateContentByRandomAccess
|
RetentionPolicy |
getRetentionPolicy()
Returns the RetentionPolicy which describes the
retention rules for this document.
|
Reader |
getSummary(String pointOfView)
Gets a specific summary of a document, previously generated by a
call to generateSummary().
|
ContextTheme[] |
getThemes()
Gets the Themes for a document, previously generated by a call to
generateThemes().
|
boolean |
isBinaryFormat()
Returns indication as to whether the Document's Format
is a binary format.
|
boolean |
isReadByOwner()
Returns true if the owner of the document has read the content via this
document.
|
boolean |
isReadByUser()
Returns true if the current user has read the content to
which this document refers.
|
protected boolean |
isValidEventType(AuditEvent event)
Checks to see if the event type in the process of being posted on the
target LibraryObject is consistent with the target.
|
protected void |
postCreate(LibraryObjectDefinition lodef)
Extensibility point to perform actions after the
creation of a PublicObject.
|
protected void |
preCreate(LibraryObjectDefinition lodef)
Extensibility point to perform actions prior to the
creation of a PublicObject.
|
protected void |
preFree(LibraryObjectDefinition lodef)
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.
|
protected void |
reportDocumentCreated()
Audits a Document create operation.
|
protected void |
reportDocumentFreed()
Audits a Document free operation.
|
void |
setCharacterSet(String charset)
Sets the Iana character set for the document content.
|
void |
setContent(DocumentDefinition def)
Sets the content of this Document.
|
void |
setContentQuota(ContentQuota quota)
Sets the ContentQuota that will be charged by this Document.
|
void |
setFormat(Format format)
Sets the format for this Document.
|
void |
setLanguage(String language)
Sets the language of the document content.
|
void |
setLifecycleDate(Date ldate)
Sets the base date used to manage lifecycle of this document.
|
void |
setLifecyclePolicy(LifecyclePolicy lp)
Sets the LifecyclePolicy which describes the
lifecycle rules for this document.
|
void |
setReadByUser(boolean readState)
Sets read indication (for the current user) for the content referred to
by this Document.
|
void |
setRetentionPolicy(RetentionPolicy rp)
Sets the RetentionPolicy which describes the
retention rules for this document.
|
RandomAccessor |
updateContentByRandomAccess(DocumentDefinition docdef,
Long expirationPeriod)
Gets a RandomAccessor for randomly writing and reading the content of
this document.
|
protected static Document |
vectorDocumentElement(Vector vector,
int index)
Returns a Document element from the Vector of Document
objects at the specified index.
|
protected static Document[] |
vectorToDocumentArray(Vector vector)
Converts a Vector of Document to an array of
DirectoryGroup.
|
protected ContentObject |
verifyContentObject()
Verifies the ContentObject of this Document is set.
|
addAccess, addAttachment, addCategory, addFlags, addMessageList, addRelationship, canAcquireManualLock, canReleaseDavLock, canReleaseLock, canReleaseManualLock, 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, putPolicy, reassociateLinks, removeAllPolicies, removeAttachment, removePolicy, removePolicy, removeRelationship, reserveNext, resetFolderReferences, resolveFolderReferenceSortSpecification, revokeAccess, revokeAllAccess, setAcl, setDescription, setExpirationDate, setFlags, setFolderReferencesSortSpecification, setLockEntries, setLockEntrySecurity, setOwner, setOwnerByName, setPolicyBundle, setPolicyLists, setSecuringPublicObject, toPublicObjectArray, undelete, unlock, unlock, unlockAll, unReserve, updateFlags, updateLock, vectorPublicObjectElement, vectorToPublicObjectArray, verifyAddRelationshipCapability, verifyCapabilities, verifyCapability, verifyDeleteCapability, verifyLockCapability, verifyRemoveRelationshipCapability, verifyUnlockCapability, verifyVersionSeries
added, addSimpleProperty, addSimpleProperty, applyProperties, auditCreated, 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, 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 CONTENTOBJECT_ATTRIBUTE
public static final String READBYOWNER_ATTRIBUTE
public static final String CONTENTQUOTA_ATTRIBUTE
public static final String RETENTIONPOLICY_ATTRIBUTE
public static final String LIFECYCLEPOLICY_ATTRIBUTE
public static final String LIFECYCLEPOLICYID_ATTRIBUTE
public static final String LIFECYCLEPOLICYENTRYID_ATTRIBUTE
public static final String INITIALLIFECYCLEDATE_ATTRIBUTE
public static final String LIFECYCLEDATE_ATTRIBUTE
protected Document(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- the sessionid
- the idclassId
- the class iddata
- the Document dataIfsException
- if the operation failspublic static Long getClassId(LibrarySession session) throws IfsException
session
- the session contextIfsException
- if the operation failspublic PublicObjectCapabilities capabilities()
capabilities
in class PublicObject
public ContentObject getContentObject() throws IfsException
IfsException
- if operation fails.public ContentQuota getContentQuota() throws IfsException
IfsException
- if the operation failspublic RetentionPolicy getRetentionPolicy() throws IfsException
IfsException
- public LifecyclePolicy getLifecyclePolicy() throws IfsException
IfsException
- public LifecyclePolicyEntry getCurrentLifecyclePolicyEntry() throws IfsException
If no LifecyclePolicy is in effect, this method returns null. If the
the document is still an the initial lifecycle state (pending processing of
the first LifecyclePolicyEntry), this method also returns 0. If the caller
needs to disambiguate, it has to call getLifecyclePolicy
also.
IfsException
- public LifecyclePolicyEntry getNextLifecyclePolicyEntry() throws IfsException
If no LifecyclePolicy is in effect, this method returns null. If the
the document has already proceeded to the last state, this method also
returns 0. If the caller needs to disambiguate, it has to call
getLifecyclePolicy
also.
IfsException
- public Date getInitialLifecycleDate() throws IfsException
IfsException
- if the operation failspublic Date getLifecycleDate() throws IfsException
IfsException
- if the operation failspublic int getLifecycleState() throws IfsException
Returns the value of LifecyclePolicyEntry.LifecycleSequence for the
current LifecyclePolicyEntryId. Returns zero if no LifecyclePolicy
defined, or if the initial Lifecycle state is pending. The caller
needs to disambiguate by using getLifecyclePolicy
.
IfsException
- if the operation failspublic void setContentQuota(ContentQuota quota) throws IfsException
quota
- the ContentQuotaIfsException
- if the operation failspublic void setRetentionPolicy(RetentionPolicy rp) throws IfsException
rp
- the RetentionPolicyIfsException
- if the operation failspublic void setLifecyclePolicy(LifecyclePolicy lp) throws IfsException
lp
- the LifecyclePolicyIfsException
- if the operation failspublic void setLifecycleDate(Date ldate) throws IfsException
ldate
- the base dateIfsException
- if the operation failspublic void setFormat(Format format) throws IfsException
format
- the desired Format objectIfsException
- if operation fails.public Media getMedia() throws IfsException
IfsException
- if operation fails.public Format getFormat() throws IfsException
IfsException
- if operation fails.public String getMimeType() throws IfsException
IfsException
- on failurepublic boolean isBinaryFormat() throws IfsException
IfsException
- on failurepublic String getCharacterSet() throws IfsException
IfsException
- if the operation failspublic void setCharacterSet(String charset) throws IfsException
charset
- Iana name for the new character setIfsException
- if operation fails.public String getLanguage() throws IfsException
IfsException
- if the operation failspublic void setLanguage(String language) throws IfsException
language
- language using Oracle naming convention.IfsException
- if operation fails.public long getContentSize() throws IfsException
IfsException
- if operation fails.public long getContentRowId() throws IfsException
IfsException
- if the operation fails.public Date getContentModificationDate() 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(DocumentDefinition docdef, Long expirationPeriod) throws IfsException
After calling this method, docdef
must not be further
modified.
Refer to RandomAccessor
for further details.
docdef
- a document definitionexpirationPeriod
- the expiration period for the RandomAccessor,
in seconds, or null for the default expiration
periodIfsException
- if the operation failspublic RandomAccessContentInterface getRandomAccessContent(boolean canWrite) throws IfsException
canWrite
- whether its a request for a writeable RACIIfsException
- if operation fails.public RandomAccessContentInterface getRandomAccessContent(boolean canWrite, boolean shouldLock) throws IfsException
canWrite
- whether a request for a writeable RACIshouldLock
- ignoredIfsException
- if operation fails.public boolean isReadByUser() throws IfsException
IfsException
- if operation fails.public boolean isReadByOwner() throws IfsException
IfsException
- if operation fails.public void setReadByUser(boolean readState) throws IfsException
readState
- desired read indication for current user on this
Document's contentIfsException
- if operation fails.public String generateFilename() throws IfsException
IfsException
- if operation fails.public void generateThemes(boolean fullThemes) throws IfsException
Each Theme may either be a single Theme word/phrase or a hierarchical list of parent Themes. If fullThemes is set to TRUE, every Theme will also have the full hierarchy of its parent Themes generated.
fullThemes
- generates theme hierarchy information if TRUEIfsException
- if operation fails.public ContextTheme[] getThemes() throws IfsException
A document may have up to fifty Themes. Each Theme may either be a single Theme word/phrase or a string of parent Themes, separated by colons (':').
There is a Weight associated with every Theme. A Weight is a numerical value that measures the importance of the Theme relative to other Themes for the document.
IfsException
- if operation fails.public void generateSummary(String pointOfView, long sizeAsPercent, long sizeAsNumParagraphs, String summaryLevel) throws IfsException
If GENERIC is passed for pointOfView, then Context will generate a single generic summary of the document, based on all the document Themes. If a specific Theme is passed for pointOfView, then Context will generate a summary based on that Theme. Only the Themes generated for the document by a previous call to generateThemes() may be used as input for pointOfView. If a null value is passed for pointOfView, then Context will generate a generic summary of the document, in addition to up to 50 other summaries, each based on one of Themes of the document. Only the Themes generated for the document by a previous call to generateThemes() may be used as input for pointOfView.
Summaries are generated either by selecting specific sentences from the document, or by selecting specific paragraphs from the document. If summaryLevel is set to "S", then Context generates a sentence-level summary of the document. If summaryLevel is set to "P", then Context generates a paragraph-level summary of the document.
The size of the summary generated for a document may be specified through the parameters sizeAsPercent and sizeAsNumParagraphs.
The parameter sizeAsPercent specifies the maximum number of document paragraphs (or sentences) that will be included in the summary, as a percentage of the total number of paragraphs (or sentences) present in the document. The default is 10. To use the default value, pass 0 for sizeAsPercent.
The parameter sizeAsNumParagraphs specifies the maximum number of document paragraphs (or sentences) that will be included in the summary. The default is 16. To use the default value, pass 0 for sizeAsNumParagraphs.
When both sizeAsNumParagraphs and sizeAsPercent are specified, the parameter that yields a smaller summary size will be used.
pointOfView
- the specific Theme(s) based on which the summary
is generatedsizeAsPercent
- size of summary as a percentage of document sizesizeAsNumParagraphs
- size of summary specified as number of
paragraphs or sentencessummaryLevel
- specifies whether summary is generated by
selecting document paragraphs or sentencesIfsException
- if operation fails.public Reader getSummary(String pointOfView) throws IfsException
pointOfView
- get the summary that is based on this particular
point of viewIfsException
- if operation fails.public void filterContent(boolean plaintext) throws IfsException
plaintext
- when TRUE, indicates that a plaintext version of
the document must be generated, otherwise an HTML version will be
generatedIfsException
- if operation fails.public Reader getFilteredContent() throws IfsException
IfsException
- if operation fails.public void setContent(DocumentDefinition def) throws IfsException
LibraryObject.update
.def
- DocumentDefinition object describing desired updates.IfsException
- if operation fails.protected ContentObject verifyContentObject() throws IfsException
IfsException
- if the operation failsprotected static Vector constructDocumentVector(LibrarySession sess, Vector vector) throws IfsException
sess
- current LibrarySessionvector
- vector of Document objectsIfsException
- if the operation failsprotected static Document constructDocument(LibrarySession sess, S_LibraryObjectData data) throws IfsException
sess
- current LibrarySessiondata
- data componentIfsException
- if the operation failsprotected static Document[] vectorToDocumentArray(Vector vector)
vector
- Vector of Document objectsprotected static Document vectorDocumentElement(Vector vector, int index)
vector
- Vector of Document objectsindex
- index into Documentprotected void preCreate(LibraryObjectDefinition lodef) throws IfsException
PublicObject
Set an option that indicates that Categories are NOT to be created from within S_PublicObject.
preCreate
in class PublicObject
lodef
- object definition that will be used to create
the objectIfsException
- if the operation failsprotected void postCreate(LibraryObjectDefinition lodef) throws IfsException
PublicObject
This assumes that a transaction context has already been established.
postCreate
in class PublicObject
lodef
- object definition that was used to create the objectIfsException
- if the operation failsprotected void preUpdate(LibraryObjectDefinition lodef) throws IfsException
PublicObject
Set an option that indicates that Categories are NOT to be created from within S_PublicObject.
preUpdate
in class PublicObject
lodef
- object definition used to define how the target object
will be updatedIfsException
- if operation fails.protected void preFree(LibraryObjectDefinition lodef) throws IfsException
PublicObject
Override to free all existing categories, in such a way that the PO doesn't get updated for each category free.
preFree
in class PublicObject
lodef
- object definition used to hold
options related to the free operationIfsException
- if operation fails.protected boolean isValidEventType(AuditEvent event) throws IfsException
isValidEventType
in class LibraryObject
event
- the event being posted on this objectIfsException
- if the operation failsprotected void auditLifecyclePolicySet(LifecyclePolicy lp) throws IfsException
lp
- the LifecyclePolicy set on this documentIfsException
- if the operation failspublic void auditLifecycleStateUpdated(LifecyclePolicyEntry lpe) throws IfsException
lpe
- the LifecyclePolicyElement defining new stateIfsException
- if the operation failsprotected void auditLifecyclePolicyCleared(LifecyclePolicy lp) throws IfsException
lp
- the LifecyclePolicy cleared from this documentIfsException
- if the operation failsprotected void auditRetentionPolicySet(RetentionPolicy rp) throws IfsException
rp
- the RetentionPolicy set on this documentIfsException
- if the operation failsprotected void auditRetentionPolicyCleared(RetentionPolicy rp) throws IfsException
rp
- the RetentionPolicy cleared from this documentIfsException
- if the operation failsprotected void auditContentRead(int mode) throws IfsException
mode
- the post modeIfsException
- if the operation fails.protected void auditUpdated(LibraryObjectDefinition lodef) throws IfsException
auditUpdated
in class LibraryObject
lodef
- The update definitionIfsException
- if the operation fails.protected void auditPublicObjectLocked(int lockType) throws IfsException
auditPublicObjectLocked
in class PublicObject
lockType
- the lock typeIfsException
- if the operation failsprotected void auditPublicObjectUnlocked(int lockType) throws IfsException
auditPublicObjectUnlocked
in class PublicObject
lockType
- the lock typeIfsException
- if the operation failsprotected void reportDocumentCreated() throws IfsException
IfsException
- if the operation failsprotected void reportDocumentFreed() throws IfsException
IfsException
- if the operation failsCopyright © 2023. All rights reserved.