|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A factory to create and check permissions for authorization decisions.
Method Summary | |
boolean |
checkPermission(java.lang.String type,
java.lang.String uri,
java.lang.String actions)
Check for authorization to access the provided portal object (handle) with the provided actions. |
PortalPermission |
createPermission(java.lang.String type,
java.lang.String uri,
java.lang.String actions)
Create a permission for the provided handle and actions, based on the current permission configuration. |
Method Detail |
public PortalPermission createPermission(java.lang.String type, java.lang.String uri, java.lang.String actions) throws PortalPolicyException
The created permission is usually used to configure a policy context with the allowed permissions
type
- uri
- the resource identifieractions
- a comma separated list of actions to allow (the actions the permission will contain)
PortalPolicyConfigException
- if no permission class was configured, or the permission could not be instantiated
PortalPolicyException
public boolean checkPermission(java.lang.String type, java.lang.String uri, java.lang.String actions) throws PortalPolicyException
type
- uri
- actions
- a comma separated list of actions to check authorization for
handle
with the actions
PortalPolicyConfigException
- if no permission class was configured, or the permission could not be instantiated
PortalPolicyException
PortalPolicyService
,
PortalPolicy
,
PortalSubject
,
SubjectAssociation
,
PolicyAssociation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |