Class SavedQuery

java.lang.Object
com.polarion.alm.tracker.SavedQuery

public class SavedQuery extends Object
  • Field Details

  • Constructor Details

    • SavedQuery

      public SavedQuery()
    • SavedQuery

      public SavedQuery(int scope, @NotNull String name, @NotNull String query)
    • SavedQuery

      public SavedQuery(int scope, @NotNull String name, @NotNull String query, boolean isDefault)
      Since:
      3.10.0
  • Method Details

    • create

      @NotNull public static SavedQuery.Builder create()
      Since:
      3.24.10
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getUniqueId

      @NotNull public String getUniqueId(@Nullable String projectId)
      Returns a unique identifier of the saved query.
      Parameters:
      projectId - the ID of the project. Can be null if the scope of the query is not project-specific.
      Returns:
      a string representing the unique identifier of the saved query. The format is "scope/projectId/queryId" where scope is either "global", "project", or "user", and the projectId is omitted if the query is not project-specific.
      Since:
      3.24.10
    • getCreated

      @Nullable public String getCreated()
      Since:
      3.24.10
    • getUpdated

      @Nullable public String getUpdated()
      Since:
      3.24.10
    • getCreatedBy

      @Nullable public String getCreatedBy()
      Since:
      3.24.10
    • getUpdatedBy

      @Nullable public String getUpdatedBy()
      Since:
      3.24.10
    • setUpdated

      public void setUpdated(@Nullable String updated)
      Since:
      3.24.10
    • setUpdatedBy

      public void setUpdatedBy(@Nullable String updatedBy)
      Since:
      3.24.10
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object