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 TypeMethodDescriptionbooleancanEdit()booleancanIndex()booleancanPrint()booleancanSave()booleanstatic final List<SaDocumentInfo>convertSimpleProperies(List<SaPropertyValue[]> values) final StringReturns the lock-token if the document is locked.final intReturns the lock-type if the document is locked.final StringReturns the user that has locked this document if the document is locked.Reads the value with the given name.booleanReturns true, if the document has an active workflow.booleanbooleanbooleanbooleanCheck, if a value exists for the given name.booleanReturns true if the document has started or finished workflows.booleanbooleanbooleanbooleanisLink()booleanisLocked()Check, if the document is locked.booleanReturns true, if the document represented by this SaDocumentInfo is locked by the current user.booleanfinal booleanbooleanbooleanisSigned()voidsetCheckoutInfo(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:
getValuesin interfaceSaDocumentInfo- Returns:
- Array of property values
- See Also:
-
hasValue
Check, if a value exists for the given name.- Specified by:
hasValuein interfaceSaDocumentInfo- Parameters:
name- Property name- Returns:
- True, if exists
- See Also:
-
getValue
Reads the value with the given name.- Specified by:
getValuein interfaceSaDocumentInfo- Parameters:
name- Property name- Returns:
- Property value or null, if not found
- See Also:
-
isCheckedout
public boolean isCheckedout()- Specified by:
isCheckedoutin interfaceSaDocumentInfo- Returns:
- Document is checked out.
- See Also:
-
getCheckoutInfos
- Specified by:
getCheckoutInfosin interfaceSaDocumentInfo- Returns:
- Checkout informations
- See Also:
-
setCheckoutInfo
- Specified by:
setCheckoutInfoin 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:
isLockedin 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:
getLockTokenin 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:
getLockTypein 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:
getLockUserin interfaceSaDocumentInfo- Returns:
- Lock user
- See Also:
-
isReadonly
public final boolean isReadonly()- Specified by:
isReadonlyin interfaceSaDocumentInfo- Returns:
- Is readonly
- See Also:
-
canEdit
public boolean canEdit()- Specified by:
canEditin interfaceSaDocumentInfo- Returns:
- Editable
- See Also:
-
canIndex
public boolean canIndex()- Specified by:
canIndexin interfaceSaDocumentInfo- Returns:
- Indexable
- See Also:
-
canPrint
public boolean canPrint()- Specified by:
canPrintin interfaceSaDocumentInfo- Returns:
- Printable
- See Also:
-
canSave
public boolean canSave()- Specified by:
canSavein interfaceSaDocumentInfo- Returns:
- Saveable
- See Also:
-
hasObjects
public boolean hasObjects()- Specified by:
hasObjectsin interfaceSaDocumentInfo- Returns:
- Has objects
- See Also:
-
hasRealACL
public boolean hasRealACL()- Specified by:
hasRealACLin interfaceSaDocumentInfo- Returns:
- Has real ACL
- See Also:
-
hasWorkflows
public boolean hasWorkflows()Returns true if the document has started or finished workflows.- Specified by:
hasWorkflowsin interfaceSaDocumentInfo- Returns:
- Has workflows
- See Also:
-
hasActiveWorkflows
public boolean hasActiveWorkflows()Returns true, if the document has an active workflow.- Specified by:
hasActiveWorkflowsin interfaceSaDocumentInfo- Returns:
- has active workflow
- See Also:
-
isCheckedIn
public boolean isCheckedIn()- Specified by:
isCheckedInin interfaceSaDocumentInfo- Returns:
- Is checked in
- See Also:
-
isDeleted
public boolean isDeleted()- Specified by:
isDeletedin interfaceSaDocumentInfo- Returns:
- Is deleted
- See Also:
-
isLink
public boolean isLink()- Specified by:
isLinkin interfaceSaDocumentInfo- Returns:
- Is link
- See Also:
-
isRevised
public boolean isRevised()- Specified by:
isRevisedin interfaceSaDocumentInfo- Returns:
- Is revised
- See Also:
-
hasStatus
public boolean hasStatus()- Specified by:
hasStatusin interfaceSaDocumentInfo- Returns:
- Has status informations
- See Also:
-
canStream
public boolean canStream()- Specified by:
canStreamin interfaceSaDocumentInfo- Returns:
- Document can be streamed
- See Also:
-
isOfflineConflict
public boolean isOfflineConflict()- Specified by:
isOfflineConflictin interfaceSaDocumentInfo- Returns:
- Document is in offline-conflict-state
- See Also:
-
isSigned
public boolean isSigned()- Specified by:
isSignedin 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:
isLockedByCurrentUserin interfaceSaDocumentInfo- Returns:
- true, if locked by current user
- See Also:
-
SaDocumentInfoImpl(SaPropertyValue[], SaLockInfo)