org.nees.authz.ogsi.impl
Interface CASA


public interface CASA


Method Summary
 void addToGroups(java.lang.String dn, javax.xml.namespace.QName[] gids, boolean admin)
          Assert that a user is in a set of groups.
 javax.xml.namespace.QName[] getAllGroups()
          Returns all groups.
 javax.xml.namespace.QName[] getGroups(java.lang.String dn)
          Returns which groups the user is in.
 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.
 

Method Detail

getAllGroups

public javax.xml.namespace.QName[] getAllGroups()
Returns all groups.

Returns:
the groups

getGroups

public javax.xml.namespace.QName[] getGroups(java.lang.String dn)
Returns which groups the user is in.

Parameters:
dn - the user's distinguished name
Returns:
the groups the user is in

hasAdminPermission

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

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

addToGroups

public void addToGroups(java.lang.String dn,
                        javax.xml.namespace.QName[] gids,
                        boolean admin)
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

removeFromGroups

public void removeFromGroups(java.lang.String dn,
                             javax.xml.namespace.QName[] gids)
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