Class SchemaType


  • @SupportedAll
    public class SchemaType
    extends Object
    The class SchemaType defines the types of schema objects, and provides static constants for these schema objects. Currently defined schema objects are SchemaType.GLOBAL, SchemaType.ORGANIZATION, SchemaType.USER, SchemaType.POLICY and SchemaType.DYNAMIC . The usage of the respective schema types are defined along with their declaration.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static SchemaType DOMAIN
      The DOMAIN schema type defines attributes for a domain
      static SchemaType DYNAMIC
      The DYNAMIC schema type defines
      static SchemaType GLOBAL
      The GLOBAL schema type defines the service configuration information that independent of organizations, users and instances.
      static SchemaType GROUP
      The GROUP schema type defines attributes for a group
      static SchemaType ORGANIZATION
      The ORGANIZATION schema type defines the service configuration information that are organization dependent and could be configured differently for organizations.
      static SchemaType POLICY
      The POLICY schema type defines the service's privilege information that are service dependent.
      static SchemaType USER
      The User schema type defines the service configuration information that are user dependent.
    • Constructor Summary

      Constructors 
      Constructor Description
      SchemaType​(String type)  
    • Field Detail

      • GLOBAL

        public static final SchemaType GLOBAL
        The GLOBAL schema type defines the service configuration information that independent of organizations, users and instances. Hence, the service configuration data defined using this schema type will the same across organizations and users. An example could be encryption algorithms used by the service for its internal communication. Such configuration data can be changed only by super administrator.
      • ORGANIZATION

        public static final SchemaType ORGANIZATION
        The ORGANIZATION schema type defines the service configuration information that are organization dependent and could be configured differently for organizations. Usually these configuration data can be modified by organization administrators. An example would be log level of a service.
      • USER

        public static final SchemaType USER
        The User schema type defines the service configuration information that are user dependent. An example would user's mail server or mail quota. Usually these configuration data can be modified by users and/or administrators.
      • POLICY

        public static final SchemaType POLICY
        The POLICY schema type defines the service's privilege information that are service dependent.
      • DYNAMIC

        public static final SchemaType DYNAMIC
        The DYNAMIC schema type defines
      • GROUP

        public static final SchemaType GROUP
        The GROUP schema type defines attributes for a group
      • DOMAIN

        public static final SchemaType DOMAIN
        The DOMAIN schema type defines attributes for a domain
    • Constructor Detail

      • SchemaType

        public SchemaType​(String type)
    • Method Detail

      • toString

        public String toString()
        The method returns the string representation of the schema type.
        Overrides:
        toString in class Object
        Returns:
        String string representation of schema type
      • equals

        public boolean equals​(Object schemaType)
        Method to check if two schema types are equal.
        Overrides:
        equals in class Object
        Parameters:
        schemaType - the reference object with which to compare
        Returns:
        true if the objects are same; false otherwise
      • hashCode

        public int hashCode()
        Returns the hash code of the object.
        Overrides:
        hashCode in class Object
        Returns:
        the hash code of the object.
      • getType

        public String getType()