Package com.saperion.rmi
Class SaDocumentInfoImpl
java.lang.Object
com.saperion.rmi.SaDocumentInfoImpl
- All Implemented Interfaces:
SaDocumentInfo
,Serializable
- Author:
- rbo
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSaDocumentInfoImpl
(SaDocumentInfo info, SaPropertyValue[] propertyValues) Alternative constructor.SaDocumentInfoImpl
(SaPropertyValue[] propertyValues, SaLockInfo lock) Constructor.SaDocumentInfoImpl
(SaPropertyValue[] propertyValues, com.saperion.jni.SaJNILockInfo lock) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canEdit()
boolean
canIndex()
boolean
canPrint()
boolean
canSave()
boolean
static final List<SaDocumentInfo>
convertSimpleProperies
(List<SaPropertyValue[]> values) final String
Returns the lock-token if the document is locked.final int
Returns the lock-type if the document is locked.final String
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
final boolean
boolean
boolean
isSigned()
void
setCheckoutInfo
(List<?> rows)
-
Constructor Details
-
SaDocumentInfoImpl
Constructor.- Parameters:
propertyValues
- Property valueslock
- Lock informations
-
SaDocumentInfoImpl
@Deprecated public SaDocumentInfoImpl(SaPropertyValue[] propertyValues, com.saperion.jni.SaJNILockInfo lock) Deprecated.Constructor.- Parameters:
propertyValues
- Property valueslock
- Lock informations
-
SaDocumentInfoImpl
Alternative constructor.- Parameters:
info
- Second infopropertyValues
- Values
-
-
Method Details
-
convertSimpleProperies
- Parameters:
values
- Property values- Returns:
- List of document infos
-
getValues
- Specified by:
getValues
in interfaceSaDocumentInfo
- Returns:
- Array of property values
- See Also:
-
hasValue
Check, if a value exists for the given name.- Specified by:
hasValue
in interfaceSaDocumentInfo
- Parameters:
name
- Property name- Returns:
- True, if exists
- See Also:
-
getValue
Reads the value with the given name.- Specified by:
getValue
in interfaceSaDocumentInfo
- Parameters:
name
- Property name- Returns:
- Property value or null, if not found
- See Also:
-
isCheckedout
public boolean isCheckedout()- Specified by:
isCheckedout
in interfaceSaDocumentInfo
- Returns:
- Document is checked out.
- See Also:
-
getCheckoutInfos
- Specified by:
getCheckoutInfos
in interfaceSaDocumentInfo
- Returns:
- Checkout informations
- See Also:
-
setCheckoutInfo
- Specified by:
setCheckoutInfo
in interfaceSaDocumentInfo
- Parameters:
rows
- Checkout rows- See Also:
-
isLocked
public 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.- Specified by:
isLocked
in interfaceSaDocumentInfo
- Returns:
- true, if the document is locked
- See Also:
-
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.- Specified by:
getLockToken
in interfaceSaDocumentInfo
- Returns:
- Lock token
- See Also:
-
getLockType
public final 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.- Specified by:
getLockType
in interfaceSaDocumentInfo
- Returns:
- Lock type
- See Also:
-
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.- Specified by:
getLockUser
in interfaceSaDocumentInfo
- Returns:
- Lock user
- See Also:
-
isReadonly
public final boolean isReadonly()- Specified by:
isReadonly
in interfaceSaDocumentInfo
- Returns:
- Is readonly
- See Also:
-
canEdit
public boolean canEdit()- Specified by:
canEdit
in interfaceSaDocumentInfo
- Returns:
- Editable
- See Also:
-
canIndex
public boolean canIndex()- Specified by:
canIndex
in interfaceSaDocumentInfo
- Returns:
- Indexable
- See Also:
-
canPrint
public boolean canPrint()- Specified by:
canPrint
in interfaceSaDocumentInfo
- Returns:
- Printable
- See Also:
-
canSave
public boolean canSave()- Specified by:
canSave
in interfaceSaDocumentInfo
- Returns:
- Saveable
- See Also:
-
hasObjects
public boolean hasObjects()- Specified by:
hasObjects
in interfaceSaDocumentInfo
- Returns:
- Has objects
- See Also:
-
hasRealACL
public boolean hasRealACL()- Specified by:
hasRealACL
in interfaceSaDocumentInfo
- Returns:
- Has real ACL
- See Also:
-
hasWorkflows
public boolean hasWorkflows()Returns true if the document has started or finished workflows.- Specified by:
hasWorkflows
in interfaceSaDocumentInfo
- Returns:
- Has workflows
- See Also:
-
hasActiveWorkflows
public boolean hasActiveWorkflows()Returns true, if the document has an active workflow.- Specified by:
hasActiveWorkflows
in interfaceSaDocumentInfo
- Returns:
- has active workflow
- See Also:
-
isCheckedIn
public boolean isCheckedIn()- Specified by:
isCheckedIn
in interfaceSaDocumentInfo
- Returns:
- Is checked in
- See Also:
-
isDeleted
public boolean isDeleted()- Specified by:
isDeleted
in interfaceSaDocumentInfo
- Returns:
- Is deleted
- See Also:
-
isLink
public boolean isLink()- Specified by:
isLink
in interfaceSaDocumentInfo
- Returns:
- Is link
- See Also:
-
isRevised
public boolean isRevised()- Specified by:
isRevised
in interfaceSaDocumentInfo
- Returns:
- Is revised
- See Also:
-
hasStatus
public boolean hasStatus()- Specified by:
hasStatus
in interfaceSaDocumentInfo
- Returns:
- Has status informations
- See Also:
-
canStream
public boolean canStream()- Specified by:
canStream
in interfaceSaDocumentInfo
- Returns:
- Document can be streamed
- See Also:
-
isOfflineConflict
public boolean isOfflineConflict()- Specified by:
isOfflineConflict
in interfaceSaDocumentInfo
- Returns:
- Document is in offline-conflict-state
- See Also:
-
isSigned
public boolean isSigned()- Specified by:
isSigned
in interfaceSaDocumentInfo
- Returns:
- Document is signed
- See Also:
-
isLockedByCurrentUser
public 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.- Specified by:
isLockedByCurrentUser
in interfaceSaDocumentInfo
- Returns:
- true, if locked by current user
- See Also:
-
SaDocumentInfoImpl(SaPropertyValue[], SaLockInfo)