Package com.saperion.ngc.model.resultset
Class ResultProperties
- java.lang.Object
- 
- com.saperion.ngc.model.resultset.ResultProperties
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class ResultProperties extends java.lang.Object implements java.io.SerializableConverter class that is responsible for transfer the query results from backend to view. Represents a row in a result list.- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classResultProperties.TypeResultProperties item type.
 - 
Constructor SummaryConstructors Constructor Description ResultProperties(int index, ResultProperties.Type itemType, java.lang.String ddcName)Constructor.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancanEdit()booleancanIndex()booleancanPrint()booleancanSave()booleancanStream()static ResultPropertiescloneEmpty(ResultProperties origin)DocumentIdgetAttachmentId()Returns a DocumentId containing the ID of the attachment of a task represented by this result.java.util.List<com.saperion.rmi.SaCheckoutInfo>getCheckoutInfos()com.saperion.intf.wf.CommandInfo[]getCommands()java.lang.StringgetDdcName()java.lang.StringgetDocId()Deprecated.will be replaced with getDocumentIdjava.lang.StringgetDocumentDescription()Returns the string describing the document as set in SYSDOCUMENTDESCRIPTION field in ddc.DocumentIdgetDocumentId()Returns a new DocumentId containing the object ID of the document represented by this result.DocumentDatabaseMetaInfogetDocumentInfo()java.util.Set<java.util.Map.Entry<java.lang.String,ResultProperty>>getEntries()Returns a set of entries containing all property-name / value pairs.static ResultPropertiesgetFromPropertyList(com.saperion.intf.SaPropertyValue[] values, java.lang.String ddcName)Constructs a new ResultProperties object containing the supplied properties.static ResultPropertiesgetFromPropertyList(com.saperion.intf.SaPropertyValue[] values, java.lang.String ddcName, java.lang.String objectId, java.lang.String revisionId)Constructs a new ResultProperties object containing the supplied properties.java.lang.StringgetLockUser()intgetOriginalIndex()ResultPropertygetProperty(java.lang.String displayName)Returns the specified property.java.lang.String[]getPropertyAsString(java.lang.String key)Returns the specified property as array of strings.java.util.Set<java.lang.String>getPropertyNames()Returns a set containing all property names.com.saperion.intf.SaPropertyValuegetPropertyValue(java.lang.String displayName)Retrieves a property.com.saperion.intf.wf.TaskInfogetTaskInfo()ResultProperties.TypegetType()booleanhasActiveWorkflows()Returns true if the document has active workflows.booleanhasDocumentDescription()booleanhasHDoc()booleanhasObjects()booleanhasProperty(java.lang.String propertyName)Checks if the specified property is contained.booleanhasRealACL()booleanhasWorkflows()Returns true if the document has active or finished workflows.booleanisCheckedIn()booleanisCheckedout()booleanisDeleted()booleanisDocumentItem()booleanisFilingSupported()booleanisFolderItem()booleanisInDisposition()booleanisInRetention()booleanisLaunchable()booleanisLink()booleanisLitigationHold()booleanisLocked()booleanisLockedByCurrentUser()Returns true, if the documen is locked by the current user.booleanisLockedByOtherUser()Returns true, if the document is locked by another user.booleanisLookupItem()booleanisOfflineConflict()booleanisReadOnlyLookupItem()Checks if this is an item from a lookup table that can be displayed only.booleanisRevised()booleanisSigned()booleanisWorkflowAuditItem()booleanisWorkflowItem()voidsetCommands(com.saperion.intf.wf.CommandInfo[] cmd)voidsetDocumentInfo(DocumentDatabaseMetaInfo info)voidsetOriginalIndex(int originalIndex)Updates the original index of this ResultProperties instance.voidsetProperty(ResultProperty value)Sets a property.voidsetReadOnlyLookupItem(boolean readOnlyLookupItem)Sets the read only lookup item property.voidsetTaskInfo(com.saperion.intf.wf.TaskInfo info)
 
- 
- 
- 
Constructor Detail- 
ResultPropertiespublic ResultProperties(int index, ResultProperties.Type itemType, java.lang.String ddcName)Constructor.- Parameters:
- index- the index of this ResultProperties in the original result list
- itemType- the item- ResultProperties.Typerepresentation
- ddcName- ddc name of the represented document
 
 
- 
 - 
Method Detail- 
getDocId@Deprecated public java.lang.String getDocId() throws DocumentIdentificationExceptionDeprecated.will be replaced with getDocumentIdGet the HDoc that identifies this result in the backend system.- Returns:
- HDoc
- Throws:
- DocumentIdentificationException- if the id was not found
 
 - 
