org.apache.jetspeed.security.impl
Class RoleImpl

java.lang.Object
  extended by org.apache.jetspeed.security.impl.RoleImpl
All Implemented Interfaces:
Role

public class RoleImpl
extends java.lang.Object
implements Role

A role made of a Principal and the user Preferences.

Author:
David Le Strat

Constructor Summary
RoleImpl()
          Default constructor.
RoleImpl(java.security.Principal rolePrincipal, java.util.prefs.Preferences preferences)
          Role constructor given a role principal and preferences.
 
Method Summary
 java.util.prefs.Preferences getPreferences()
          Getter for the role Preferences node, providing access to the role preferences properties.
 java.security.Principal getPrincipal()
          Getter for the role Principal.
 void setPreferences(java.util.prefs.Preferences preferences)
          Setter for the role Preferences node, providing access to the role preferences properties.
 void setPrincipal(java.security.Principal rolePrincipal)
          Setter for the role RolePrincipal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleImpl

public RoleImpl()

Default constructor.


RoleImpl

public RoleImpl(java.security.Principal rolePrincipal,
                java.util.prefs.Preferences preferences)

Role constructor given a role principal and preferences.

Parameters:
rolePrincipal - The role principal.
preferences - The preferences.
Method Detail

getPrincipal

public java.security.Principal getPrincipal()
Description copied from interface: Role

Getter for the role Principal.

Specified by:
getPrincipal in interface Role
Returns:
The Principal.
See Also:
Role.getPrincipal()

setPrincipal

public void setPrincipal(java.security.Principal rolePrincipal)
Description copied from interface: Role

Setter for the role RolePrincipal.

Specified by:
setPrincipal in interface Role
Parameters:
rolePrincipal - The Principal.
See Also:
Role.setPrincipal(java.security.Principal)

getPreferences

public java.util.prefs.Preferences getPreferences()
Description copied from interface: Role

Getter for the role Preferences node, providing access to the role preferences properties.

Specified by:
getPreferences in interface Role
Returns:
The Preferences.
See Also:
Role.getPreferences()

setPreferences

public void setPreferences(java.util.prefs.Preferences preferences)
Description copied from interface: Role

Setter for the role Preferences node, providing access to the role preferences properties.

Specified by:
setPreferences in interface Role
Parameters:
preferences - The Preferences.
See Also:
Role.setPreferences(java.util.prefs.Preferences)


Copyright © 1999-2009 Apache Software Foundation. All Rights Reserved.