Enum Class AttributeDefScopeType

java.lang.Object
java.lang.Enum<AttributeDefScopeType>
edu.internet2.middleware.grouper.attr.AttributeDefScopeType
All Implemented Interfaces:
Serializable, Comparable<AttributeDefScopeType>, Constable

public enum AttributeDefScopeType extends Enum<AttributeDefScopeType>
type of scope, like
  • Enum Constant Details

    • sourceId

      public static final AttributeDefScopeType sourceId
      for member type attributes, filter on sourceId (none means allow all)
    • attributeDefNameIdAssigned

      public static final AttributeDefScopeType attributeDefNameIdAssigned
      this attribute can be assigned only if another attribute def name id is assigned
    • inStem

      public static final AttributeDefScopeType inStem
      stemId of the stem the object needs to be in for this attribute to be assigned
    • nameLike

      public static final AttributeDefScopeType nameLike
      matching generally on namepsace names, its a like string in DB. Can be stem or substem
    • nameEquals

      public static final AttributeDefScopeType nameEquals
      matching exact name
    • idEquals

      public static final AttributeDefScopeType idEquals
      matching exact id
  • Method Details

    • values

      public static AttributeDefScopeType[] 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 AttributeDefScopeType 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
    • allowedAssignment

      public abstract boolean allowedAssignment(AttributeDefScope attributeDefScope, AttributeAssignable attributeAssignable, AttributeDef attributeDef)
      Parameters:
      attributeDefScope -
      attributeAssignable -
      attributeDef -
      Returns:
      true if allowed, false if not allowed
    • valueOfIgnoreCase

      public static AttributeDefScopeType valueOfIgnoreCase(String string, boolean exceptionOnNull)
      do a case-insensitive matching
      Parameters:
      string -
      exceptionOnNull - will not allow null or blank entries
      Returns:
      the enum or null or exception if not found