Package com.saperion.rmi
Class SaDocumentInfoImpl
- java.lang.Object
-
- com.saperion.rmi.SaDocumentInfoImpl
-
- All Implemented Interfaces:
SaDocumentInfo,java.io.Serializable
public class SaDocumentInfoImpl extends java.lang.Object implements SaDocumentInfo
- Author:
- rbo
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SaDocumentInfoImpl(SaDocumentInfo info, SaPropertyValue[] propertyValues)Alternative constructor.SaDocumentInfoImpl(SaPropertyValue[] propertyValues, SaLockInfo lock)Constructor.SaDocumentInfoImpl(SaPropertyValue[] propertyValues, com.saperion.jni.SaJNILockInfo lock)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanEdit()booleancanIndex()booleancanPrint()booleancanSave()booleancanStream()static java.util.List<SaDocumentInfo>convertSimpleProperies(java.util.List<SaPropertyValue[]> values)java.util.List<SaCheckoutInfo>getCheckoutInfos()java.lang.StringgetLockToken()Returns the lock-token if the document is locked.intgetLockType()Returns the lock-type if the document is locked.java.lang.StringgetLockUser()Returns the user that has locked this document if the document is locked.SaPropertyValuegetValue(java.lang.String name)Reads the value with the given name.SaPropertyValue[]getValues()booleanhasActiveWorkflows()Returns true, if the document has an active workflow.booleanhasObjects()booleanhasRealACL()booleanhasStatus()booleanhasValue(java.lang.String name)Check, if a value exists for the given name.booleanhasWorkflows()Returns true if the document has started or finished workflows.booleanisCheckedIn()booleanisCheckedout()booleanisDeleted()booleanisLink()booleanisLocked()Check, if the document is locked.booleanisLockedByCurrentUser()Returns true, if the document represented by this SaDocumentInfo is locked by the current user.booleanisOfflineConflict()booleanisReadonly()booleanisRevised()booleanisSigned()voidsetCheckoutInfo(java.util.List<?> rows)
-
-
-
Constructor Detail
-
SaDocumentInfoImpl
public SaDocumentInfoImpl(SaPropertyValue[] propertyValues, SaLockInfo lock)
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
public SaDocumentInfoImpl(SaDocumentInfo info, SaPropertyValue[] propertyValues)
Alternative constructor.- Parameters:
info- Second infopropertyValues- Values
-
-
Method Detail
-
convertSimpleProperies
public static final java.util.List<SaDocumentInfo> convertSimpleProperies(java.util.List<SaPropertyValue[]> values)
- Parameters:
values- Property values- Returns:
- List of document infos
-
getValues
public SaPropertyValue[] getValues()
- Specified by:
getValuesin interfaceSaDocumentInfo- Returns:
- Array of property values
- See Also:
SaDocumentInfo.getValues()
-
hasValue
public boolean hasValue(java.lang.String name)
Check, if a value exists for the given name.- Specified by:
hasValuein interfaceSaDocumentInfo- Parameters:
name- Property name- Returns:
- True, if exists
- See Also:
SaDocumentInfo.hasValue(java.lang.String)
-
getValue
public SaPropertyValue getValue(java.lang.String name)
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:
SaDocumentInfo.getValue(java.lang.String)
-
isCheckedout
public boolean isCheckedout()
- Specified by:
isCheckedoutin interfaceSaDocumentInfo- Returns:
- Document is checked out.
- See Also:
SaDocumentInfo.isCheckedout()
-
getCheckoutInfos
public java.util.List<SaCheckoutInfo> getCheckoutInfos()
- Specified by:
getCheckoutInfosin interfaceSaDocumentInfo- Returns:
- Checkout informations
- See Also:
SaDocumentInfo.getCheckoutInfos()
-
setCheckoutInfo
public void setCheckoutInfo(java.util.List<?> rows)
- Specified by:
setCheckoutInfoin interfaceSaDocumentInfo- Parameters:
rows- Checkout rows- See Also:
SaDocumentInfo.setCheckoutInfo(java.util.List)
-
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:
SaDocumentInfo.isLocked()
-
getLockToken
public final java.lang.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.- Specified by:
getLockTokenin interfaceSaDocumentInfo- Returns:
- Lock token
- See Also:
SaDocumentInfo.getLockToken()
-
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:
SaDocumentInfo.getLockType()
-
getLockUser
public final java.lang.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.- Specified by:
getLockUserin interfaceSaDocumentInfo- Returns:
- Lock user
- See Also:
SaDocumentInfo.getLockUser()
-
isReadonly
public final boolean isReadonly()
- Specified by:
isReadonlyin interfaceSaDocumentInfo- Returns:
- Is readonly
- See Also:
SaDocumentInfo.isReadonly()
-
canEdit
public boolean canEdit()
- Specified by:
canEditin interfaceSaDocumentInfo- Returns:
- Editable
- See Also:
SaDocumentInfo.canEdit()
-
canIndex
public boolean canIndex()
- Specified by:
canIndexin interfaceSaDocumentInfo- Returns:
- Indexable
- See Also:
SaDocumentInfo.canIndex()
-
canPrint
public boolean canPrint()
- Specified by:
canPrintin interfaceSaDocumentInfo- Returns:
- Printable
- See Also:
SaDocumentInfo.canPrint()
-
canSave
public boolean canSave()
- Specified by:
canSavein interfaceSaDocumentInfo- Returns:
- Saveable
- See Also:
SaDocumentInfo.canSave()
-
hasObjects
public boolean hasObjects()
- Specified by:
hasObjectsin interfaceSaDocumentInfo- Returns:
- Has objects
- See Also:
SaDocumentInfo.hasObjects()
-
hasRealACL
public boolean hasRealACL()
- Specified by:
hasRealACLin interfaceSaDocumentInfo- Returns:
- Has real ACL
- See Also:
SaDocumentInfo.hasRealACL()
-
hasWorkflows
public boolean hasWorkflows()
Returns true if the document has started or finished workflows.- Specified by:
hasWorkflowsin interfaceSaDocumentInfo- Returns:
- Has workflows
- See Also:
SaDocumentInfo.hasWorkflows()
-
hasActiveWorkflows
public boolean hasActiveWorkflows()
Returns true, if the document has an active workflow.- Specified by:
hasActiveWorkflowsin interfaceSaDocumentInfo- Returns:
- has active workflow
- See Also:
SaDocumentInfo.hasActiveWorkflows()
-
isCheckedIn
public boolean isCheckedIn()
- Specified by:
isCheckedInin interfaceSaDocumentInfo- Returns:
- Is checked in
- See Also:
SaDocumentInfo.isCheckedIn()
-
isDeleted
public boolean isDeleted()
- Specified by:
isDeletedin interfaceSaDocumentInfo- Returns:
- Is deleted
- See Also:
SaDocumentInfo.isDeleted()
-
isLink
public boolean isLink()
- Specified by:
isLinkin interfaceSaDocumentInfo- Returns:
- Is link
- See Also:
SaDocumentInfo.isLink()
-
isRevised
public boolean isRevised()
- Specified by:
isRevisedin interfaceSaDocumentInfo- Returns:
- Is revised
- See Also:
SaDocumentInfo.isRevised()
-
hasStatus
public boolean hasStatus()
- Specified by:
hasStatusin interfaceSaDocumentInfo- Returns:
- Has status informations
- See Also:
SaDocumentInfo.hasStatus()
-
canStream
public boolean canStream()
- Specified by:
canStreamin interfaceSaDocumentInfo- Returns:
- Document can be streamed
- See Also:
SaDocumentInfo.canStream()
-
isOfflineConflict
public boolean isOfflineConflict()
- Specified by:
isOfflineConflictin interfaceSaDocumentInfo- Returns:
- Document is in offline-conflict-state
- See Also:
SaDocumentInfo.isOfflineConflict()
-
isSigned
public boolean isSigned()
- Specified by:
isSignedin interfaceSaDocumentInfo- Returns:
- Document is signed
- See Also:
SaDocumentInfo.isSigned()
-
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:
SaDocumentInfo.isLockedByCurrentUser()
-
-