Modifier and Type | Method and Description |
---|---|
ItemAnalyzeResult |
analyzeItems(Collection<ResultListItem> items,
boolean useAttachment)
Analyze the items.
|
WorkflowItemAnalyzeResult |
analyzeWorkflowItems(Collection<ResultListItem> items)
Analyze the workflow items.
|
void |
clearLastResult()
Clears the result of the last query.
|
boolean |
doDeleteDocument(DocumentId id)
Delete document.
|
boolean |
doDeleteDocument(DocumentId id,
boolean finalDelete)
Delete document.
|
void |
doUndelet(ResultProperties row,
String comment)
Undeleted the document.
|
void |
editStructure(DocumentId documentId)
Shows the dialog to edit a document's structure.
|
com.saperion.connector.wf.WorkflowResult |
executeWfCommand(WorkflowActionBean action)
Executes the given workflow action.
|
void |
export()
Exports the current query result.
|
void |
export(Map<String,String> columnsToExport,
ResultSetView.ExportFormat format,
String filename)
Exports the current query result.
|
DocumentId |
fixVersion(DocumentId documentId)
Fill value for revision ID in document ID if not set.
|
List<String> |
getAclNames(DocumentId documentId)
Returns the ACLs of a document.
|
List<String> |
getAllAcls()
Returns a list of all ACL names.
|
List<com.saperion.intf.wf.CommentInfo> |
getComments(com.saperion.intf.wf.TaskInfo taskInfo)
Retrieves the comments for the specified task.
|
ResultsetConfiguration |
getConfig()
Gets the config.
|
com.saperion.intf.DDC |
getDdc(String ddcName)
Returns the DDC with the specified name.
|
ResultProperties |
getDocProperties(DocumentId id)
Reads the properties for the given document.
|
ResultProperties |
getDocProperties(DocumentId id,
boolean isDeleted)
Reads the properties for the given document.
|
List<FolderId> |
getDocumentFolders(DocumentId documentId)
Retrieves the folders that contain the specified document.
|
ResultProperties |
getDocumentInfoFromArchive(DocumentId id,
boolean currentRevision) |
List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> |
getDocumentPages(DocumentId id,
boolean currentRevision)
Returns the amount of pages for the specified document.
|
DocumentVersionInfo |
getDocumentVersion(String versionId)
Returns the version information for the specified version ID.
|
List<String> |
getDocumentVersionIDs(DocumentId id)
Returns the version IDs for the specified document.
|
List<DocumentVersionInfo> |
getDocumentVersions(DocumentId id)
Retrieves the version information for a document.
|
Map<String,com.saperion.intf.SaFieldDescription> |
getFieldDescriptions(String ddc)
Returns a map of
|
String |
getFormDDC()
Gets the form ddc.
|
Set<Map.Entry<String,String>> |
getFullTextFields(String ddcName,
List<String> fullTextFields,
String hdoc)
Fetches values of Full text columns
|
List<String> |
getLastLaunched()
Gets the last launched.
|
ResultProperties |
getSelectedRow(int index)
Retrieves the row at the specific index.
|
com.saperion.intf.wf.WorkflowMember |
getSelectedUserTreeRoot(List<com.saperion.intf.wf.WorkflowMember> selectedMembers)
Gets the user tree root element with selected users as children.
|
com.saperion.intf.wf.WorkflowMember |
getUserTreeRoot(String filter)
Gets the user tree root element and its direct children.
|
boolean |
isAllowedToViewHistory(DocumentId docId) |
boolean |
isContainedInFolder()
Checks if the document is contained in one or more folders from current user or other users.
|
boolean |
isLockedForEditing(DocumentId id)
Checks if the document with the specified ID is locked for editing in this result set.
|
boolean |
isSelectionAllowed()
Checks, if the selection is allowed and not locked nor checked out.
|
String |
localizeString(String toLocalize)
Localizes a string using the localize table.
|
void |
removeFromFolder(DocumentId documentId,
Set<FolderId> folderIDs)
Removes the documents from the specified folder.
|
void |
saveLastLaunched(String lastName)
Save last launched.
|
void |
sendErrorMessageToView(LogMessage message)
Sends an error message to the view.
|
void |
sendLogonMessageToView(LogonEvent.LogonResult result,
String userName)
Sends a logon message to the view.
|
void |
setDocumentRead(ResultListItem item)
Sets the specified document's state to 'read'.
|
void |
setDocumentUnread(ResultListItem item)
Sets the specified document's state to 'unread'.
|
com.saperion.connector.wf.WorkflowResult |
startWorkflow(LaunchWorkflowBean launchBean)
Starts a business case.
|
void |
updateListItem(ResultListItem item)
Updated the specified listitem in the contained
ResultList as well as in the current result
stored in the QueryService . |
public ResultsetConfiguration getConfig()
public boolean isLockedForEditing(DocumentId id)
id
- ID of the document to checkpublic boolean doDeleteDocument(DocumentId id) throws NgcUiException, AuthenticationException
id
- Document IdNgcUiException
- when a system error occurs or document access error or user has no permissions to
access this document.AuthenticationException
- when the user logged off.public boolean doDeleteDocument(DocumentId id, boolean finalDelete) throws NgcUiException, AuthenticationException
id
- Document IdfinalDelete
- set to true if the document was marked as deleted before (sysindexstate 65002)NgcUiException
- when a system error occurs or document access error or user has no permissions to
access this document.AuthenticationException
- when the user logged off.public ResultProperties getDocProperties(DocumentId id) throws NgcUiException, AuthenticationException
id
- Document idNgcUiException
- when s system error occurred or user has no permissions to access this document.AuthenticationException
- when user is logged off.public ResultProperties getDocProperties(DocumentId id, boolean isDeleted) throws NgcUiException, AuthenticationException
id
- Document idisDeleted
- pass true if document is deletedNgcUiException
- when s system error occurred or user has no permissions to access this document.AuthenticationException
- when user is logged off.public ResultProperties getSelectedRow(int index)
index
- index of itempublic List<String> getAllAcls() throws NgcUiException, AuthenticationException
NgcUiException
- when system error occurs due to a query execution or user has no permissions to
execute this query.AuthenticationException
- when user is logged off.public List<String> getAclNames(DocumentId documentId) throws NgcUiException, AuthenticationException
documentId
- document idNgcUiException
- when system error occurs due to a query execution or user has no permissions to
execute this query.AuthenticationException
- when user is logged off.public com.saperion.connector.wf.WorkflowResult startWorkflow(LaunchWorkflowBean launchBean) throws NgcUiException
launchBean
- LaunchWorkflowBeanNgcUiException
- when workflow start failedpublic com.saperion.connector.wf.WorkflowResult executeWfCommand(WorkflowActionBean action) throws NgcUiException
action
- WorkflowActionBeanNgcUiException
- when workflow action failed.public com.saperion.intf.wf.WorkflowMember getUserTreeRoot(String filter) throws NgcUiException
filter
- filter stringNgcUiException
- when system error occurred or workflow exception.public com.saperion.intf.wf.WorkflowMember getSelectedUserTreeRoot(List<com.saperion.intf.wf.WorkflowMember> selectedMembers) throws NgcUiException
selectedMembers
- list of selected members.NgcUiException
- when system error occurred or workflow exception.public List<String> getLastLaunched() throws NgcUiException, AuthenticationException
NgcUiException
- when system error occurred or user has no permissions to execute this query.AuthenticationException
- when user is logged off.public void saveLastLaunched(String lastName) throws NgcUiException, AuthenticationException
lastName
- Last launched workflow nameNgcUiException
- when system error occurred or user has no permissions to access this document.AuthenticationException
- when user is logged off.public boolean isSelectionAllowed() throws NgcUiException, AuthenticationException
NgcUiException
- when system error occurred or user has no permissions to execute this query.AuthenticationException
- when user is logged off.public boolean isContainedInFolder() throws NgcUiException, AuthenticationException
NgcUiException
- when system error occurred or user has no permissions to execute this query.AuthenticationException
- when user is logged off.public List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> getDocumentPages(DocumentId id, boolean currentRevision) throws NgcUiException, AuthenticationException
id
- document id.currentRevision
- the current revisionNgcUiException
- when system error occurred or document-id cannot be found or user has no
permissions to execute this query.AuthenticationException
- when user is logged off.public List<FolderId> getDocumentFolders(DocumentId documentId) throws NgcUiException, AuthenticationException
documentId
- document's hdoc.NgcUiException
- when system error occurred or user has no permissions to execute this query.AuthenticationException
- when user is logged off.public ItemAnalyzeResult analyzeItems(Collection<ResultListItem> items, boolean useAttachment) throws NgcUiException, AuthenticationException
items
- ItemsuseAttachment
- if true, the attachments are analyzed in case of workflow itemsNgcUiException
- when system error occurred or document-id cannot be found or user has no
permissions to execute this query.AuthenticationException
- when user is logged off.public ResultProperties getDocumentInfoFromArchive(DocumentId id, boolean currentRevision) throws AuthenticationException, NgcUiException
id
- document's IDcurrentRevision
- whether to resolve current revision or notAuthenticationException
- re-logon requiredNgcUiException
- exception to be handled by viewpublic WorkflowItemAnalyzeResult analyzeWorkflowItems(Collection<ResultListItem> items) throws NgcUiException, AuthenticationException
items
- ItemsNgcUiException
- when system error occurred or document-id cannot be found or user has no
permissions to execute this query.AuthenticationException
- when user is logged off.public List<DocumentVersionInfo> getDocumentVersions(DocumentId id) throws NgcUiException, AuthenticationException
id
- document idNgcUiException
- Error occurred during executing query.AuthenticationException
- when user is logged off.public List<String> getDocumentVersionIDs(DocumentId id) throws NgcUiException, AuthenticationException
id
- document IDNgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic DocumentVersionInfo getDocumentVersion(String versionId) throws NgcUiException, AuthenticationException
versionId
- version IDNgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic Map<String,com.saperion.intf.SaFieldDescription> getFieldDescriptions(String ddc) throws NgcUiException
ddc
- The name of the DDC to get the SaFieldDescriptions of.NgcUiException
- if an error occurs.public void sendLogonMessageToView(LogonEvent.LogonResult result, String userName)
result
- logon resultuserName
- user namepublic List<com.saperion.intf.wf.CommentInfo> getComments(com.saperion.intf.wf.TaskInfo taskInfo) throws NgcUiException, AuthenticationException
taskInfo
- task infoNgcUiException
- when comments cannot be added due to a system error or due to a workflow
exception.AuthenticationException
- when user is logged off.public String localizeString(String toLocalize)
toLocalize
- string to localize.public String getFormDDC()
public void sendErrorMessageToView(LogMessage message)
message
- log messagepublic void removeFromFolder(DocumentId documentId, Set<FolderId> folderIDs) throws AuthenticationException, NgcUiException
documentId
- document IDfolderIDs
- the folder i dsAuthenticationException
- authentication exceptionNgcUiException
- the ngc ui exceptionpublic boolean isAllowedToViewHistory(DocumentId docId)
docId
- The id of the document in questionpublic void doUndelet(ResultProperties row, String comment) throws AuthenticationException, NgcUiException
row
- row representing the documentcomment
- comment for new revisionAuthenticationException
- re-logon requiredNgcUiException
- exception to be handled by viewpublic DocumentId fixVersion(DocumentId documentId) throws SystemException, AuthenticationException
documentId
- ID to fix revision ID for if requiredSystemException
- system error when resolving revision IDAuthenticationException
- re-logon required or not authorizedpublic void export() throws NgcUiException
NgcUiException
- exception to be handled by viewpublic void export(Map<String,String> columnsToExport, ResultSetView.ExportFormat format, String filename) throws NgcUiException
columnsToExport
- columns to be exported. The map contains the upper-case column names as in the database as keys
and the desired display-names of the columns as values.format
- the format to export tofilename
- the name of the resulting fileNgcUiException
- exception to be handled by viewpublic void setDocumentRead(ResultListItem item) throws NgcUiException, AuthenticationException
item
- item representing the documentNgcUiException
- Exception to be handled by viewAuthenticationException
- re-logon requiredpublic void setDocumentUnread(ResultListItem item) throws NgcUiException, AuthenticationException
item
- item representing the documentNgcUiException
- Exception to be handled by viewAuthenticationException
- re-logon requiredpublic void editStructure(DocumentId documentId) throws NgcUiException, AuthenticationException
documentId
- ID of the document to editNgcUiException
- Exception to be handled by viewAuthenticationException
- re-logon requiredpublic void clearLastResult()
public void updateListItem(ResultListItem item) throws NgcUiException, AuthenticationException
ResultList
as well as in the current result
stored in the QueryService
.item
- the item to be updatedNgcUiException
- exception to be handled by viewAuthenticationException
- re-logon requiredpublic com.saperion.intf.DDC getDdc(String ddcName) throws AuthenticationException, NgcUiException
ddcName
- the name of the ddcAuthenticationException
- re-logon requiredNgcUiException
- exception to be handled by viewpublic Set<Map.Entry<String,String>> getFullTextFields(String ddcName, List<String> fullTextFields, String hdoc) throws AuthenticationException, SystemException
ddcName
- name of the DDCfullTextFields
- List of fields which are of Text retrieval type.
Make sure to prefix SaConstants.FULL_TEXT_COLUMN_PREFIX
hdoc
- xhdoc of the documentAuthenticationException
SystemException
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.