getDocumentIdpublic DocumentId getDocumentId() throws DocumentIdentificationException Returns a new DocumentId containing the object ID of the document represented by this result. The revision ID and the DDC name will be contained if available.- Returns:
- DocumentId that identifies the document
- Throws:
- DocumentIdentificationException- if the object id was not found
 
 - 
getDocumentInfopublic DocumentDatabaseMetaInfo getDocumentInfo() - Returns:
- document info
 
 - 
getOriginalIndexpublic int getOriginalIndex() - Returns:
- the original index
 
 - 
setOriginalIndexpublic void setOriginalIndex(int originalIndex) Updates the original index of this ResultProperties instance. Use with care. This method is meant to be used when a single row is updated.- Parameters:
- originalIndex- the new original index
 
 - 
setDocumentInfopublic void setDocumentInfo(DocumentDatabaseMetaInfo info) - Parameters:
- info- Document info
 
 - 
getAttachmentIdpublic DocumentId getAttachmentId() Returns a DocumentId containing the ID of the attachment of a task represented by this result. The revision ID and the DDC name will be contained if available.- Returns:
- DocumentId that identifies the attachment; null, if none exits
 
 - 
setPropertypublic void setProperty(ResultProperty value) Sets a property.- Parameters:
- value- property values
 
 - 
getPropertyValuepublic com.saperion.intf.SaPropertyValue getPropertyValue(java.lang.String displayName) Retrieves a property.- Parameters:
- displayName- display name of the property to retrieve
- Returns:
- property values or null if the property does not exist
 
 - 
getPropertypublic ResultProperty getProperty(java.lang.String displayName) Returns the specified property.- Parameters:
- displayName- display name of the property
- Returns:
- ResultProperty
 
 - 
getPropertyAsStringpublic java.lang.String[] getPropertyAsString(java.lang.String key) Returns the specified property as array of strings. If the property does not exist or is empty, the result will contain an empty string.- Parameters:
- key- key of the property
- Returns:
- array of strings representing the values
 
 - 
hasPropertypublic boolean hasProperty(java.lang.String propertyName) Checks if the specified property is contained.- Parameters:
- propertyName- property name
- Returns:
- true if contained
 
 - 
getPropertyNamespublic java.util.Set<java.lang.String> getPropertyNames() Returns a set containing all property names.- Returns:
- property names
 
 - 
getEntriespublic java.util.Set<java.util.Map.Entry<java.lang.String,ResultProperty>> getEntries() Returns a set of entries containing all property-name / value pairs.- Returns:
- entry set
 
 - 
hasHDocpublic boolean hasHDoc() - Returns:
- Checks, if this item has a HDOC.
 
 - 
isWorkflowItempublic boolean isWorkflowItem() - Returns:
- true, if this is a workflow item
 
 - 
isWorkflowAuditItempublic boolean isWorkflowAuditItem() - Returns:
- true, if this is a workflow audit item
 
 - 
isDocumentItempublic boolean isDocumentItem() - Returns:
- true, if this is a document item
 
 - 
isFolderItempublic boolean isFolderItem() - Returns:
- true, if this is a folder item
 
 - 
isLookupItempublic boolean isLookupItem() - Returns:
- true, if this is a lookup item
 
 - 
isLaunchablepublic boolean isLaunchable() - Returns:
- True, if launch)able
 
 - 
isLockedpublic final boolean isLocked() - Returns:
- true, if the document is locked
 
 - 
isLockedByOtherUserpublic final boolean isLockedByOtherUser() Returns true, if the document is locked by another user.- Returns:
- true, if locked by other user
 
 - 
isLockedByCurrentUserpublic final boolean isLockedByCurrentUser() Returns true, if the documen is locked by the current user.- Returns:
- true, if locked by current user
 
 - 
getLockUserpublic final java.lang.String getLockUser() - Returns:
- Lock user name
 
 - 
cloneEmptypublic static ResultProperties cloneEmpty(ResultProperties origin) - Parameters:
- origin- Origin instance
- Returns:
- Cloned instance without properties. Settings like launchable, litigation hold and retention are preserved.
 
 - 
getFromPropertyListpublic static ResultProperties getFromPropertyList(com.saperion.intf.SaPropertyValue[] values, java.lang.String ddcName) Constructs a new ResultProperties object containing the supplied properties.- Parameters:
- values- property values
- ddcName- ddc name
- Returns:
- ResultProperties instance
 
 - 
getFromPropertyListpublic static ResultProperties getFromPropertyList(com.saperion.intf.SaPropertyValue[] values, java.lang.String ddcName, java.lang.String objectId, java.lang.String revisionId) throws SystemException Constructs a new ResultProperties object containing the supplied properties. ObjectID and revisionId are set separately even if they are included in values.- Parameters:
- values- property values
- ddcName- ddc name
- objectId- object id
- revisionId- revision id
- Returns:
- ResultProperties instance
- Throws:
- SystemException- when setting a property value failed
 
 - 
