Package com.polarion.alm.tracker
Class ApprovalsIndexFunction
java.lang.Object
com.polarion.alm.tracker.ApprovalsIndexFunction
- All Implemented Interfaces:
com.polarion.subterra.index.config.IIndexingFunction
public class ApprovalsIndexFunction
extends Object
implements com.polarion.subterra.index.config.IIndexingFunction
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getApprovalStatusQuery
(String statusId) Returns a query for finding approvals with the given status.static String
getApprovalUserAndStatusQuery
(String userId, String statusId) Returns a query for finding approvals, which contain the given user and status.String[]
getIndexingData
(com.polarion.subterra.base.data.object.IDataObject object, String fieldName, com.polarion.subterra.index.config.IFieldAttributes attribs)
-
Field Details
-
INDEX_SEPARATOR
- See Also:
-
INDEX_FULL
- See Also:
-
-
Constructor Details
-
ApprovalsIndexFunction
-
-
Method Details
-
getIndexingData
@NotNull public String[] getIndexingData(@NotNull com.polarion.subterra.base.data.object.IDataObject object, @NotNull String fieldName, @NotNull com.polarion.subterra.index.config.IFieldAttributes attribs) - Specified by:
getIndexingData
in interfacecom.polarion.subterra.index.config.IIndexingFunction
-
getApprovalStatusQuery
Returns a query for finding approvals with the given status.- Parameters:
statusId
- the id of the status to create the query for- Returns:
- the data part of the query for finding approvals, which contain the given
userId
-
getApprovalUserAndStatusQuery
Returns a query for finding approvals, which contain the given user and status.- Parameters:
userId
- the id of the user to create the query forstatusId
- the id of the status to create the query for- Returns:
- the data part of the query for finding approvals, which contain the given
userId
andstatusId
-