info.magnolia.cms.security
Interface Group

All Superinterfaces:
Serializable
All Known Implementing Classes:
MgnlGroup

public interface Group
extends Serializable

A user group. Groups are assigned to users and can have sub groups.

Author:
Sameer Charles $Id:Group.java 9391 2007-05-11 15:48:02Z scharles $

Method Summary
 void addGroup(String groupName)
          Deprecated. use manager instead
 void addRole(String roleName)
          Deprecated. use manager instead
 Collection<String> getAllGroups()
          Get all groups assigned to this group, collected recursively from subgroups.
 Collection<String> getGroups()
          Get groups that are directly assigned to group.
 String getId()
          Gets identifier of the group.
 String getName()
           
 String getProperty(String propertyName)
          Gets an arbitrary property from this group.
 Collection<String> getRoles()
          Get roles that are directly assigned to group.
 boolean hasRole(String roleName)
           
 void removeGroup(String groupName)
          Deprecated. use manager instead
 void removeRole(String roleName)
          Deprecated. use manager instead
 void setProperty(String propertyName, String value)
          Sets an arbitrary property for this group.
 

Method Detail

getName

String getName()

addRole

@Deprecated
void addRole(String roleName)
             throws UnsupportedOperationException,
                    AccessDeniedException
Deprecated. use manager instead

Throws:
UnsupportedOperationException
AccessDeniedException

addGroup

@Deprecated
void addGroup(String groupName)
              throws UnsupportedOperationException,
                     AccessDeniedException
Deprecated. use manager instead

Throws:
UnsupportedOperationException
AccessDeniedException

removeRole

@Deprecated
void removeRole(String roleName)
                throws UnsupportedOperationException,
                       AccessDeniedException
Deprecated. use manager instead

Throws:
UnsupportedOperationException
AccessDeniedException

removeGroup

@Deprecated
void removeGroup(String groupName)
                 throws UnsupportedOperationException,
                        AccessDeniedException
Deprecated. use manager instead

Throws:
UnsupportedOperationException
AccessDeniedException

hasRole

boolean hasRole(String roleName)
                throws UnsupportedOperationException,
                       AccessDeniedException
Throws:
UnsupportedOperationException
AccessDeniedException

getProperty

String getProperty(String propertyName)
Gets an arbitrary property from this group.


setProperty

void setProperty(String propertyName,
                 String value)
Sets an arbitrary property for this group.


getGroups

Collection<String> getGroups()
Get groups that are directly assigned to group.


getAllGroups

Collection<String> getAllGroups()
Get all groups assigned to this group, collected recursively from subgroups.


getRoles

Collection<String> getRoles()
Get roles that are directly assigned to group.


getId

String getId()
Gets identifier of the group.



Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.