public class SaDocumentInfoImpl extends Object implements SaDocumentInfo
Constructor and Description |
---|
SaDocumentInfoImpl(SaDocumentInfo info,
SaPropertyValue[] propertyValues)
Alternative constructor.
|
SaDocumentInfoImpl(SaPropertyValue[] propertyValues,
SaJNILockInfo lock)
Deprecated.
|
SaDocumentInfoImpl(SaPropertyValue[] propertyValues,
SaLockInfo lock)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canEdit() |
boolean |
canIndex() |
boolean |
canPrint() |
boolean |
canSave() |
boolean |
canStream() |
static List<SaDocumentInfo> |
convertSimpleProperies(List<SaPropertyValue[]> values) |
List<SaCheckoutInfo> |
getCheckoutInfos() |
String |
getLockToken()
Returns the lock-token if the document is locked.
|
int |
getLockType()
Returns the lock-type if the document is locked.
|
String |
getLockUser()
Returns the user that has locked this document if the document is locked.
|
SaPropertyValue |
getValue(String name)
Reads the value with the given name.
|
SaPropertyValue[] |
getValues() |
boolean |
hasActiveWorkflows()
Returns true, if the document has an active workflow.
|
boolean |
hasObjects() |
boolean |
hasRealACL() |
boolean |
hasStatus() |
boolean |
hasValue(String name)
Check, if a value exists for the given name.
|
boolean |
hasWorkflows()
Returns true if the document has started or finished workflows.
|
boolean |
isCheckedIn() |
boolean |
isCheckedout() |
boolean |
isDeleted() |
boolean |
isLink() |
boolean |
isLocked()
Check, if the document is locked.
|
boolean |
isLockedByCurrentUser()
Returns true, if the document represented by this SaDocumentInfo is
locked by the current user.
|
boolean |
isOfflineConflict() |
boolean |
isReadonly() |
boolean |
isRevised() |
boolean |
isSigned() |
void |
setCheckoutInfo(List<?> rows) |
public SaDocumentInfoImpl(SaPropertyValue[] propertyValues, SaLockInfo lock)
propertyValues
- Property valueslock
- Lock informations@Deprecated public SaDocumentInfoImpl(SaPropertyValue[] propertyValues, SaJNILockInfo lock)
SaDocumentInfoImpl(SaPropertyValue[], SaLockInfo)
propertyValues
- Property valueslock
- Lock informationspublic SaDocumentInfoImpl(SaDocumentInfo info, SaPropertyValue[] propertyValues)
info
- Second infopropertyValues
- Valuespublic static final List<SaDocumentInfo> convertSimpleProperies(List<SaPropertyValue[]> values)
values
- Property valuespublic SaPropertyValue[] getValues()
getValues
in interface SaDocumentInfo
SaDocumentInfo.getValues()
public boolean hasValue(String name)
hasValue
in interface SaDocumentInfo
name
- Property nameSaDocumentInfo.hasValue(java.lang.String)
public SaPropertyValue getValue(String name)
getValue
in interface SaDocumentInfo
name
- Property nameSaDocumentInfo.getValue(java.lang.String)
public boolean isCheckedout()
isCheckedout
in interface SaDocumentInfo
SaDocumentInfo.isCheckedout()
public List<SaCheckoutInfo> getCheckoutInfos()
getCheckoutInfos
in interface SaDocumentInfo
SaDocumentInfo.getCheckoutInfos()
public void setCheckoutInfo(List<?> rows)
setCheckoutInfo
in interface SaDocumentInfo
rows
- Checkout rowsSaDocumentInfo.setCheckoutInfo(java.util.List)
public boolean isLocked()
isLocked
in interface SaDocumentInfo
SaDocumentInfo.isLocked()
public final String getLockToken()
getLockToken
in interface SaDocumentInfo
SaDocumentInfo.getLockToken()
public final int getLockType()
getLockType
in interface SaDocumentInfo
SaDocumentInfo.getLockType()
public final String getLockUser()
getLockUser
in interface SaDocumentInfo
SaDocumentInfo.getLockUser()
public final boolean isReadonly()
isReadonly
in interface SaDocumentInfo
SaDocumentInfo.isReadonly()
public boolean canEdit()
canEdit
in interface SaDocumentInfo
SaDocumentInfo.canEdit()
public boolean canIndex()
canIndex
in interface SaDocumentInfo
SaDocumentInfo.canIndex()
public boolean canPrint()
canPrint
in interface SaDocumentInfo
SaDocumentInfo.canPrint()
public boolean canSave()
canSave
in interface SaDocumentInfo
SaDocumentInfo.canSave()
public boolean hasObjects()
hasObjects
in interface SaDocumentInfo
SaDocumentInfo.hasObjects()
public boolean hasRealACL()
hasRealACL
in interface SaDocumentInfo
SaDocumentInfo.hasRealACL()
public boolean hasWorkflows()
hasWorkflows
in interface SaDocumentInfo
SaDocumentInfo.hasWorkflows()
public boolean hasActiveWorkflows()
hasActiveWorkflows
in interface SaDocumentInfo
SaDocumentInfo.hasActiveWorkflows()
public boolean isCheckedIn()
isCheckedIn
in interface SaDocumentInfo
SaDocumentInfo.isCheckedIn()
public boolean isDeleted()
isDeleted
in interface SaDocumentInfo
SaDocumentInfo.isDeleted()
public boolean isLink()
isLink
in interface SaDocumentInfo
SaDocumentInfo.isLink()
public boolean isRevised()
isRevised
in interface SaDocumentInfo
SaDocumentInfo.isRevised()
public boolean hasStatus()
hasStatus
in interface SaDocumentInfo
SaDocumentInfo.hasStatus()
public boolean canStream()
canStream
in interface SaDocumentInfo
SaDocumentInfo.canStream()
public boolean isOfflineConflict()
isOfflineConflict
in interface SaDocumentInfo
SaDocumentInfo.isOfflineConflict()
public boolean isSigned()
isSigned
in interface SaDocumentInfo
SaDocumentInfo.isSigned()
public boolean isLockedByCurrentUser()
isLockedByCurrentUser
in interface SaDocumentInfo
SaDocumentInfo.isLockedByCurrentUser()
Copyright © 2016 SAPERION AG. All rights reserved.