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 Details

  • Constructor Details

    • ApprovalsIndexFunction

      public ApprovalsIndexFunction(IObjectResolver objectResolver)
  • 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 interface com.polarion.subterra.index.config.IIndexingFunction
    • getApprovalStatusQuery

      public static String getApprovalStatusQuery(String statusId)
      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

      public static String getApprovalUserAndStatusQuery(String userId, String statusId)
      Returns a query for finding approvals, which contain the given user and status.
      Parameters:
      userId - the id of the user to create the query for
      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 and statusId