com.sun.identity.sm
Class SchemaType

java.lang.Object
  |
  +--com.sun.identity.sm.SchemaType

public class SchemaType
extends java.lang.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
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
SchemaType(java.lang.String type)
           
 
Method Summary
 boolean equals(java.lang.Object schemaType)
          Method to check if two schema types are equal.
 java.lang.String getType()
           
 int hashCode()
          Returns the hash code of the object.
 java.lang.String toString()
          The method returns the string representation of the schema type.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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(java.lang.String type)
Method Detail

toString

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

equals

public boolean equals(java.lang.Object schemaType)
Method to check if two schema types are equal.
Overrides:
equals in class java.lang.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 java.lang.Object
Returns:
the hash code of the object.

getType

public java.lang.String getType()


Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.