com.sun.identity.idm
Class IdType

java.lang.Object
  extended bycom.sun.identity.idm.IdType

public class IdType
extends java.lang.Object

The class IdType defines the types of supported identities, and provides static constants for these identities. Currently defined identities are IdType.USER, IdType.ROLE, IdType.GROUP and IdType.AGENT . The usage of the respective types are defined along with their declaration.


Field Summary
static IdType AGENT
          Identity type of AGENT
static IdType FILTEREDROLE
          Identity type of filter role.
static IdType GROUP
          Identity type of GROUP
static IdType REALM
           
static IdType ROLE
          Identity type of ROLE
static IdType USER
          Identity type of USER
 
Method Summary
 java.util.Set canAddMembers()
          Returns a set of types of identities that this type can add as members.
 java.util.Set canBeMemberOf()
          Returns a set of types of identities that this type can be a member of.
 java.util.Set canHaveMembers()
          Returns a set of types of identities this type can have as its' members.
 boolean equals(java.lang.Object type)
           
 java.lang.String getName()
          Returns the name of this type, for example user for type User.
 int hashCode()
          Returns the hash code of the object
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

USER

public static final IdType USER
Identity type of USER


ROLE

public static final IdType ROLE
Identity type of ROLE


GROUP

public static final IdType GROUP
Identity type of GROUP


AGENT

public static final IdType AGENT
Identity type of AGENT


FILTEREDROLE

public static final IdType FILTEREDROLE
Identity type of filter role.


REALM

public static final IdType REALM
Method Detail

equals

public boolean equals(java.lang.Object type)

toString

public java.lang.String toString()

hashCode

public int hashCode()
Returns the hash code of the object


getName

public java.lang.String getName()
Returns the name of this type, for example user for type User.

Returns:
Name of the this type.

canHaveMembers

public java.util.Set canHaveMembers()
Returns a set of types of identities this type can have as its' members.

Returns:
Set of IdType which can be members of this identity type.

canBeMemberOf

public java.util.Set canBeMemberOf()
Returns a set of types of identities that this type can be a member of.

Returns:
Set of IdType.

canAddMembers

public java.util.Set canAddMembers()
Returns a set of types of identities that this type can add as members.

Returns:
Set of IdType.


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