org.sakaiproject.metaobj.security
Interface AuthorizationFacade

All Known Implementing Classes:
AuthzShim

public interface AuthorizationFacade

Created by IntelliJ IDEA. User: jbush Date: Apr 29, 2004 Time: 11:28:09 AM To change this template use File | Settings | File Templates.


Method Summary
 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
 boolean isAuthorized(Agent agent, String function, Id id)
           
 boolean isAuthorized(String function, Id id)
           
 void pushAuthzGroups(Collection authzGroups)
           
 void pushAuthzGroups(String siteId)
           
 

Method Detail

checkPermission

public void checkPermission(String function,
                            Id id)
                     throws AuthorizationFailedException
Throws:
AuthorizationFailedException

checkPermission

public void checkPermission(Agent agent,
                            String function,
                            Id id)
                     throws AuthorizationFailedException
Throws:
AuthorizationFailedException

isAuthorized

public boolean isAuthorized(String function,
                            Id id)
Parameters:
function -
id -
Returns:

isAuthorized

public boolean isAuthorized(Agent agent,
                            String function,
                            Id id)
Parameters:
agent -
function -
id -
Returns:

getAuthorizations

public List getAuthorizations(Agent agent,
                              String function,
                              Id id)
at least one param must be non-null

Parameters:
agent -
function -
id -
Returns:

createAuthorization

public void createAuthorization(Agent agent,
                                String function,
                                Id id)
Parameters:
agent -
function -
id -

deleteAuthorization

public void deleteAuthorization(Agent agent,
                                String function,
                                Id id)

deleteAuthorizations

public void deleteAuthorizations(Id qualifier)

pushAuthzGroups

public void pushAuthzGroups(Collection authzGroups)

pushAuthzGroups

public void pushAuthzGroups(String siteId)