org.jasig.portal.security.provider
Class DefaultPermissionPolicy
java.lang.Object
org.jasig.portal.security.provider.DefaultPermissionPolicy
- All Implemented Interfaces:
- IPermissionPolicy
public class DefaultPermissionPolicy
- extends Object
- implements IPermissionPolicy
Implements a strategy for answering the basic authorization question: does the
principal have permission to perform the activity on
the target.
- Version:
- $Revision: 19776 $
- Author:
- Dan Ellentuck (de3@columbia.edu)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPermissionPolicy
public DefaultPermissionPolicy()
- DefaultPermissionPolicy constructor.
doesPrincipalHavePermission
public boolean doesPrincipalHavePermission(IAuthorizationService service,
IAuthorizationPrincipal principal,
String owner,
String activity,
String target)
throws AuthorizationException
- Answers if the owner has authorized the principal to perform the activity
on the target, based on permissions provided by the service. Params
service, owner and activity must
be non-null.
- Specified by:
doesPrincipalHavePermission in interface IPermissionPolicy
- Parameters:
service - org.jasig.portal.security.IAuthorizationServiceprincipal - org.jasig.portal.security.IAuthorizationPrincipalowner - java.lang.Stringactivity - java.lang.Stringtarget - java.lang.String
- Returns:
- boolean
- Throws:
AuthorizationException
Copyright © 2010 Jasig. All Rights Reserved.