org.wso2.registry.users
Interface AccessControlAdmin

All Superinterfaces:
Authorizer
All Known Implementing Classes:
ACLAccessControlAdmin, DefaultAccessControlAdmin, HybridAccessControlAdmin, PathBasedAccessControlAdmin, RegistryAccessControlAdmin

public interface AccessControlAdmin
extends Authorizer

Manipulates access control data in the user store


Method Summary
 void authorizeRole(java.lang.String roleName, java.lang.String resourceId, java.lang.String action)
          Grant access to role
 void authorizeUser(java.lang.String userName, java.lang.String resourceId, java.lang.String action)
          Grant access to user.
 void clearResourceAuthorizations(java.lang.String resourceId)
          Clears all authorizations on a Role
 void clearRoleAuthorization(java.lang.String roleName, java.lang.String resourceId, java.lang.String action)
          Removes granted access from Role
 void clearUserAuthorization(java.lang.String userName, java.lang.String resourceId, java.lang.String action)
          Removes granted access from user
 void copyAuthorizations(java.lang.String fromResourceId, java.lang.String toResourceId)
          Duplicates granted/denied access
 void denyRole(java.lang.String roleName, java.lang.String resourceId, java.lang.String action)
          Deny access to role
 void denyUser(java.lang.String userName, java.lang.String resourceId, java.lang.String action)
          Deny access to user
 
Methods inherited from interface org.wso2.registry.users.Authorizer
getAllowedRolesForResource, getAllowedUsersForResource, getDeniedRolesForResource, getDeniedUsersForResource, isRoleAuthorized, isUserAuthorized
 

Method Detail

authorizeUser

void authorizeUser(java.lang.String userName,
                   java.lang.String resourceId,
                   java.lang.String action)
                   throws UserStoreException
Grant access to user.

Throws:
UserStoreException

denyUser

void denyUser(java.lang.String userName,
              java.lang.String resourceId,
              java.lang.String action)
              throws UserStoreException
Deny access to user

Throws:
UserStoreException

authorizeRole

void authorizeRole(java.lang.String roleName,
                   java.lang.String resourceId,
                   java.lang.String action)
                   throws UserStoreException
Grant access to role

Throws:
UserStoreException

denyRole

void denyRole(java.lang.String roleName,
              java.lang.String resourceId,
              java.lang.String action)
              throws UserStoreException
Deny access to role

Throws:
UserStoreException

clearUserAuthorization

void clearUserAuthorization(java.lang.String userName,
                            java.lang.String resourceId,
                            java.lang.String action)
                            throws UserStoreException
Removes granted access from user

Throws:
UserStoreException

clearRoleAuthorization

void clearRoleAuthorization(java.lang.String roleName,
                            java.lang.String resourceId,
                            java.lang.String action)
                            throws UserStoreException
Removes granted access from Role

Throws:
UserStoreException

clearResourceAuthorizations

void clearResourceAuthorizations(java.lang.String resourceId)
                                 throws UserStoreException
Clears all authorizations on a Role

Throws:
UserStoreException

copyAuthorizations

void copyAuthorizations(java.lang.String fromResourceId,
                        java.lang.String toResourceId)
                        throws UserStoreException
Duplicates granted/denied access

Throws:
UserStoreException


Copyright © 2007 Apache Web Services Project. All Rights Reserved.