org.xmlecho.palomar.security
Interface Group


public interface Group

This is the Group interface of the Security package. The interface may be used for getting group-related security information. The interface may also be used to update the group information.


Method Summary
 User[] getGroupUsers()
           
 int getIntID()
           
 java.lang.String getName()
           
 boolean isAdministrator()
          test if this group is the administrator group for a given resource
 void setName(java.lang.String name)
          set the name of the group
 

Method Detail

getIntID

public int getIntID()
Returns:
the group's integer ID value

getName

public java.lang.String getName()
Returns:
the group's name

getGroupUsers

public User[] getGroupUsers()
Returns:
all the users that belong to this group

setName

public void setName(java.lang.String name)
             throws java.lang.Exception
set the name of the group

Parameters:
name - the new name for the group
Returns:
the old group name, or empty string if the group didn't hava a name, or null if permission denied.
Throws:
java.lang.Exception

isAdministrator

public boolean isAdministrator()
test if this group is the administrator group for a given resource

Returns:
true if the group is the Administrator, false otherwise.