org.apache.cocoon.components.repository.helpers
Class Principal

java.lang.Object
  extended by org.apache.cocoon.components.repository.helpers.Principal

public class Principal
extends Object

A Principal class to be used with a repository implementation.


Constructor Summary
Principal(String name, String group, Set roles)
          creates a Principal
 
Method Summary
 String getGroup()
          get the group name of the principal
 String getName()
          get the name of the principal
 Set getRoles()
          get the roles of the principal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Principal

public Principal(String name,
                 String group,
                 Set roles)
creates a Principal

Parameters:
name - the name of the principal.
group - the group of the principal.
roles - a Set containing the roles of the principal
Method Detail

getName

public String getName()
get the name of the principal

Returns:
the name of the principal.

getGroup

public String getGroup()
get the group name of the principal

Returns:
the group name of the principal.

getRoles

public Set getRoles()
get the roles of the principal

Returns:
A Set containing the roles of the principal.


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.