org.apache.jetspeed.security.impl
Class GroupImpl

java.lang.Object
  extended by org.apache.jetspeed.security.impl.GroupImpl
All Implemented Interfaces:
Group

public class GroupImpl
extends java.lang.Object
implements Group

A group made of a GroupPrincipal and the user Preferences.

Author:
David Le Strat

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

Constructor Detail

GroupImpl

public GroupImpl()

Default constructor.


GroupImpl

public GroupImpl(java.security.Principal groupPrincipal,
                 java.util.prefs.Preferences preferences)

Group constructor given a group principal and preferences.

Parameters:
groupPrincipal - The group principal.
preferences - The preferences.
Method Detail

getPrincipal

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

Getter for the group Principal.

Specified by:
getPrincipal in interface Group
Returns:
The GroupPrincipal.
See Also:
Group.getPrincipal()

setPrincipal

public void setPrincipal(java.security.Principal groupPrincipal)
Description copied from interface: Group

Setter for the group Principal.

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

getPreferences

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

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

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

setPreferences

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

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

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


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