org.openpermis.policy.bean
Interface PolicyBean

All Superinterfaces:
Part, PartBean, Policy, PolicyDecisionPoint, Serializable
All Known Implementing Classes:
BasicPolicy

public interface PolicyBean
extends Policy, PartBean

A policy for role-based access control.

A policy defines two major sets of rules:

In order to be valid the following conditions must be met:

A policy defines role hierarchies. In order to be useful, polices must have at least one RoleHierarchyBean.

Since:
0.1.0

Method Summary
 org.joda.time.DateTimeZone getDateTimeZone()
          Returns the time zone of this policy.
 List<RoleAssignmentRuleBean> getParentRoleAssignmentRules(DomainBean searchPart)
          Returns the PartBean's containing the given part.
 List<TargetAccessRuleBean> getParentTargetAccessRules(ObligationBean searchPart)
          Returns the PartBean's containing the given part.
 List<TargetAccessRuleBean> getParentTargetAccessRules(Role searchRole)
          Returns the PartBean's containing the given part.
 List<TargetAccessRuleBean> getParentTargetAccessRules(TargetBean searchPart)
          Returns the PartBean's containing the given part.
 List<TargetBean> getParentTargets(ActionBean searchPart)
          Returns the PartBean's containing the given part.
 List<TargetBean> getParentTargets(DomainBean searchPart)
          Returns the PartBean's containing the given part.
<M extends PartBean>
List<M>
getPartsList(Class<M> type)
          Returns all parts of given type, unique by serial number.
 List<DomainBean> getResourceDomains()
          Returns the all resource domains of this..
 RoleAssignmentRuleBeanCollection getRoleAssignmentRules()
          Returns the role assignment rule collection of this policy.
 RoleHierarchyBeanCollection getRoleHierarchies()
          Returns the role hierarchy collection of this policy.
 List<Role> getRoleRefList()
          Returns all rolerefs.
 List<DomainBean> getSubjectDomains()
          Returns the all subject domains of this..
 TargetAccessRuleBeanCollection getTargetAccessRules()
          Returns the target access rule collection of this policy.
 void setDateTimeZone(org.joda.time.DateTimeZone zone)
          Sets the time zone of this policy.
 void setRoleAssignmentRules(RoleAssignmentRuleBeanCollection roleAssignmentRules)
          Sets the role assignment rule collection of this policy.
 void setRoleHierarchies(RoleHierarchyBeanCollection roleHierarchies)
          Sets the role hierarchy collection of this policy.
 void setTargetAccessRules(TargetAccessRuleBeanCollection targetAccessRules)
          Sets the target access rule collection of this policy.
 
Methods inherited from interface org.openpermis.policy.Policy
getAccessDecision, isPolicyConsistent
 
Methods inherited from interface org.openpermis.policy.bean.PartBean
accept, accept, addPropertyChangeListener, checkLocalPartConsistency, equalSerialNumber, findBySerialNumber, getPartBeanType, getSerialNumber, instanceOf, removePropertyChangeListener, toShortString
 
Methods inherited from interface org.openpermis.policy.Part
equals, hashCode, toString
 

Method Detail

getDateTimeZone

org.joda.time.DateTimeZone getDateTimeZone()
Returns the time zone of this policy.

Returns:
the time zone of this policy.
Since:
0.1.0

setDateTimeZone

void setDateTimeZone(org.joda.time.DateTimeZone zone)
Sets the time zone of this policy.

Parameters:
zone - a DateTimeZone.
Since:
0.1.0

getRoleAssignmentRules

RoleAssignmentRuleBeanCollection getRoleAssignmentRules()
Returns the role assignment rule collection of this policy.

Returns:
the role assignment rule collection of this policy.
Since:
0.3.0

setRoleAssignmentRules

void setRoleAssignmentRules(RoleAssignmentRuleBeanCollection roleAssignmentRules)
Sets the role assignment rule collection of this policy.

Parameters:
roleAssignmentRules - the new role assignment rule collection of this policy.
Since:
0.3.0

getTargetAccessRules

TargetAccessRuleBeanCollection getTargetAccessRules()
Returns the target access rule collection of this policy.

Returns:
the target access rule collection of this policy.
Since:
0.3.0

setTargetAccessRules

void setTargetAccessRules(TargetAccessRuleBeanCollection targetAccessRules)
Sets the target access rule collection of this policy.

Parameters:
targetAccessRules - the new target access rule collection of this policy.
Since:
0.3.0

getRoleHierarchies

RoleHierarchyBeanCollection getRoleHierarchies()
Returns the role hierarchy collection of this policy.

Returns:
the role hierarchy collection of this policy.
Since:
0.3.0

setRoleHierarchies

void setRoleHierarchies(RoleHierarchyBeanCollection roleHierarchies)
Sets the role hierarchy collection of this policy.

Parameters:
roleHierarchies - the new role hierarchy collection of this policy.
Since:
0.3.0

getPartsList

<M extends PartBean> List<M> getPartsList(Class<M> type)
Returns all parts of given type, unique by serial number.

Since:
0.1.0

getSubjectDomains

List<DomainBean> getSubjectDomains()
Returns the all subject domains of this..

Returns:
list of all subject domains of this.
Since:
0.3.0

getResourceDomains

List<DomainBean> getResourceDomains()
Returns the all resource domains of this..

Returns:
list of all resource domains of this.
Since:
0.3.0

getParentTargetAccessRules

List<TargetAccessRuleBean> getParentTargetAccessRules(TargetBean searchPart)
Returns the PartBean's containing the given part.

Returns:
list of found parts in the policy
Since:
0.1.0

getParentTargetAccessRules

List<TargetAccessRuleBean> getParentTargetAccessRules(ObligationBean searchPart)
Returns the PartBean's containing the given part.

Returns:
list of found parts in the policy
Since:
0.3.0

getParentTargetAccessRules

List<TargetAccessRuleBean> getParentTargetAccessRules(Role searchRole)
Returns the PartBean's containing the given part.

Parameters:
searchRole - the role for which to return the rules that contain it.
Returns:
list of found parts in the policy
Since:
0.1.0

getParentTargets

List<TargetBean> getParentTargets(ActionBean searchPart)
Returns the PartBean's containing the given part.

Returns:
list of found parts in the policy
Since:
0.1.0

getParentTargets

List<TargetBean> getParentTargets(DomainBean searchPart)
Returns the PartBean's containing the given part.

Returns:
list of found parts in the policy
Since:
0.1.0

getParentRoleAssignmentRules

List<RoleAssignmentRuleBean> getParentRoleAssignmentRules(DomainBean searchPart)
Returns the PartBean's containing the given part.

Returns:
list of found parts in the policy
Since:
0.3.0

getRoleRefList

List<Role> getRoleRefList()
Returns all rolerefs.

Since:
0.3.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:16:59
Copyright (c) 2002-2007 Ergon Informatik AG