org.sakaiproject.metaobj.security.impl
Class AuthzShim

java.lang.Object
  extended byorg.sakaiproject.metaobj.security.impl.AuthzShim
All Implemented Interfaces:
AuthorizationFacade

public class AuthzShim
extends Object
implements AuthorizationFacade

Created by IntelliJ IDEA. User: John Ellis Date: Jun 30, 2005 Time: 4:57:18 PM To change this template use File | Settings | File Templates.


Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
AuthzShim()
           
 
Method Summary
protected  boolean checkMaintain(String agentId)
           
 void checkPermission(Agent agent, String function, Id id)
           
 void checkPermission(String function, Id id)
           
 void createAuthorization(Agent agent, String function, Id id)
           
 void deleteAuthorization(Agent agent, String function, Id id)
           
 void deleteAuthorizations(Id qualifier)
           
 List getAuthorizations(Agent agent, String function, Id id)
          at least one param must be non-null
protected  List getAuthzGroupsList()
           
protected  String getCurrentRealm()
           
 PortalService getPortalService()
           
 AuthzGroupService getRealmService()
           
protected  String getReference(Id id)
           
 UserDirectoryService getUserDirectoryService()
           
 boolean isAuthorized(Agent agent, String function, Id id)
           
 boolean isAuthorized(String function, Id id)
           
 void pushAuthzGroups(Collection authzGroups)
           
 void pushAuthzGroups(String siteId)
           
 void setPortalService(PortalService portalService)
           
 void setRealmService(AuthzGroupService realmService)
           
 void setUserDirectoryService(UserDirectoryService userDirectoryService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final transient org.apache.commons.logging.Log logger
Constructor Detail

AuthzShim

public AuthzShim()
Method Detail

checkPermission

public void checkPermission(String function,
                            Id id)
                     throws AuthorizationFailedException
Specified by:
checkPermission in interface AuthorizationFacade
Throws:
AuthorizationFailedException

checkPermission

public void checkPermission(Agent agent,
                            String function,
                            Id id)
                     throws AuthorizationFailedException
Specified by:
checkPermission in interface AuthorizationFacade
Throws:
AuthorizationFailedException

isAuthorized

public boolean isAuthorized(String function,
                            Id id)
Specified by:
isAuthorized in interface AuthorizationFacade
Parameters:
function -
id -
Returns:

isAuthorized

public boolean isAuthorized(Agent agent,
                            String function,
                            Id id)
Specified by:
isAuthorized in interface AuthorizationFacade
Parameters:
agent -
function -
id -
Returns:

checkMaintain

protected boolean checkMaintain(String agentId)

getCurrentRealm

protected String getCurrentRealm()

getReference

protected String getReference(Id id)

getAuthorizations

public List getAuthorizations(Agent agent,
                              String function,
                              Id id)
Description copied from interface: AuthorizationFacade
at least one param must be non-null

Specified by:
getAuthorizations in interface AuthorizationFacade
Parameters:
agent -
function -
id -
Returns:

createAuthorization

public void createAuthorization(Agent agent,
                                String function,
                                Id id)
Specified by:
createAuthorization in interface AuthorizationFacade
Parameters:
agent -
function -
id -

deleteAuthorization

public void deleteAuthorization(Agent agent,
                                String function,
                                Id id)
Specified by:
deleteAuthorization in interface AuthorizationFacade

deleteAuthorizations

public void deleteAuthorizations(Id qualifier)
Specified by:
deleteAuthorizations in interface AuthorizationFacade

pushAuthzGroups

public void pushAuthzGroups(Collection authzGroups)
Specified by:
pushAuthzGroups in interface AuthorizationFacade

pushAuthzGroups

public void pushAuthzGroups(String siteId)
Specified by:
pushAuthzGroups in interface AuthorizationFacade

getRealmService

public AuthzGroupService getRealmService()

setRealmService

public void setRealmService(AuthzGroupService realmService)

getPortalService

public PortalService getPortalService()

setPortalService

public void setPortalService(PortalService portalService)

getUserDirectoryService

public UserDirectoryService getUserDirectoryService()

setUserDirectoryService

public void setUserDirectoryService(UserDirectoryService userDirectoryService)

getAuthzGroupsList

protected List getAuthzGroupsList()