Package com.saperion.ngc.resultset
Interface ResultListItem
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DraggableListItem
Represents an item in the
ResultList of a ResultSetView.-
Method Summary
Modifier and TypeMethodDescriptionIf this is a workflow-item, this method returns the ID of the attached document.Returns theResultSetViewthat contains this item.Returns the name of the DDC this item belongs to.Returns the ID that identifies the document represented by this ResultListItem.intgetIndex()Returns the index of this item.intReturns the index of this item in the list like it was returned from the query.booleanReturns true if this item represents any kind of folder.booleanReturns true if this item is selected in the list.booleanisUnread()Returns true if this item was not yet read.booleanReturns true if this item is contained in a workflow-inbox.voidsetFocus(boolean focus) Sets or removes the focus on this item.voidsetRead()Marks this item as read.voidsetSelected(boolean selected) Selects or deselects this item.voidMarks this item as unread.
-
Method Details
-
getAttachmentId
DocumentId getAttachmentId()If this is a workflow-item, this method returns the ID of the attached document. If this is not a workflow-item, this method returns null.- Returns:
- ID of the attachment or null if this is not a workflow-item
-
getDocumentId
DocumentId getDocumentId()Returns the ID that identifies the document represented by this ResultListItem.- Returns:
- the ID of the document represented by this ResultListItem
-
getOriginalIndex
int getOriginalIndex()Returns the index of this item in the list like it was returned from the query. This index does not change when the list gets sorted.- Returns:
- original index of this item
-
getIndex
int getIndex()Returns the index of this item. This index changes when the list gets sorted.- Returns:
- current index of this item
-
getCorrespondingView
ResultSetView getCorrespondingView()Returns theResultSetViewthat contains this item.- Returns:
- corresponding
ResultSetView. Never null.
-
getDdcName
String getDdcName()Returns the name of the DDC this item belongs to.- Returns:
- DDC name
-
isFolderItem
boolean isFolderItem()Returns true if this item represents any kind of folder.- Returns:
- true if this item represents a folder
-
isWorkflowItem
boolean isWorkflowItem()Returns true if this item is contained in a workflow-inbox.- Returns:
- true if this is a workflow-item
-
isUnread
boolean isUnread()Returns true if this item was not yet read.- Returns:
- true if unread
-
setRead
void setRead()Marks this item as read. -
setUnread
void setUnread()Marks this item as unread. -
setFocus
void setFocus(boolean focus) Sets or removes the focus on this item.- Parameters:
focus- true to focus
-
isSelected
boolean isSelected()Returns true if this item is selected in the list.- Returns:
- true if selected
-
setSelected
void setSelected(boolean selected) Selects or deselects this item.- Parameters:
selected- true to select this item
-