org.openpermis.subject.format
Class Decoder.DecoderEntry<T extends RoleAssignmentContext>

java.lang.Object
  extended by org.openpermis.subject.format.Decoder.DecoderEntry<T>
Enclosing interface:
Decoder<T extends RoleAssignmentContext>

public static final class Decoder.DecoderEntry<T extends RoleAssignmentContext>
extends Object

Contains a role assignment and the holder that holds it.

Since:
0.9.0

Constructor Summary
Decoder.DecoderEntry(URI identity, RoleAssignment<T> roleAssignment)
          Creates a decoder entry.
 
Method Summary
 RoleAssignment<T> getRoleAssignment()
          Returns the role assignment of this entry.
 boolean matches(URI identity)
          Returns true if identity matches the holder of this entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Decoder.DecoderEntry

public Decoder.DecoderEntry(URI identity,
                            RoleAssignment<T> roleAssignment)
Creates a decoder entry.

Parameters:
identity - the holder of the role assignment.
roleAssignment - the role assignment.
Since:
0.9.0
Method Detail

matches

public boolean matches(URI identity)
Returns true if identity matches the holder of this entry.

Parameters:
identity - the identity to match.
Returns:
true if identity equals the holder.
Since:
0.9.0

getRoleAssignment

public RoleAssignment<T> getRoleAssignment()
Returns the role assignment of this entry.

Returns:
RoleAssignment the role assignment.
Since:
0.9.0


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