org.nees.authz
Interface CASAdminAdapter

All Superinterfaces:
CASAdapter
All Known Implementing Classes:
OGSICASAdapter, PseudoCASAdapter

public interface CASAdminAdapter
extends CASAdapter

Generic interface for administering group membership in CAS.


Field Summary
 
Fields inherited from interface org.nees.authz.CASAdapter
ALL_USERS_GROUP_ID
 
Method Summary
 void addToGroups(java.lang.String dn, javax.xml.namespace.QName[] gids)
          Assert that a user is in a set of groups.
 void addToGroups(java.lang.String dn, javax.xml.namespace.QName[] gids, boolean admin)
          Assert that a user is in a set of groups.
 boolean[] hasAdminPermission(java.lang.String dn, javax.xml.namespace.QName[] gids)
          Does this user have admin permission on these groups?
 void removeFromGroups(java.lang.String dn, javax.xml.namespace.QName[] gids)
          Assert that a user is not in a set of groups.
 
Methods inherited from interface org.nees.authz.CASAdapter
setId
 

Method Detail

hasAdminPermission

public boolean[] hasAdminPermission(java.lang.String dn,
                                    javax.xml.namespace.QName[] gids)
                             throws CASAdapterException
Does this user have admin permission on these groups?

Parameters:
dn - the user's distinguished name
gids - the groups
Throws:
CASAdapterException

addToGroups

public void addToGroups(java.lang.String dn,
                        javax.xml.namespace.QName[] gids)
                 throws CASAdapterException
Assert that a user is in a set of groups.

Parameters:
dn - the user's distinguished name
gids - the ID's of the groups
Throws:
CASAdapterException

addToGroups

public void addToGroups(java.lang.String dn,
                        javax.xml.namespace.QName[] gids,
                        boolean admin)
                 throws CASAdapterException
Assert that a user is in a set of groups.

Parameters:
dn - the user's distinguished name
gids - the ID's of the groups
admin - true - allow user to administer the groups; false - disallow user from administering the groups
Throws:
CASAdapterException

removeFromGroups

public void removeFromGroups(java.lang.String dn,
                             javax.xml.namespace.QName[] gids)
                      throws CASAdapterException
Assert that a user is not in a set of groups.

Parameters:
dn - the user's distinguished name
gids - the ID's of the groups
Throws:
CASAdapterException