public class ResultProperties extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ResultProperties.Type
ResultProperties item type.
|
Constructor and Description |
---|
ResultProperties(int index,
ResultProperties.Type itemType,
String ddcName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canEdit() |
boolean |
canIndex() |
boolean |
canPrint() |
boolean |
canSave() |
boolean |
canStream() |
static ResultProperties |
cloneEmpty(ResultProperties origin) |
DocumentId |
getAttachmentId()
Returns a DocumentId containing the ID of the attachment of a task represented by this
result.
|
List<com.saperion.rmi.SaCheckoutInfo> |
getCheckoutInfos() |
com.saperion.intf.wf.CommandInfo[] |
getCommands() |
String |
getDdcName() |
String |
getDocId()
Deprecated.
will be replaced with getDocumentId
|
String |
getDocumentDescription()
Returns the string describing the document as set in SYSDOCUMENTDESCRIPTION field in ddc.
|
DocumentId |
getDocumentId()
Returns a new DocumentId containing the object ID of the document represented by this result.
|
DocumentDatabaseMetaInfo |
getDocumentInfo() |
Set<Map.Entry<String,ResultProperty>> |
getEntries()
Returns a set of entries containing all property-name / value pairs.
|
static ResultProperties |
getFromPropertyList(com.saperion.intf.SaPropertyValue[] values,
String ddcName)
Constructs a new ResultProperties object containing the supplied properties.
|
static ResultProperties |
getFromPropertyList(com.saperion.intf.SaPropertyValue[] values,
String ddcName,
String objectId,
String revisionId)
Constructs a new ResultProperties object containing the supplied properties.
|
String |
getLockUser() |
int |
getOriginalIndex() |
ResultProperty |
getProperty(String displayName)
Returns the specified property.
|
String[] |
getPropertyAsString(String key)
Returns the specified property as array of strings.
|
Set<String> |
getPropertyNames()
Returns a set containing all property names.
|
com.saperion.intf.SaPropertyValue |
getPropertyValue(String displayName)
Retrieves a property.
|
com.saperion.intf.wf.TaskInfo |
getTaskInfo() |
ResultProperties.Type |
getType() |
boolean |
hasActiveWorkflows()
Returns true if the document has active workflows.
|
boolean |
hasDocumentDescription() |
boolean |
hasHDoc() |
boolean |
hasObjects() |
boolean |
hasProperty(String propertyName)
Checks if the specified property is contained.
|
boolean |
hasRealACL() |
boolean |
hasWorkflows()
Returns true if the document has active or finished workflows.
|
boolean |
isCheckedIn() |
boolean |
isCheckedout() |
boolean |
isDeleted() |
boolean |
isDocumentItem() |
boolean |
isFilingSupported() |
boolean |
isFolderItem() |
boolean |
isInRetention() |
boolean |
isLaunchable() |
boolean |
isLink() |
boolean |
isLitigationHold() |
boolean |
isLocked() |
boolean |
isLockedByCurrentUser()
Returns true, if the documen is locked by the current user.
|
boolean |
isLockedByOtherUser()
Returns true, if the document is locked by another user.
|
boolean |
isLookupItem() |
boolean |
isOfflineConflict() |
boolean |
isReadOnlyLookupItem()
Checks if this is an item from a lookup table that can be displayed only.
|
boolean |
isRevised() |
boolean |
isSigned() |
boolean |
isWorkflowAuditItem() |
boolean |
isWorkflowItem() |
void |
setCommands(com.saperion.intf.wf.CommandInfo[] cmd) |
void |
setDocumentInfo(DocumentDatabaseMetaInfo info) |
void |
setOriginalIndex(int originalIndex)
Updates the original index of this ResultProperties instance.
|
void |
setProperty(ResultProperty value)
Sets a property.
|
void |
setReadOnlyLookupItem(boolean readOnlyLookupItem)
Sets the read only lookup item property.
|
void |
setTaskInfo(com.saperion.intf.wf.TaskInfo info) |
public ResultProperties(int index, ResultProperties.Type itemType, String ddcName)
index
- the index of this ResultProperties in the original result listitemType
- the item ResultProperties.Type
representationddcName
- ddc name of the represented document@Deprecated public String getDocId() throws DocumentIdentificationException
DocumentIdentificationException
- if the id was not foundpublic DocumentId getDocumentId() throws DocumentIdentificationException
DocumentIdentificationException
- if the object id was not foundpublic DocumentDatabaseMetaInfo getDocumentInfo()
public int getOriginalIndex()
public void setOriginalIndex(int originalIndex)
originalIndex
- the new original indexpublic void setDocumentInfo(DocumentDatabaseMetaInfo info)
info
- Document infopublic DocumentId getAttachmentId()
public void setProperty(ResultProperty value)
value
- property valuespublic com.saperion.intf.SaPropertyValue getPropertyValue(String displayName)
displayName
- display name of the property to retrievepublic ResultProperty getProperty(String displayName)
displayName
- display name of the propertypublic String[] getPropertyAsString(String key)
key
- key of the propertypublic boolean hasProperty(String propertyName)
propertyName
- property namepublic Set<String> getPropertyNames()
public Set<Map.Entry<String,ResultProperty>> getEntries()
public boolean hasHDoc()
public boolean isWorkflowItem()
public boolean isWorkflowAuditItem()
public boolean isDocumentItem()
public boolean isFolderItem()
public boolean isLookupItem()
public boolean isLaunchable()
public final boolean isLocked()
public final boolean isLockedByOtherUser()
public final boolean isLockedByCurrentUser()
public final String getLockUser()
public static ResultProperties cloneEmpty(ResultProperties origin)
origin
- Origin instancepublic static ResultProperties getFromPropertyList(com.saperion.intf.SaPropertyValue[] values, String ddcName)
values
- property valuesddcName
- ddc namepublic static ResultProperties getFromPropertyList(com.saperion.intf.SaPropertyValue[] values, String ddcName, String objectId, String revisionId) throws SystemException
values
- property valuesddcName
- ddc nameobjectId
- object idrevisionId
- revision idSystemException
- when setting a property value failedpublic ResultProperties.Type getType()
public final com.saperion.intf.wf.CommandInfo[] getCommands()
public final void setCommands(com.saperion.intf.wf.CommandInfo[] cmd)
cmd
- the commands to setpublic final com.saperion.intf.wf.TaskInfo getTaskInfo()
public final void setTaskInfo(com.saperion.intf.wf.TaskInfo info)
info
- the taskInfo to set, attachmentId will be extractedpublic boolean canEdit()
SaStatusInfo.canEdit()
public boolean canIndex()
SaStatusInfo.canIndex()
public boolean canPrint()
SaStatusInfo.canPrint()
public boolean canSave()
SaStatusInfo.canSave()
public boolean hasObjects()
SaStatusInfo.hasObjects()
public boolean hasRealACL()
SaStatusInfo.hasRealACL()
public boolean hasWorkflows()
SaStatusInfo.hasWorkflows()
public boolean hasActiveWorkflows()
public boolean isCheckedIn()
SaStatusInfo.isCheckedIn()
public boolean isDeleted()
SaStatusInfo.isDeleted()
public boolean isLink()
SaStatusInfo.isLink()
public boolean isRevised()
SaStatusInfo.isRevised()
public boolean canStream()
DocumentDatabaseMetaInfo.canStream()
public boolean isOfflineConflict()
DocumentDatabaseMetaInfo.isOfflineConflict()
public boolean isSigned()
DocumentDatabaseMetaInfo.isSigned()
public List<com.saperion.rmi.SaCheckoutInfo> getCheckoutInfos()
DocumentDatabaseMetaInfo.getCheckoutInfos()
public boolean isCheckedout()
DocumentDatabaseMetaInfo.isCheckedout()
public String getDdcName()
public boolean isLitigationHold()
public boolean isInRetention()
public boolean isFilingSupported()
public String getDocumentDescription()
public boolean hasDocumentDescription()
public boolean isReadOnlyLookupItem()
public void setReadOnlyLookupItem(boolean readOnlyLookupItem)
readOnlyLookupItem
- valueCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.