org.apache.jetspeed.security.impl
Class RoleImpl
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rolePrincipal
private Principal rolePrincipal
preferences
private Preferences preferences
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.
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.