Package com.saperion.ngc.resultset
Class ItemAnalyzer
java.lang.Object
com.saperion.ngc.resultset.ItemAnalyzer
Utility class used to analyze an item that represents a document.
-
Constructor Summary
ConstructorsConstructorDescriptionItemAnalyzer(DocumentService documentService, SettingsService settingsService) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionanalyzeItem(ResultProperties props) Analyze the item.analyzeItem(ResultProperties props, DocumentId docId) Analyze the item.analyzeItem(ResultProperties props, jakarta.servlet.http.HttpSession session) Analyze the item.analyzeItems(List<ResultProperties> items) Analyzes the items.
-
Constructor Details
-
ItemAnalyzer
Constructor.- Parameters:
documentService- document servicesettingsService- settings service
-
-
Method Details
-
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, jakarta.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.docIdattribute can be used ifpropsdoes 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(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
-