org.apache.jetspeed.security
Interface Role

All Known Implementing Classes:
RoleImpl

public interface Role

A role made of a RolePrincipal and the role Preferences.

Author:
David Le Strat

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.
 

Method Detail

getPrincipal

java.security.Principal getPrincipal()

Getter for the role Principal.

Returns:
The Principal.

setPrincipal

void setPrincipal(java.security.Principal rolePrincipal)

Setter for the role RolePrincipal.

Parameters:
rolePrincipal - The Principal.

getPreferences

java.util.prefs.Preferences getPreferences()

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

Returns:
The Preferences.

setPreferences

void setPreferences(java.util.prefs.Preferences preferences)

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

Parameters:
preferences - The Preferences.


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