org.openpermis
Class RoleDefinition

java.lang.Object
  extended by org.openpermis.RoleDefinition

public final class RoleDefinition
extends Object

Tuple consisting of a hierarchy and a name that describes a role.

Since:
0.3.0

Constructor Summary
RoleDefinition(String hierarchy, String name)
          Creates a role definition.
RoleDefinition(URI hierarchy, String name)
          Convenience constructor to create a role definition.
 
Method Summary
 boolean equals(Object object)
           
 String getHierarchy()
          Returns the hierarchy String.
 String getName()
          Returns the name String.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoleDefinition

public RoleDefinition(URI hierarchy,
                      String name)
Convenience constructor to create a role definition.

Parameters:
hierarchy - the URI of the hierarchy of the role definition, the string representation of the URI (URI.toString()) is chosen as hierarchy name, must not be null.
name - the role name, must not be null.
Since:
0.9.0

RoleDefinition

public RoleDefinition(String hierarchy,
                      String name)
Creates a role definition.

Parameters:
hierarchy - the hierarchy name, must not be null.
name - the role name, must not be null.
Since:
0.3.0
Method Detail

getName

public String getName()
Returns the name String.

Returns:
the name String.
Since:
0.3.0

getHierarchy

public String getHierarchy()
Returns the hierarchy String.

Returns:
the hierarchy String.
Since:
0.3.0

toString

public String toString()
Overrides:
toString in class Object
Since:
0.9.0

equals

public boolean equals(Object object)
Overrides:
equals in class Object
Since:
0.3.0

hashCode

public int hashCode()
Overrides:
hashCode in class Object
Since:
0.3.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:16:59
Copyright (c) 2002-2007 Ergon Informatik AG