Interface Document
-
- All Superinterfaces:
- CmHoldable, Containable, EngineObject, IndependentlyPersistableObject, IndependentObject, Replicable, RepositoryObject, java.io.Serializable, Subscribable, Versionable
- All Known Subinterfaces:
- CodeModule, PublishTemplate, StoredSearch, WorkflowDefinition, XMLPropertyMappingScript
public interface Document extends RepositoryObject, Versionable, Containable, CmHoldable, Replicable, Subscribable, IndependentlyPersistableObject
Represents a single version of a document stored in an object store. In addition to being versionable, aDocument
object can be subclassed and can carry content, which is stored in one or more content elements. Each content element represents content data, which can either be local to an object store (represented by aContentTransfer
object) or external to an object store and therefore outside the control of the Content Engine server (represented by aContentReference
object). In addition, aDocument
object can be associated with a document lifecycle policy. A document lifecycle policy defines a set of valid lifecycle states for a document, controls the transition of those states, and specifies the actions to be taken when a document's lifecycle state changes.Metadata
-
-
Method Summary
Methods Modifier and Type Method and Description java.io.InputStream
accessContentStream(int element)
Obtains read access, via an input stream, to the content data of aContentTransfer
content element associated with this document or annotation.void
applySecurityTemplate(Id applyStateId)
Applies a security policy template to the given object.void
changeState(LifecycleChangeFlags flags)
Changes the current, user-defined lifecycle state of aDocument
object, or the current state of aCmTask
object (see TaskState for a list of the states).void
checkin(AutoClassify autoClassify, CheckinType checkinType)
Checks in this document reservation object by saving it as a new document version.DocumentSet
get_ChildDocuments()
Returns the value of the ChildDocuments property.ComponentRelationshipSet
get_ChildRelationships()
Returns the value of the ChildRelationships property.DocClassificationStatus
get_ClassificationStatus()
Returns the value of the ClassificationStatus property.java.lang.Integer
get_CmIndexingFailureCode()
Returns the value of the CmIndexingFailureCode property.java.util.Date
get_CmRetentionDate()
Returns the value of the CmRetentionDate property.CmThumbnailSet
get_CmThumbnails()
Returns the value of the CmThumbnails property.CompoundDocumentState
get_CompoundDocumentState()
Returns the value of the CompoundDocumentState property.ContentElementList
get_ContentElements()
Returns the value of the ContentElements property.StringList
get_ContentElementsPresent()
Returns the value of the ContentElementsPresent property.java.util.Date
get_ContentRetentionDate()
Returns the value of the ContentRetentionDate property.java.lang.Double
get_ContentSize()
Returns the value of the ContentSize property.java.lang.String
get_CurrentState()
Returns the value of the CurrentState property.Versionable
get_CurrentVersion()
Returns the value of the CurrentVersion property.java.util.Date
get_DateContentLastAccessed()
Returns the value of the DateContentLastAccessed property.DocumentSet
get_DependentDocuments()
Returns the value of the DependentDocuments property.DocumentSet
get_DestinationDocuments()
Returns the value of the DestinationDocuments property.DocumentLifecyclePolicy
get_DocumentLifecyclePolicy()
Returns the value of the DocumentLifecyclePolicy property.Id
get_IndexationId()
Returns the value of the IndexationId property.java.lang.Boolean
get_IsInExceptionState()
Returns the value of the IsInExceptionState property.java.lang.String
get_MimeType()
Returns the value of the MimeType property.Document
get_OwnerDocument()
Returns the value of the OwnerDocument property.DocumentSet
get_ParentDocuments()
Returns the value of the ParentDocuments property.ComponentRelationshipSet
get_ParentRelationships()
Returns the value of the ParentRelationships property.byte[]
get_PublicationInfo()
Returns the value of the PublicationInfo property.Folder
get_PublishingSubsidiaryFolder()
Returns the value of the PublishingSubsidiaryFolder property.Versionable
get_ReleasedVersion()
Returns the value of the ReleasedVersion property.ReferentialContainmentRelationship
get_SecurityParent()
Deprecated.Document
get_SourceDocument()
Returns the value of the SourceDocument property.StorageArea
get_StorageArea()
Returns the value of the StorageArea property.java.lang.String
get_StorageLocation()
Deprecated.As of release 4.0.0.StoragePolicy
get_StoragePolicy()
Returns the value of the StoragePolicy property.InstanceWorkflowSubscriptionSet
get_WorkflowSubscriptions()
Returns the value of the WorkflowSubscriptions property.PublicationStatus
getPublicationStatus()
Returns aPublicationStatus
enumeration value, which identifies the document's publication status (dependent, independent, or not a publication).java.lang.Boolean
isLocked()
Queries this object's lock state.void
lock(int timeout, java.lang.String owner)
Sets a new lock or updates an existing lock on the object.void
moveContent(StorageArea storageArea)
Moves the content data of an object to a new storage area.PublishRequest
publish(PublishTemplate publishTemplate, java.lang.String publishOptions)
Publishes thisDocument
object according to the specifications included in the specified publish template as modified by the contents of thepublishOptions
parameter.PublishRequest
republish(Document publication, java.lang.String publishOptions)
Republishes the specified published document.void
set_CmRetentionDate(java.util.Date value)
Sets the value of the CmRetentionDate property.void
set_CompoundDocumentState(CompoundDocumentState value)
Sets the value of the CompoundDocumentState property.void
set_ContentElements(ContentElementList value)
Sets the value of the ContentElements property.void
set_DocumentLifecyclePolicy(DocumentLifecyclePolicy value)
Sets the value of the DocumentLifecyclePolicy property.void
set_MimeType(java.lang.String value)
Sets the value of the MimeType property.void
set_OwnerDocument(Document value)
Sets the value of the OwnerDocument property.void
set_PublicationInfo(byte[] value)
Sets the value of the PublicationInfo property.void
set_PublishingSubsidiaryFolder(Folder value)
Sets the value of the PublishingSubsidiaryFolder property.void
set_SecurityParent(ReferentialContainmentRelationship value)
Deprecated.void
set_SourceDocument(Document value)
Sets the value of the SourceDocument property.void
set_StorageArea(StorageArea value)
Sets the value of the StorageArea property.void
set_StoragePolicy(StoragePolicy value)
Sets the value of the StoragePolicy property.void
takeFederatedOwnership()
For a document that has been federated by Content Federation Services (CFS), grants exclusive control of this document to the FileNet P8 Content Engine by making the corresponding external document read-only.void
unlock()
Explicitly removes the lock from this object.void
updateLock(long timeout)
Adjusts the timeout period of the lock on this object.-
Methods inherited from interface com.filenet.api.core.RepositoryObject
getObjectStore
-
Methods inherited from interface com.filenet.api.core.Versionable
cancelCheckout, changeClass, checkout, createAnnotation, demoteVersion, freeze, get_CmIsMarkedForDeletion, get_DateCheckedIn, get_FoldersFiledIn, get_IsCurrentVersion, get_IsFrozenVersion, get_IsReserved, get_IsVersioningEnabled, get_MajorVersionNumber, get_MinorVersionNumber, get_Reservation, get_ReservationType, get_SecurityFolder, get_Versions, get_VersionSeries, get_VersionStatus, promoteVersion, set_DateCheckedIn, set_SecurityFolder
-
Methods inherited from interface com.filenet.api.core.Containable
get_ActiveMarkings, get_Annotations, get_AuditedEvents, get_Containers, get_CoordinatedTasks, get_Creator, get_DateCreated, get_DateLastModified, get_Id, get_LastModifier, get_LockOwner, get_LockTimeout, get_LockToken, get_Name, get_Owner, get_Permissions, get_SecurityPolicy, set_Creator, set_DateCreated, set_DateLastModified, set_LastModifier, set_Owner, set_Permissions, set_SecurityPolicy
-
Methods inherited from interface com.filenet.api.admin.CmHoldable
get_CmHoldRelationships
-
Methods inherited from interface com.filenet.api.replication.Replicable
get_ExternalReplicaIdentities, get_ReplicationGroup, set_ExternalReplicaIdentities, set_ReplicationGroup
-
Methods inherited from interface com.filenet.api.core.Subscribable
raiseEvent
-
Methods inherited from interface com.filenet.api.core.IndependentlyPersistableObject
addPendingAction, clearPendingActions, delete, getAccessAllowed, getPendingActions, getUpdateSequenceNumber, isCurrent, save, save, setUpdateSequenceNumber
-
Methods inherited from interface com.filenet.api.core.IndependentObject
fetchProperties, fetchProperties, fetchProperty, fetchProperty, getObjectReference, refresh, refresh, refresh
-
Methods inherited from interface com.filenet.api.core.EngineObject
get_ClassDescription, getClassName, getConnection, getProperties, getSuperClasses
-
-
-
-
Method Detail
-
get_StoragePolicy
StoragePolicy get_StoragePolicy()
Returns the value of the StoragePolicy property. For more information, see StoragePolicy Property.
-
set_StoragePolicy
void set_StoragePolicy(StoragePolicy value)
Sets the value of the StoragePolicy property. For more information, see StoragePolicy Property.
-
get_StorageLocation
java.lang.String get_StorageLocation()
Deprecated. As of release 4.0.0.Returns the value of the StorageLocation property. For more information, see StorageLocation Property.
-
get_ContentElementsPresent
StringList get_ContentElementsPresent()
Returns the value of the ContentElementsPresent property. For more information, see ContentElementsPresent Property.
-
get_ContentElements
ContentElementList get_ContentElements()
Returns the value of the ContentElements property. For more information, see ContentElements Property.
-
set_ContentElements
void set_ContentElements(ContentElementList value)
Sets the value of the ContentElements property. For more information, see ContentElements Property.
-
get_ContentSize
java.lang.Double get_ContentSize()
Returns the value of the ContentSize property. For more information, see ContentSize Property.
-
get_MimeType
java.lang.String get_MimeType()
Returns the value of the MimeType property. For more information, see MimeType Property.
-
set_MimeType
void set_MimeType(java.lang.String value)
Sets the value of the MimeType property. For more information, see MimeType Property.
-
get_DateContentLastAccessed
java.util.Date get_DateContentLastAccessed()
Returns the value of the DateContentLastAccessed property. For more information, see DateContentLastAccessed Property.
-
get_ContentRetentionDate
java.util.Date get_ContentRetentionDate()
Returns the value of the ContentRetentionDate property. For more information, see ContentRetentionDate Property.
-
get_DocumentLifecyclePolicy
DocumentLifecyclePolicy get_DocumentLifecyclePolicy()
Returns the value of the DocumentLifecyclePolicy property. For more information, see DocumentLifecyclePolicy Property.
-
set_DocumentLifecyclePolicy
void set_DocumentLifecyclePolicy(DocumentLifecyclePolicy value)
Sets the value of the DocumentLifecyclePolicy property. For more information, see DocumentLifecyclePolicy Property.
-
get_CurrentState
java.lang.String get_CurrentState()
Returns the value of the CurrentState property. For more information, see CurrentState Property.
-
get_IsInExceptionState
java.lang.Boolean get_IsInExceptionState()
Returns the value of the IsInExceptionState property. For more information, see IsInExceptionState Property.
-
get_WorkflowSubscriptions
InstanceWorkflowSubscriptionSet get_WorkflowSubscriptions()
Returns the value of the WorkflowSubscriptions property. For more information, see WorkflowSubscriptions Property.
-
get_ClassificationStatus
DocClassificationStatus get_ClassificationStatus()
Returns the value of the ClassificationStatus property. For more information, see ClassificationStatus Property.
-
get_StorageArea
StorageArea get_StorageArea()
Returns the value of the StorageArea property. For more information, see StorageArea Property.
-
set_StorageArea
void set_StorageArea(StorageArea value)
Sets the value of the StorageArea property. For more information, see StorageArea Property.
-
get_IndexationId
Id get_IndexationId()
Returns the value of the IndexationId property. For more information, see IndexationId Property.
-
get_CmIndexingFailureCode
java.lang.Integer get_CmIndexingFailureCode()
Returns the value of the CmIndexingFailureCode property. For more information, see CmIndexingFailureCode Property.
-
get_CompoundDocumentState
CompoundDocumentState get_CompoundDocumentState()
Returns the value of the CompoundDocumentState property. For more information, see CompoundDocumentState Property.
-
set_CompoundDocumentState
void set_CompoundDocumentState(CompoundDocumentState value)
Sets the value of the CompoundDocumentState property. For more information, see CompoundDocumentState Property.
-
get_ChildDocuments
DocumentSet get_ChildDocuments()
Returns the value of the ChildDocuments property. For more information, see ChildDocuments Property.
-
get_ChildRelationships
ComponentRelationshipSet get_ChildRelationships()
Returns the value of the ChildRelationships property. For more information, see ChildRelationships Property.
-
get_ParentDocuments
DocumentSet get_ParentDocuments()
Returns the value of the ParentDocuments property. For more information, see ParentDocuments Property.
-
get_ParentRelationships
ComponentRelationshipSet get_ParentRelationships()
Returns the value of the ParentRelationships property. For more information, see ParentRelationships Property.
-
get_CmRetentionDate
java.util.Date get_CmRetentionDate()
Returns the value of the CmRetentionDate property. For more information, see CmRetentionDate Property.
-
set_CmRetentionDate
void set_CmRetentionDate(java.util.Date value)
Sets the value of the CmRetentionDate property. For more information, see CmRetentionDate Property.
-
get_SourceDocument
Document get_SourceDocument()
Returns the value of the SourceDocument property. For more information, see SourceDocument Property.
-
set_SourceDocument
void set_SourceDocument(Document value)
Sets the value of the SourceDocument property. For more information, see SourceDocument Property.
-
get_DestinationDocuments
DocumentSet get_DestinationDocuments()
Returns the value of the DestinationDocuments property. For more information, see DestinationDocuments Property.
-
get_OwnerDocument
Document get_OwnerDocument()
Returns the value of the OwnerDocument property. For more information, see OwnerDocument Property.
-
set_OwnerDocument
void set_OwnerDocument(Document value)
Sets the value of the OwnerDocument property. For more information, see OwnerDocument Property.
-
get_DependentDocuments
DocumentSet get_DependentDocuments()
Returns the value of the DependentDocuments property. For more information, see DependentDocuments Property.
-
get_PublicationInfo
byte[] get_PublicationInfo()
Returns the value of the PublicationInfo property. For more information, see PublicationInfo Property.
-
set_PublicationInfo
void set_PublicationInfo(byte[] value)
Sets the value of the PublicationInfo property. For more information, see PublicationInfo Property.
-
get_PublishingSubsidiaryFolder
Folder get_PublishingSubsidiaryFolder()
Returns the value of the PublishingSubsidiaryFolder property. For more information, see PublishingSubsidiaryFolder Property.
-
set_PublishingSubsidiaryFolder
void set_PublishingSubsidiaryFolder(Folder value)
Sets the value of the PublishingSubsidiaryFolder property. For more information, see PublishingSubsidiaryFolder Property.
-
get_CmThumbnails
CmThumbnailSet get_CmThumbnails()
Returns the value of the CmThumbnails property. For more information, see CmThumbnails Property.
-
isLocked
java.lang.Boolean isLocked()
Queries this object's lock state. This helper method examines the object's lock-related properties and determines the object's lock state. An alternative approach is to call thelock
method and handle any exception thrown if the method fails.Note that this method returns an approximation of the locked state at the time of the call. Once this method executes and returns the value, the object's lock state could be immediately changed by another application's call to the
lock
method or the lock could expire.Before calling this method, make sure that the object's LockToken, LockTimeout, and DateLastModified properties have relatively fresh values. If any of those properties is missing, they are silently fetched from the server and added to the object's property cache.
The
isLocked
method returnsfalse
if the LockTimeout property is not set or if the lock has expired. The lock is determined to be expired if the DateLastModified property value plus the number of seconds specified by the LockTimeout property is less than the current system time. (All millisecond components are dropped from the calculation.) If the DateLastModified property is not set, this method returnsfalse
because the check against the lock timeout value or the lock token will yieldnull
, meaning that the object is not locked. As soon as some action locks the object, the DateLastModified property will be updated and can then used for the expiration calculation.Note To successfully run
isLocked
and other cooperative locking methods, system clocks on the IBM FileNet P8 platform engine machines must be synchronized. The calculation performed by theisLocked()
method is done on the client system. If the client and server machine clocks are not synchronized, the result of this calculation might be incorrect.- Returns:
true
if this object is locked; otherwise, returnsfalse
.
-
lock
void lock(int timeout, java.lang.String owner)
Sets a new lock or updates an existing lock on the object. Calling this method has no effect in preventing others from updating a locked object (with the exception that others cannot re-lock the locked object). This lock mechanism is used for custom purposes only and has no bearing on the actual ability to update an object.To successfully execute this method, the current user must have permission to modify this object's properties. For example, locking a
Document
object requires the following combination of access rights:AccessRight.CHANGE_STATE | AccessRight.CREATE_INSTANCE | AccessRight.LINK | AccessRight.UNLINK | AccessRight.VIEW_CONTENT | AccessRight.WRITE | AccessRight.READ_ACL | AccessLevel.READ
.If the call succeeds:
- The object's LockOwner property is populated with the user name
specified in the
owner
parameter. (New lock only.) - The value specified by
timeout
is applied to the object's LockTimeout property. - A LockToken (GUID) is internally created by the server. (New lock only.)
To update an existing lock, the objects needs to be in the locked state and the current user needs to match the user of the lock. Note that the user is the logged in user, not the
owner
string. If the call succeeds, then only theLockTimeout
property is updated with the timeout value. Theowner
parameter in this case is ignored. (See theupdateLock()
method instead.)- Parameters:
timeout
- An integer that represents the number of seconds after which the lock will expire. The range of values is 0 to 2147483647 (Integer.MAX_VALUE
) seconds.owner
- AString
representing the user name to be assigned as the owner of the lock on this object. Defaults to the short principal name of the requesting user. The value is strictly advisory and is not validated against user or group names known to the Content Engine. The value can be used by client applications to identify the user who has locked the object.- Throws:
E_OBJECT_LOCKED
- If the object is already locked and the current user does not match the user of the lock.E_OBJECT_NOT_LOCKED
- If the user tries to update an existing lock but the object is not locked (absence of a LockToken).
- The object's LockOwner property is populated with the user name
specified in the
-
getPublicationStatus
PublicationStatus getPublicationStatus()
Returns aPublicationStatus
enumeration value, which identifies the document's publication status (dependent, independent, or not a publication).- Returns:
- A
PublicationStatus
object.
-
applySecurityTemplate
void applySecurityTemplate(Id applyStateId)
Applies a security policy template to the given object. The specified value for theapplyStateId
parameter must match the value of the ApplyStateID property of one of the templates in the security policy for the object. For a versioning security template, the apply state ID can be one of the following:
For an application security template, the apply state ID is defined by your application.- VersionStatusId.IN_PROCESS
- VersionStatusId.RELEASED
- VersionStatusId.RESERVATION
- VersionStatusId.SUPERSEDED
- Parameters:
applyStateId
- AnId
object representing the unique identifier of the security template to apply.
-
republish
PublishRequest republish(Document publication, java.lang.String publishOptions)
Republishes the specified published document. The specified published document must have been published with a publish template that still exists and had thisDocument
object as its source document. This method returns thePublishRequest
object that is queued for this request. All publish requests are asynchronous, including copy operations, which do not transform the document. A publish request is always enqueued, and a copy of thePublishRequest
object is always returned to the caller.The
publishOptions
parameter is a string containing XML that specifies the publish options for the republished document. See Publish Options XML for more information.- Parameters:
publication
- TheDocument
object to be republished.publishOptions
- A string containing XML that specifies the publish options for the republished document. Can benull
, in which case the values for the publication name, output folder, and event action are as specified in the associated publish template.- Returns:
- The
PublishRequest
object that is queued for this request.
-
accessContentStream
java.io.InputStream accessContentStream(int element)
Obtains read access, via an input stream, to the content data of aContentTransfer
content element associated with this document or annotation. The content data is fetched from the server. The Content Engine will not automatically close the stream after access has finished; unless you want the stream to remain open, your application should close the stream after it has finished reading the content data.- Parameters:
element
- Anint
specifying the index of the content element to which the content data belongs.- Returns:
- An
InputStream
object for reading content data. - Throws:
API_INDEX_OUT_OF_BOUNDS
- if theelement
parameter specifies an invalid index.API_NO_CONTENT_ELEMENTS
- if no content elements exist on this document or annotation.API_NOT_A_CONTENT_TRANSFER
- if the content element is not aContentTransfer
object.- See Also:
- ContentAccessRecordingLevel property, DateContentLastAccessed property
-
changeState
void changeState(LifecycleChangeFlags flags)
Changes the current, user-defined lifecycle state of aDocument
object, or the current state of aCmTask
object (see TaskState for a list of the states). ThechangeState
method must be followed by asave()
or an equivalent batch operation to commit the state change. Every state change generates aChangeStateEvent
, to which you can subscribe or audit.For documents, you cannot change the state of a document that is a reservation object. Valid lifecycle states are defined by the collection of
DocumentState
objects belonging to the document's associatedDocumentLifecyclePolicy
object.For documents, the
LifecycleChangeFlags
constant can be used as follows:PROMOTE
: Promotes the document's current lifecycle state to the next state in its document lifecycle policy and sets the document's CurrentState property to the name of the next state. Throws an error if the document is in the exception state or in the last state of its lifecycle.DEMOTE
: Demotes the document's current lifecycle state to the previous state in its document lifecycle policy and sets the document's CurrentState property to the name of the previous state, unless the CanBeDemoted property of the document�s current state (DocumentState
object) is set tofalse
. Throws an error if the document is in the exception state, in the first state of its lifecycle, or does not allow demotion.SET_EXCEPTION
: Places the document into the exception state and sets its IsInExceptionState property totrue
. Throws an error if the document's IsInExceptionState property is already set totrue
.CLEAR_EXCEPTION
: Removes the document from the exception state and sets its IsInExceptionState property tofalse
. Throws an error if the document's IsInExceptionState property is already set tofalse
.RESET
: Resets the lifecycle state to the initial state in its document lifecycle policy and sets the document's CurrentState property to the name of the initial state. Throws an error if the document is in the exception state.
For tasks, the
LifecycleChangeFlags
constant can be used as follows:PROMOTE
: Promotes the task's current state to the next state.DEMOTE
: Demotes the task's current state to the previous state.SET_EXCEPTION
: Places the task into the exception state.CLEAR_EXCEPTION
: Removes the task from the exception state.RESET
: Not supported for tasks.
- Parameters:
flags
- ALifecycleChangeFlags
constant that specifies the type of state transition to be applied to the document or task.- Throws:
E_BAD_PARAMETER
- if you attempt to promote, demote, reset, or place into the exception state a document or task that is in the exception state, or attempt to clear the exception of a document or task that is not in the exception state.E_NOT_SUPPORTED
- if you attempt to promote or demote a document or task from a state that does not allow promotion or demotion.
-
takeFederatedOwnership
void takeFederatedOwnership()
For a document that has been federated by Content Federation Services (CFS), grants exclusive control of this document to the FileNet P8 Content Engine by making the corresponding external document read-only. (Since the external document ceases to change, no changes exist for CFS to propagate from the external repository to the Content Engine, and the Content Engine becomes the sole means for modifying or deleting the document.) For non-federated documents or for documents for which this method has already been called, this method has no effect.- Throws:
E_NOT_SUPPORTED
- if this document is a reservation object (VersionStatus property is set toRESERVATION
).
-
publish
PublishRequest publish(PublishTemplate publishTemplate, java.lang.String publishOptions)
Publishes thisDocument
object according to the specifications included in the specified publish template as modified by the contents of thepublishOptions
parameter. This method returns thePublishRequest
object that is queued for this request. All publish requests are asynchronous, including copy operations, which do not transform the document. A publish request is always enqueued, and a copy of thePublishRequest
object is always returned to the caller.The publish template you specify, as well as any objects specified in the publish template itself, must reside on the same object store as this
Document
object. Note that publishing to a document class containing a required binary- or object-valued property is not supported as there is no way to set these property values during publishing.The
publishOptions
parameter is a string containing XML that specifies the publish options for the published document. See Publish Options XML for more information.After a successful call to
publish
, call thesave
method of the returnedPublishRequest
object to submit the request to the publish queue.- Parameters:
publishTemplate
- ThePublishTemplate
object to use for this publish operation.publishOptions
- A string containing XML that specifies the publish options for the published document. Can benull
, in which case the values for the publication name, output folder, and event action are as specified in the associated publish template.- Returns:
- The
PublishRequest
object that is queued for this request.
-
moveContent
void moveContent(StorageArea storageArea)
Moves the content data of an object to a new storage area. ForVersionSeries
, this method moves the content for all associated document versions.After a successful call to the
moveContent
method, the content data is deleted from the original location unless the content data is IBM FileNet Content Federation Services for Image Services federated content. To enable deletion of IBM FileNet Content Federation Services for Image Services federated content from its original location, set the com.filenet.replication.EnableLegacyMoveContentBehaviour parameter totrue
for your application server. For information about how to assign JVM parameter values for your application server, see Setting JVM parameters.You can force content to be encrypted, re-encrypted, or decrypted based on the current encryption configuration for the destination storage area. Likewise, you can force content to be compressed or decompressed based on the content compression configuration for the destination storage area. For more information, see Content encryption and Content compression.
.- Parameters:
storageArea
- AStorageArea
object specifying the new storage area for this object's content data.
-
checkin
void checkin(AutoClassify autoClassify, CheckinType checkinType)
Checks in this document reservation object by saving it as a new document version. You must have the appropriate access rights to check in a document (MAJOR_VERSION
to check it in a major version orMINOR_VERSION
to check it in a minor version). A major version is either the current released document version (if it is the latest major version) or a former released version that has been superseded. A minor version is either the in-process document version (if it is the latest minor version) or a former in-process version that has been superseded. In addition, if the reservation object is an exclusive reservation (its ReservationType property is set toEXCLUSIVE
), you must be the user who checked out the document, or have theWRITE_OWNER
access right. An error will occur if this method is called by a document that is not a reservation object.Before you can check in a document that has content, you must set the content for the document by adding to its ContentElements collection one or more
ContentTransfer
objects if the content is stored in a Content Engine object store, or one or moreContentReference
objects if the content is stored externally. If you do not want the Content Engine to assign a MIME type to the checked-in document, you must explicitly set the value of the document's MimeType property before calling thecheckin
method. After a successful check-in, the reservation object becomes the new current version of the document (its IsCurrentVersion property is set totrue
). During a minor version check-in, the new minor document version is marked as in-process (its VersionStatus property is set toIN_PROCESS
) and the previous in-process minor document version (if it exists) is marked as superseded (its VersionStatus property is set toSUPERSEDED
). During a major version check-in, the new major document version is marked as released (its VersionStatus property is set toRELEASED
) and the previous released major document version and in-process minor document version (if they exist) are marked as superseded.The
checkinType
parameter specifies whether to check in a document as a minor or a major version; set it toMINOR_VERSION
to check in a minor version, orMAJOR_VERSION
to check in a major version. TheautoClassify
parameter specifies whether the document should have automatic document classification enabled. (This feature is not supported for publish templates.) If set toAUTO_CLASSIFY
, and if a classifier exists for the document's content type, the document will automatically be assigned the proper document class and its properties will be populated based on the document content (and, in the case of XML document classification, mapping rules from user-defined scripts). The Content Engine's classification service uses a document's MIME type to determine if there is a classifier capable of parsing the document. If you set theautoClassify
parameter toAUTO_CLASSIFY
, the check-in operation changes the value of the document's ClassificationStatus property toCLASSIFICATION_PENDING
; if you set it toDO_NOT_AUTO_CLASSIFY
, the property is set toNOT_CLASSIFIED
.- Parameters:
autoClassify
- AnAutoClassify
constant specifying whether to auto-classify a document during check-in.checkinType
- ACheckinType
constant specifying whether to check in a document as a new minor version or as a new major version.- Throws:
E_NOT_SUPPORTED
- if this method is called by a document that is not a reservation object.
-
updateLock
void updateLock(long timeout)
Adjusts the timeout period of the lock on this object.This method updates the object's DateLastModified property to the current time and its LockTimeout property to the timeout value. The net effect of this may extend or shorten the original lock's expiration time. Only the user who locked the object can successfully call this method; for any other user, an exception is thrown. There is no limit to the number of times you can call this method.
- Parameters:
timeout
- The changed timeout value, in seconds, for this object's lock. The range of values is 0 to 2147483647 (Integer.MAX_VALUE
) seconds.
-
unlock
void unlock()
Explicitly removes the lock from this object. Only the user who locked the object may remove the lock. If the current user is not the user of the lock, the current user can still remove the lock provided tht user hasAccessRight.WRITE_ACL
permission on the object. An exception is thrown if the above conditions are not met. Upon successful execution of this method, the values for the object's LockOwner, LockToken, and LockTimeout properties are removed (set tonull
). If you do not callunlock
to explicitly remove the lock, the lock is implicitly removed when the lock's timeout value expires.- Throws:
E_OBJECT_NOT_LOCKED
- If the object is not locked.
-
set_SecurityParent
void set_SecurityParent(ReferentialContainmentRelationship value)
Deprecated.Sets the value of the SecurityParent property. For more information, see SecurityParent Property.
-
get_SecurityParent
ReferentialContainmentRelationship get_SecurityParent()
Deprecated.Returns the value of the SecurityParent property. If this object does not have a security parent (that is, itsSecurityParent
property has no value), this method returnsnull
. For more information, see SecurityParent Property.
-
get_ReleasedVersion
Versionable get_ReleasedVersion()
Returns the value of the ReleasedVersion property. For more information, see ReleasedVersion Property.
-
get_CurrentVersion
Versionable get_CurrentVersion()
Returns the value of the CurrentVersion property. For more information, see CurrentVersion Property.- Specified by:
get_CurrentVersion
in interfaceVersionable
-
-