Enum MutabilityType

  • All Implemented Interfaces:
    Serializable, Comparable<MutabilityType>

    public enum MutabilityType
    extends Enum<MutabilityType>
    Enumerates the rules around which entities inherited from a Catalog may be modified when inherited. This comes into play when assigning catalogs to Applications or as parents of other catalogs. The basic types are REFERENCE and CUSTOMIZABLE.

    When a new application is created, it may be assigned individual Catalogs. The mutability type determines whether users of that new application are able to modify the existing entities of those assigned catalogs. Likewise, Catalogs may be assigned parents from which they inherit, and, likewise, the mutability type controls whether those inherited entities may be modified in the child catalog.

    It is important to note that when entities are modified on an application or in child catalog, those changes are local to that context and contexts that inherit from it. In a word, if 2 applications have the same customizable catalog assigned to each, changes made to the catalog on one application will not appear in the other. Likewise for catalogs assigned as parents of other catalogs. If the mutability type is CUSTOMIZABLE, then a child's edits are not visible in its siblings or its parent's contexts.

    Author:
    Jeff Fischer, Nathan Moore
    • Enum Constant Detail

      • REFERENCE

        public static final MutabilityType REFERENCE
        Indicates that inherited entities are read only, or immutable.
      • CUSTOMIZABLE

        public static final MutabilityType CUSTOMIZABLE
        Indicates that inherited entities are freely modifiable.
    • Method Detail

      • values

        public static MutabilityType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MutabilityType c : MutabilityType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MutabilityType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null