Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
AuthorizationPolicy Class Reference
Inheritance diagram for AuthorizationPolicy:
ContextRequiredPolicy DataObjectRequiredPolicy HandlerOperationPolicy HttpsPolicy ManagerRequiredPolicy MonographPublishedPolicy PKPUserAccessibleWorkflowStageRequiredPolicy PluginLevelRequiredPolicy PluginRequiredPolicy RestrictedSiteAccessPolicy ReviewAssignmentAccessPolicy SeriesAssignmentPolicy SignoffAssignedToUserAccessPolicy SignoffExistsAccessPolicy SubmissionAuthorPolicy SubmissionFileBaseAccessPolicy UserAccessibleWorkflowStagePolicy UserRequiredPolicy UserRolesRequiredPolicy WorkflowStageRequiredPolicy

Public Member Functions

 addAuthorizedContextObject ($assocType, &$authorizedObject)
 
 applies ()
 
 AuthorizationPolicy ($message=null)
 
 effect ()
 
getAdvice ($adviceType)
 
getAuthorizedContext ()
 
getAuthorizedContextObject ($assocType)
 
 hasAdvice ($adviceType)
 
 hasAuthorizedContextObject ($assocType)
 
 setAdvice ($adviceType, &$adviceContent)
 
 setAuthorizedContext (&$authorizedContext)
 

Public Attributes

 $_advice = array()
 
 $_authorizedContext = array()
 

Detailed Description

Class to represent an authorization policy.

We use some of the terminology specified in the draft XACML V3.0 standard, please see http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=xacml for details.

We try to stick closely enough to XACML concepts to make sure that future improvements to the authorization framework can be done in a consistent manner.

This of course doesn't mean that we are "XACML compliant" in any way.

Definition at line 31 of file AuthorizationPolicy.inc.php.

Member Function Documentation

AuthorizationPolicy::addAuthorizedContextObject (   $assocType,
$authorizedObject 
)
AuthorizationPolicy::applies ( )

Whether this policy applies.

Returns
boolean

Definition at line 149 of file AuthorizationPolicy.inc.php.

AuthorizationPolicy::AuthorizationPolicy (   $message = null)

Constructor

Parameters
$messagestring

Definition at line 52 of file AuthorizationPolicy.inc.php.

AuthorizationPolicy::effect ( )

This method must return a value of either AUTHORIZATION_DENY or AUTHORIZATION_PERMIT.

Definition at line 158 of file AuthorizationPolicy.inc.php.

& AuthorizationPolicy::getAdvice (   $adviceType)

Get advice for the given advice type.

Parameters
$adviceTypeinteger
Returns
mixed

Definition at line 83 of file AuthorizationPolicy.inc.php.

& AuthorizationPolicy::getAuthorizedContext ( )

Get the authorized context

Returns
array

Definition at line 138 of file AuthorizationPolicy.inc.php.

& AuthorizationPolicy::getAuthorizedContextObject (   $assocType)
AuthorizationPolicy::hasAdvice (   $adviceType)

Whether this policy implements the given advice type.

Parameters
$adviceTypeinteger
Returns
boolean

Definition at line 74 of file AuthorizationPolicy.inc.php.

AuthorizationPolicy::hasAuthorizedContextObject (   $assocType)

Check whether an object already exists in the authorized context.

Parameters
$assocTypeinteger
Returns
boolean

Definition at line 107 of file AuthorizationPolicy.inc.php.

AuthorizationPolicy::setAdvice (   $adviceType,
$adviceContent 
)

Set an advice

Parameters
$adviceTypeinteger
$adviceContentmixed

Definition at line 64 of file AuthorizationPolicy.inc.php.

AuthorizationPolicy::setAuthorizedContext ( $authorizedContext)

Set the authorized context

Returns
array

Definition at line 130 of file AuthorizationPolicy.inc.php.

Member Data Documentation

array AuthorizationPolicy::$_advice = array()

advice to be returned to the decision point

Definition at line 36 of file AuthorizationPolicy.inc.php.

array AuthorizationPolicy::$_authorizedContext = array()

a list of authorized context objects that should be returned to the caller

Definition at line 45 of file AuthorizationPolicy.inc.php.


The documentation for this class was generated from the following file: