Interface Annotation
-
- All Superinterfaces:
- CmHoldable, EngineObject, IndependentlyPersistableObject, IndependentObject, Replicable, RepositoryObject, java.io.Serializable, Subscribable
public interface Annotation extends RepositoryObject, CmHoldable, Replicable, Subscribable, IndependentlyPersistableObject
Represents an annotation that can be applied to a document, folder, or custom object. AnAnnotation
object allows you to link additional information to a containable object. You can modify and delete annotations independently of their annotated object. However, you cannot create versions of an annotation separately from the object with which it is associated. Document annotations are uniquely associated with a single document version; they are not versioned or carried forward when their document version is updated and a new version created. By design, an annotation is deleted whenever its associated parent object is deleted. Although an annotation receives its default security from both the annotation's class and parent object, you can apply security to an annotation that is different from the security applied to its parent.To create a new
Annotation
object and associate it with a document, use a document object'screateAnnotation
method. To create a newAnnotation
object and associate it with a folder or custom object, first use aFactory.Annotation.createInstance()
method to create a newAnnotation
object, then set its AnnotatedObject property to reference the object to which you want it associated. An annotation's content data can be specified via its ContentElements collection.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
changeClass(java.lang.String className)
Changes the class of a Content Engine object.ActiveMarkingList
get_ActiveMarkings()
Returns the value of the ActiveMarkings property.java.lang.Integer
get_AnnotatedContentElement()
Returns the value of the AnnotatedContentElement property.IndependentObject
get_AnnotatedObject()
Returns the value of the AnnotatedObject property.EventSet
get_AuditedEvents()
Returns the value of the AuditedEvents property.java.lang.Integer
get_CmIndexingFailureCode()
Returns the value of the CmIndexingFailureCode property.java.lang.Boolean
get_CmIsMarkedForDeletion()
Returns the value of the CmIsMarkedForDeletion property.java.util.Date
get_CmRetentionDate()
Returns the value of the CmRetentionDate property.ContentElementList
get_ContentElements()
Returns the value of the ContentElements property.StringList
get_ContentElementsPresent()
Returns the value of the ContentElementsPresent property.java.lang.Double
get_ContentSize()
Returns the value of the ContentSize property.java.lang.String
get_Creator()
Returns the value of the Creator property.java.util.Date
get_DateContentLastAccessed()
Returns the value of the DateContentLastAccessed property.java.util.Date
get_DateCreated()
Returns the value of the DateCreated property.java.util.Date
get_DateLastModified()
Returns the value of the DateLastModified property.java.lang.String
get_DescriptiveText()
Returns the value of the DescriptiveText property.Id
get_Id()
Returns the value of the Id property.Id
get_IndexationId()
Returns the value of the IndexationId property.java.lang.String
get_LastModifier()
Returns the value of the LastModifier property.java.lang.String
get_MimeType()
Returns the value of the MimeType property.java.lang.String
get_Name()
Returns the value of the Name property.java.lang.String
get_Owner()
Returns the value of the Owner property.AccessPermissionList
get_Permissions()
Returns the value of the Permissions 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.void
moveContent(StorageArea storageArea)
Moves the content data of an object to a new storage area.void
set_AnnotatedContentElement(java.lang.Integer value)
Sets the value of the AnnotatedContentElement property.void
set_AnnotatedObject(IndependentObject value)
Sets the value of the AnnotatedObject property.void
set_CmRetentionDate(java.util.Date value)
Sets the value of the CmRetentionDate property.void
set_ContentElements(ContentElementList value)
Sets the value of the ContentElements property.void
set_Creator(java.lang.String value)
Sets the value of the Creator property.void
set_DateCreated(java.util.Date value)
Sets the value of the DateCreated property.void
set_DateLastModified(java.util.Date value)
Sets the value of the DateLastModified property.void
set_DescriptiveText(java.lang.String value)
Sets the value of the DescriptiveText property.void
set_LastModifier(java.lang.String value)
Sets the value of the LastModifier property.void
set_MimeType(java.lang.String value)
Sets the value of the MimeType property.void
set_Owner(java.lang.String value)
Sets the value of the Owner property.void
set_Permissions(AccessPermissionList value)
Sets the value of the Permissions 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.-
Methods inherited from interface com.filenet.api.core.RepositoryObject
getObjectStore
-
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_Creator
java.lang.String get_Creator()
Returns the value of the Creator property. For more information, see Creator Property.
-
set_Creator
void set_Creator(java.lang.String value)
Sets the value of the Creator property. For more information, see Creator Property.
-
get_DateCreated
java.util.Date get_DateCreated()
Returns the value of the DateCreated property. For more information, see DateCreated Property.
-
set_DateCreated
void set_DateCreated(java.util.Date value)
Sets the value of the DateCreated property. For more information, see DateCreated Property.
-
get_LastModifier
java.lang.String get_LastModifier()
Returns the value of the LastModifier property. For more information, see LastModifier Property.
-
set_LastModifier
void set_LastModifier(java.lang.String value)
Sets the value of the LastModifier property. For more information, see LastModifier Property.
-
get_DateLastModified
java.util.Date get_DateLastModified()
Returns the value of the DateLastModified property. For more information, see DateLastModified Property.
-
set_DateLastModified
void set_DateLastModified(java.util.Date value)
Sets the value of the DateLastModified property. For more information, see DateLastModified Property.
-
get_Id
Id get_Id()
Returns the value of the Id property. For more information, see Id Property.
-
get_Name
java.lang.String get_Name()
Returns the value of the Name property. For more information, see Name Property.
-
get_AuditedEvents
EventSet get_AuditedEvents()
Returns the value of the AuditedEvents property. For more information, see AuditedEvents Property.
-
get_Owner
java.lang.String get_Owner()
Returns the value of the Owner property. For more information, see Owner Property.
-
set_Owner
void set_Owner(java.lang.String value)
Sets the value of the Owner property. For more information, see Owner Property.
-
get_Permissions
AccessPermissionList get_Permissions()
Returns the value of the Permissions property. For more information, see Permissions Property.
-
set_Permissions
void set_Permissions(AccessPermissionList value)
Sets the value of the Permissions property. For more information, see Permissions Property.
-
get_ActiveMarkings
ActiveMarkingList get_ActiveMarkings()
Returns the value of the ActiveMarkings property. For more information, see ActiveMarkings Property.
-
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_AnnotatedObject
IndependentObject get_AnnotatedObject()
Returns the value of the AnnotatedObject property. For more information, see AnnotatedObject Property.
-
set_AnnotatedObject
void set_AnnotatedObject(IndependentObject value)
Sets the value of the AnnotatedObject property. For more information, see AnnotatedObject Property.
-
get_AnnotatedContentElement
java.lang.Integer get_AnnotatedContentElement()
Returns the value of the AnnotatedContentElement property. For more information, see AnnotatedContentElement Property.
-
set_AnnotatedContentElement
void set_AnnotatedContentElement(java.lang.Integer value)
Sets the value of the AnnotatedContentElement property. For more information, see AnnotatedContentElement Property.
-
get_DescriptiveText
java.lang.String get_DescriptiveText()
Returns the value of the DescriptiveText property. For more information, see DescriptiveText Property.
-
set_DescriptiveText
void set_DescriptiveText(java.lang.String value)
Sets the value of the DescriptiveText property. For more information, see DescriptiveText 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_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_CmIsMarkedForDeletion
java.lang.Boolean get_CmIsMarkedForDeletion()
Returns the value of the CmIsMarkedForDeletion property. For more information, see CmIsMarkedForDeletion Property.
-
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.
-
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 Platform 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. To retrieve content at arbitrary positions within the stream, cast the returnedInputStream
toExtendedInputStream
and use the methods onExtendedInputStream
. - 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
-
changeClass
void changeClass(java.lang.String className)
Changes the class of a Content Engine object. The new class must already exist and both it and the original class must be subclasses of the same base class. ThechangeClass
method does not modify the security for an object, even if the object's current security is derived from the default security for its source class. For the object's user-defined properties, the following rules apply:- Any user-defined properties that exist in the new class but not in the original class are set to the
default value defined by the new class (or to
null
if there is no default defined). - Any user-defined properties that exist in both the original and the new class that are writable and
have the same value (including
null
) as the default value defined in the original class will be set to the default value defined by the new class. However, any user-defined property that has had its value modified from the default value will retain that modified value in the new class. - Any user-defined properties whose definitions exist in the original class but not in the new class will no longer exist on the object when its class is changed.
- Property constraints for the new class (for example, required values, choice lists, ranges) are not enforced.
When the class of a document object is changed, the default document lifecycle policy of the new class will only be applied to the document object's DocumentLifecyclePolicy property if both of the following scenarios occur:
- The document has no current lifecycle policy.
- The document is either a reservation object, or is the current version object and is not reserved.
Changing the document class of a document object has no effect on the storage location of the document�s content. For more information, see the Document Storage topic in the "Document Concepts" section of the Content Engine Java and .NET API Developer�s Guide.
- Parameters:
className
- AString
specifying the symbolic name,ClassNames
constant, ID, orGUIDConstants
constant of the class to which this object is to be changed.- Throws:
E_NULL_OR_INVALID_PARAM_VALUE
- ifclassName
isnull
or has a length of zero.
- Any user-defined properties that exist in the new class but not in the original class are set to the
default value defined by the new class (or to
-
-