org.apache.jetspeed.security.impl
Class RoleImpl

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

public class RoleImpl
extends Object
implements org.apache.jetspeed.security.Role

A role made of a Principal and the user Preferences.

Author:
David Le Strat

Field Summary
private  Preferences preferences
           
private  Principal rolePrincipal
           
 
Constructor Summary
RoleImpl()
          Default constructor.
RoleImpl(Principal rolePrincipal, Preferences preferences)
          Role constructor given a role principal and preferences.
 
Method Summary
 Preferences getPreferences()
           
 Principal getPrincipal()
           
 void setPreferences(Preferences preferences)
           
 void setPrincipal(Principal rolePrincipal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rolePrincipal

private Principal rolePrincipal

preferences

private Preferences preferences
Constructor Detail

RoleImpl

public RoleImpl()

Default constructor.


RoleImpl

public RoleImpl(Principal rolePrincipal,
                Preferences preferences)

Role constructor given a role principal and preferences.

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

getPrincipal

public Principal getPrincipal()
Specified by:
getPrincipal in interface org.apache.jetspeed.security.Role
See Also:
Role.getPrincipal()

setPrincipal

public void setPrincipal(Principal rolePrincipal)
Specified by:
setPrincipal in interface org.apache.jetspeed.security.Role
See Also:
Role.setPrincipal(java.security.Principal)

getPreferences

public Preferences getPreferences()
Specified by:
getPreferences in interface org.apache.jetspeed.security.Role
See Also:
Role.getPreferences()

setPreferences

public void setPreferences(Preferences preferences)
Specified by:
setPreferences in interface org.apache.jetspeed.security.Role
See Also:
Role.setPreferences(java.util.prefs.Preferences)


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