org.openpermis.editor.policy.configuration
Class TypeKey

java.lang.Object
  extended by org.openpermis.editor.policy.configuration.TypeKey

public final class TypeKey
extends Object

Creates a key for a type in a given scope.

For instance a type key can be used to create an object that uniquely identify an editor or a presenter for a domain object. In either case the type is the same, but the scope is different.

Since:
0.9.0

Constructor Summary
TypeKey(Class<?> scope, Class<?> type)
          Creates a new type key for the specified scope and type.
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
static TypeKey typekey(Class<?> scope, Class<?> type)
          Creates a type key for the specified scope and type.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeKey

public TypeKey(Class<?> scope,
               Class<?> type)
Creates a new type key for the specified scope and type.

Parameters:
scope - the scope for which to create the key.
type - the type for which to create a key.
Since:
0.9.0
Method Detail

typekey

public static final TypeKey typekey(Class<?> scope,
                                    Class<?> type)
Creates a type key for the specified scope and type.

Convenience method for static imports.

Parameters:
scope - the scope for which to create the key.
type - the type for which to create a key.
Since:
0.9.0

toString

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

hashCode

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

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
Since:
0.9.0


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