Class StatusCategoryResolver

java.lang.Object
com.atlassian.jira.jql.resolver.StatusCategoryResolver
All Implemented Interfaces:
NameResolver<StatusCategory>

public class StatusCategoryResolver extends Object implements NameResolver<StatusCategory>
Resolves Status Category objects
Since:
v6.2
  • Constructor Details

  • Method Details

    • getStatusCategories

      public Set<StatusCategory> getStatusCategories(Collection<QueryLiteral> queryLiterals)
    • getStatusCategory

      public io.atlassian.fugue.Option<StatusCategory> getStatusCategory(QueryLiteral rawValue)
    • forId

      public io.atlassian.fugue.Option<StatusCategory> forId(Long id)
    • forKey

      public io.atlassian.fugue.Option<StatusCategory> forKey(String key)
    • forName

      public io.atlassian.fugue.Option<StatusCategory> forName(String name)
    • getIdsFromName

      public List<String> getIdsFromName(String name)
      Description copied from interface: NameResolver
      Returns the list of ids of T objects that have the given name. Names may be unique but often are not, hence the List return type.
      Specified by:
      getIdsFromName in interface NameResolver<StatusCategory>
      Parameters:
      name - the name of the T.
      Returns:
      all IDs of objects matching the name or the empty list on name lookup failure.
    • nameExists

      public boolean nameExists(String name)
      Description copied from interface: NameResolver
      Returns true if the name would resolve to a domain object.
      Specified by:
      nameExists in interface NameResolver<StatusCategory>
      Parameters:
      name - the addressable name.
      Returns:
      true only if the name resolves to a domain object in the database.
    • idExists

      public boolean idExists(Long id)
      Description copied from interface: NameResolver
      Returns true if the id would resolve to a domain object.
      Specified by:
      idExists in interface NameResolver<StatusCategory>
      Parameters:
      id - the primary key.
      Returns:
      true only if the id resolves to a domain object in the database.
    • get

      public StatusCategory get(Long id)
      Description copied from interface: NameResolver
      Get by id.
      Specified by:
      get in interface NameResolver<StatusCategory>
      Parameters:
      id - the id.
      Returns:
      the domain object or null on lookup failure.
    • getAll

      @Nonnull public Collection<StatusCategory> getAll()
      Description copied from interface: NameResolver
      Gets all domain objects of this type in the underlying database. Note that calling this may not be a good idea for some domain object types.
      Specified by:
      getAll in interface NameResolver<StatusCategory>
      Returns:
      all objects of the configured type in the database (possibly empty, never null).