getTypepublic ResultProperties.Type getType() - Returns:
- the type
 
 - 
getCommandspublic final com.saperion.intf.wf.CommandInfo[] getCommands() - Returns:
- the commands
 
 - 
setCommandspublic final void setCommands(com.saperion.intf.wf.CommandInfo[] cmd) - Parameters:
- cmd- the commands to set
 
 - 
getTaskInfopublic final com.saperion.intf.wf.TaskInfo getTaskInfo() - Returns:
- the taskInfo
 
 - 
setTaskInfopublic final void setTaskInfo(com.saperion.intf.wf.TaskInfo info) - Parameters:
- info- the taskInfo to set, attachmentId will be extracted
 
 - 
canEditpublic boolean canEdit() - Returns:
- Can edit
- See Also:
- SaStatusInfo.canEdit()
 
 - 
canIndexpublic boolean canIndex() - Returns:
- Can index
- See Also:
- SaStatusInfo.canIndex()
 
 - 
canPrintpublic boolean canPrint() - Returns:
- Can print
- See Also:
- SaStatusInfo.canPrint()
 
 - 
canSavepublic boolean canSave() - Returns:
- Can save
- See Also:
- SaStatusInfo.canSave()
 
 - 
hasObjectspublic boolean hasObjects() - Returns:
- Has objects
- See Also:
- SaStatusInfo.hasObjects()
 
 - 
hasRealACLpublic boolean hasRealACL() - Returns:
- Has real acl
- See Also:
- SaStatusInfo.hasRealACL()
 
 - 
hasWorkflowspublic boolean hasWorkflows() Returns true if the document has active or finished workflows.- Returns:
- Has workflow
- See Also:
- SaStatusInfo.hasWorkflows()
 
 - 
hasActiveWorkflowspublic boolean hasActiveWorkflows() Returns true if the document has active workflows.- Returns:
- has active workflows
 
 - 
isCheckedInpublic boolean isCheckedIn() - Returns:
- Is checked in
- See Also:
- SaStatusInfo.isCheckedIn()
 
 - 
isDeletedpublic boolean isDeleted() - Returns:
- Is deleted
- See Also:
- SaStatusInfo.isDeleted()
 
 - 
isLinkpublic boolean isLink() - Returns:
- Is link
- See Also:
- SaStatusInfo.isLink()
 
 - 
isRevisedpublic boolean isRevised() - Returns:
- Is revised
- See Also:
- SaStatusInfo.isRevised()
 
 - 
canStreampublic boolean canStream() - Returns:
- document can be streamed
- See Also:
- DocumentDatabaseMetaInfo.canStream()
 
 - 
isOfflineConflictpublic boolean isOfflineConflict() - Returns:
- document is in offline-conflict-state
- See Also:
- DocumentDatabaseMetaInfo.isOfflineConflict()
 
 - 
isSignedpublic boolean isSigned() - Returns:
- document is signed
- See Also:
- DocumentDatabaseMetaInfo.isSigned()
 
 - 
getCheckoutInfospublic java.util.List<com.saperion.rmi.SaCheckoutInfo> getCheckoutInfos() - Returns:
- Checkout information
- See Also:
- DocumentDatabaseMetaInfo.getCheckoutInfos()
 
 - 
isCheckedoutpublic boolean isCheckedout() - Returns:
- Is checked out
- See Also:
- DocumentDatabaseMetaInfo.isCheckedout()
 
 - 
getDdcNamepublic java.lang.String getDdcName() - Returns:
- DDC name or null if not set
 
 - 
isLitigationHoldpublic boolean isLitigationHold() - Returns:
- litigation hold state
 
 - 
isInRetentionpublic boolean isInRetention() - Returns:
- retention state
 
 - 
isInDispositionpublic boolean isInDisposition() - Returns:
- disposition state
 
 - 
isFilingSupportedpublic boolean isFilingSupported() - Returns:
- true if the represented document's ddc supports filing
 
 - 
getDocumentDescriptionpublic java.lang.String getDocumentDescription() Returns the string describing the document as set in SYSDOCUMENTDESCRIPTION field in ddc. If the field is not available or if the value is emtpy, an empty string is returned.- Returns:
- string describing the document
 
 - 
hasDocumentDescriptionpublic boolean hasDocumentDescription() - Returns:
- true, if the document-description is available
 
 - 
isReadOnlyLookupItempublic boolean isReadOnlyLookupItem() Checks if this is an item from a lookup table that can be displayed only.- Returns:
- true, if read-only
 
 - 
setReadOnlyLookupItempublic void setReadOnlyLookupItem(boolean readOnlyLookupItem) Sets the read only lookup item property.- Parameters:
- readOnlyLookupItem- value
 
 
- 
 
-