Enum Class ManagerTarget

java.lang.Object
java.lang.Enum<ManagerTarget>
org.tasktide.core.manager.command.ManagerTarget
All Implemented Interfaces:
Serializable, Comparable<ManagerTarget>, Constable

public enum ManagerTarget extends Enum<ManagerTarget>
Enum to suport ManagerAction over specific TaskTideModel. Exception is the ManagerTask value which goes towards WorkItem
  • Enum Constant Details

  • Method Details

    • values

      public static ManagerTarget[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ManagerTarget valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • hasRepository

      public abstract boolean hasRepository()
      Method to denote whether a given ManagerTarget has a TaskTideRepository associated with it
      Returns:
      boolean
    • isManagerTarget

      public abstract boolean isManagerTarget(String query)
      Check if value matches query
      Parameters:
      query -
      Returns:
      boolean
    • isManagerTarget

      public abstract boolean isManagerTarget(ManagerTarget query)
      Check if value matches query
      Parameters:
      query -
      Returns:
      boolean
    • fetchModels

      public abstract List<TaskTideModel> fetchModels()
      Fetch
      Returns:
      List-TaskTideModel
    • indexOf

      public static int indexOf(String name)
      Retrieve index of query
      Parameters:
      name -
      Returns:
      int
    • hasQuery

      public static boolean hasQuery(String query)
      Check whether enum has query
      Parameters:
      query -
      Returns:
      boolean
    • get

      public static ManagerTarget get(String query)
      Map query to ManagerTarget
      Parameters:
      query -
      Returns:
      ManagerTarget
    • valuesString

      public static String valuesString()
      Represent enum as string
      Returns:
      String
    • withRepositories

      public static ManagerTarget[] withRepositories()
      Provides an array of ManagerTarget which have repositories associated with them
      Returns:
      Array-ManagerTarget