| java.lang.Object org.sakaiproject.authz.impl.NoSecurity
NoSecurity | abstract public class NoSecurity implements SecurityService(Code) | |
NoSecurity is an example implementation of the Sakai SecurityService.
|
Method Summary | |
public void | clearAdvisors() | public void | destroy() Final cleanup. | protected User | getUser(User user) Get the authenticated session user
Parameters: user - If not null, use this user, else use the session one. | protected String | getUserId(User u) | public boolean | hasAdvisors() | public void | init() Final initialization, once all dependencies are set. | public boolean | isSuperUser() | public boolean | isSuperUser(String userId) | public SecurityAdvisor | popAdvisor() | public void | pushAdvisor(SecurityAdvisor advisor) | public boolean | unlock(String lock, String resource) Can the user in the security context unlock the lock for use with this resource?
Parameters: lock - The lock id string. Parameters: resource - The resource id string, or null if no resource is involved. | public boolean | unlock(User user, String lock, String resource) Can the user in the security context unlock the lock for use with this resource?
Parameters: lock - The lock id string. Parameters: resource - The resource id string, or null if no resource is involved. | public boolean | unlock(String userId, String lock, String resource) | public List | unlockUsers(String lock, String reference) Access the List of Users who can unlock the lock for use with this resource.
Parameters: lock - The lock id string. Parameters: reference - The resource reference string. | abstract protected UserDirectoryService | userDirectoryService() |
clearAdvisors | public void clearAdvisors()(Code) | | |
destroy | public void destroy()(Code) | | Final cleanup.
|
getUser | protected User getUser(User user)(Code) | | Get the authenticated session user
Parameters: user - If not null, use this user, else use the session one. the User object authenticated to the current request's session. |
hasAdvisors | public boolean hasAdvisors()(Code) | | |
init | public void init()(Code) | | Final initialization, once all dependencies are set.
|
isSuperUser | public boolean isSuperUser()(Code) | | Is this a super special super (admin) user?
true, if the user is a cut above the rest, false if a mere mortal. |
unlock | public boolean unlock(String lock, String resource)(Code) | | Can the user in the security context unlock the lock for use with this resource?
Parameters: lock - The lock id string. Parameters: resource - The resource id string, or null if no resource is involved. true, if the user can unlock the lock, false otherwise. |
unlock | public boolean unlock(User user, String lock, String resource)(Code) | | Can the user in the security context unlock the lock for use with this resource?
Parameters: lock - The lock id string. Parameters: resource - The resource id string, or null if no resource is involved. true, if the user can unlock the lock, false otherwise. |
unlockUsers | public List unlockUsers(String lock, String reference)(Code) | | Access the List of Users who can unlock the lock for use with this resource.
Parameters: lock - The lock id string. Parameters: reference - The resource reference string. A List (User) of the users can unlock the lock (may be empty). |
|
|