Package com.saperion.intf
Interface SaDocumentInfo
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
SaDocumentInfoImpl
Document info interface.
Represents the information of a document from the database. No medium information are read.
Holds the information about a document which was returned from the backend system by using one of the following Classic Connector get or search functions:
The document information contains e.g. the following data:
Represents the information of a document from the database. No medium information are read.
Holds the information about a document which was returned from the backend system by using one of the following Classic Connector get or search functions:
SaClassicConnector.getDocumentFolders(String, String, String)
SaClassicConnector.getFolderChildren(String, String, int, SaQueryInfo, int)
SaClassicConnector.getFolderFromPath(String, String, String)
SaClassicConnector.getFolderInfo(String, String, boolean)
SaClassicConnector.getFolderInfo(String, String)
SaClassicConnector.getFolderParent(String, String)
SaClassicConnector.searchFolderDocuments(String, String, SaQueryInfo)
SaClassicConnector.searchHQL(SaQueryInfo)
The document information contains e.g. the following data:
SaPropertyValue[] values;
SaLockInfo lockInfo;
SaStatusInfo statusInfo;
List checkoutInfo;
- Author:
- rbo
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canEdit()
boolean
canIndex()
boolean
canPrint()
boolean
canSave()
boolean
Returns the lock-token if the document is locked.int
Returns the lock-type if the document is locked.Returns the user that has locked this document if the document is locked.Reads the value with the given name.boolean
Returns true, if the document has an active workflow.boolean
boolean
boolean
boolean
Check, if a value exists for the given name.boolean
Returns true if the document has started or finished workflows.boolean
boolean
boolean
boolean
isLink()
boolean
isLocked()
Check, if the document is locked.boolean
Returns true, if the document represented by this SaDocumentInfo is locked by the current user.boolean
boolean
boolean
boolean
isSigned()
void
setCheckoutInfo
(List<?> rows)
-
Method Details
-
getValues
SaPropertyValue[] getValues()- Returns:
- Array of property values
-
getValue
Reads the value with the given name.- Parameters:
name
- Property name- Returns:
- Property value or null, if not found
-
hasValue
Check, if a value exists for the given name.- Parameters:
name
- Property name- Returns:
- True, if exists
-
isCheckedout
boolean isCheckedout()- Returns:
- Document is checked out.
-
getCheckoutInfos
List<SaCheckoutInfo> getCheckoutInfos()- Returns:
- Checkout informations
-
setCheckoutInfo
- Parameters:
rows
- Checkout rows
-
isLocked
boolean isLocked()Check, if the document is locked.
Note that locking information will only be available when the document represented by this SaDocumentInfo is contained in a DDC that is located on the default data-source. Use the getLockInfo method of SaClassicConnector to retrieve locking information otherwise.- Returns:
- true, if the document is locked
-
getLockToken
String getLockToken()Returns the lock-token if the document is locked.
Note that locking information will only be available when the document represented by this SaDocumentInfo is contained in a DDC that is located on the default data-source. Use the getLockInfo method of SaClassicConnector to retrieve locking information otherwise.- Returns:
- Lock token
- See Also:
-
SaJNILockInfo.getLockToken()
-
getLockType
int getLockType()Returns the lock-type if the document is locked.
Note that locking information will only be available when the document represented by this SaDocumentInfo is contained in a DDC that is located on the default data-source. Use the getLockInfo method of SaClassicConnector to retrieve locking information otherwise.- Returns:
- Lock type
- See Also:
-
SaJNILockInfo.getLockType()
-
getLockUser
String getLockUser()Returns the user that has locked this document if the document is locked.
Note that locking information will only be available when the document represented by this SaDocumentInfo is contained in a DDC that is located on the default data-source. Use the getLockInfo method of SaClassicConnector to retrieve locking information otherwise.- Returns:
- Lock user
- See Also:
-
SaJNILockInfo.getLockUser()
-
isReadonly
boolean isReadonly()- Returns:
- Is readonly
- See Also:
-
SaJNILockInfo.isReadonly()
-
canEdit
boolean canEdit()- Returns:
- Editable
- See Also:
-
canIndex
boolean canIndex()- Returns:
- Indexable
- See Also:
-
canPrint
boolean canPrint()- Returns:
- Printable
- See Also:
-
canSave
boolean canSave()- Returns:
- Saveable
- See Also:
-
hasObjects
boolean hasObjects()- Returns:
- Has objects
- See Also:
-
hasRealACL
boolean hasRealACL()- Returns:
- Has real ACL
- See Also:
-
hasWorkflows
boolean hasWorkflows()Returns true if the document has started or finished workflows.- Returns:
- Has workflows
- See Also:
-
hasActiveWorkflows
boolean hasActiveWorkflows()Returns true, if the document has an active workflow.- Returns:
- has active workflow
-
isCheckedIn
boolean isCheckedIn()- Returns:
- Is checked in
- See Also:
-
isDeleted
boolean isDeleted()- Returns:
- Is deleted
- See Also:
-
isLink
boolean isLink()- Returns:
- Is link
- See Also:
-
isRevised
boolean isRevised()- Returns:
- Is revised
- See Also:
-
hasStatus
boolean hasStatus()- Returns:
- Has status informations
-
isOfflineConflict
boolean isOfflineConflict()- Returns:
- Document is in offline-conflict-state
-
isSigned
boolean isSigned()- Returns:
- Document is signed
-
canStream
boolean canStream()- Returns:
- Document can be streamed
-
isLockedByCurrentUser
boolean isLockedByCurrentUser()Returns true, if the document represented by this SaDocumentInfo is locked by the current user.
Note that locking information will only be available when the document represented by this SaDocumentInfo is contained in a DDC that is located on the default data-source. Use the getLockInfo method of SaClassicConnector to retrieve locking information otherwise.- Returns:
- true, if locked by current user
-