Package com.saperion.ngc.resultset
Class ItemAnalyzer
- java.lang.Object
-
- com.saperion.ngc.resultset.ItemAnalyzer
-
public class ItemAnalyzer extends java.lang.Object
Utility class used to analyze an item that represents a document.
-
-
Constructor Summary
Constructors Constructor Description ItemAnalyzer(DocumentService documentService, SettingsService settingsService)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemAnalyzeResult
analyzeItem(ResultProperties props)
Analyze the item.ItemAnalyzeResult
analyzeItem(ResultProperties props, DocumentId docId)
Analyze the item.ItemAnalyzeResult
analyzeItem(ResultProperties props, javax.servlet.http.HttpSession session)
Analyze the item.ItemAnalyzeResult
analyzeItems(java.util.List<ResultProperties> items)
Analyzes the items.
-
-
-
Constructor Detail
-
ItemAnalyzer
public ItemAnalyzer(DocumentService documentService, SettingsService settingsService)
Constructor.- Parameters:
documentService
- document servicesettingsService
- settings service
-
-
Method Detail
-
analyzeItem
public ItemAnalyzeResult analyzeItem(ResultProperties props) throws SystemException, AuthenticationException, DocumentIdentificationException
Analyze the item.- Parameters:
props
- Properties- Returns:
- Analyze result
- Throws:
DocumentIdentificationException
- document identification exceptionAuthenticationException
- authentication exceptionSystemException
- system exception
-
analyzeItem
public ItemAnalyzeResult analyzeItem(ResultProperties props, javax.servlet.http.HttpSession session) throws SystemException, AuthenticationException, DocumentIdentificationException
Analyze the item.- Parameters:
props
- Propertiessession
- HttpSession- Returns:
- Analyze result
- Throws:
DocumentIdentificationException
- document identification exceptionAuthenticationException
- authentication exceptionSystemException
- system exception
-
analyzeItem
public ItemAnalyzeResult analyzeItem(ResultProperties props, DocumentId docId) throws SystemException, AuthenticationException, DocumentIdentificationException
Analyze the item.docId
attribute can be used ifprops
does not contain a DocumentId with all required information or if the access rights of another document need to be checked (e.g. for workflow items).- Parameters:
props
- PropertiesdocId
- Document id- Returns:
- Analyze result
- Throws:
DocumentIdentificationException
- document identification exceptionAuthenticationException
- authentication exceptionSystemException
- system exception
-
analyzeItems
public ItemAnalyzeResult analyzeItems(java.util.List<ResultProperties> items) throws DocumentIdentificationException, SystemException, AuthenticationException
Analyzes the items.- Parameters:
items
- items- Returns:
- Analyze result
- Throws:
DocumentIdentificationException
- document identification exceptionSystemException
- system exceptionAuthenticationException
- authentication exception
-
-