|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PolicyBean
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:
RoleAssignmentRuleBean
.TargetAccessRuleBean
.A policy defines role hierarchies. In order to be useful, polices must have at least one
RoleHierarchyBean
.
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. |
|
|
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 |
Methods inherited from interface org.openpermis.policy.Part |
---|
equals, hashCode, isValid, toString |
Methods inherited from interface org.openpermis.policy.bean.PartBean |
---|
addPropertyChangeListener, equalSerialNumber, findBySerialNumber, getPartBeanType, getSerialNumber, removePropertyChangeListener, toShortString |
Methods inherited from interface org.openpermis.policy.Part |
---|
equals, hashCode, isValid, toString |
Method Detail |
---|
org.joda.time.DateTimeZone getDateTimeZone()
void setDateTimeZone(org.joda.time.DateTimeZone zone)
zone
- a DateTimeZone
.RoleAssignmentRuleBeanCollection getRoleAssignmentRules()
void setRoleAssignmentRules(RoleAssignmentRuleBeanCollection roleAssignmentRules)
roleAssignmentRules
- the new role assignment rule collection of this policy.TargetAccessRuleBeanCollection getTargetAccessRules()
void setTargetAccessRules(TargetAccessRuleBeanCollection targetAccessRules)
targetAccessRules
- the new target access rule collection of this policy.RoleHierarchyBeanCollection getRoleHierarchies()
void setRoleHierarchies(RoleHierarchyBeanCollection roleHierarchies)
roleHierarchies
- the new role hierarchy collection of this policy.<M extends PartBean> List<M> getPartsList(Class<M> type)
List<DomainBean> getSubjectDomains()
List<DomainBean> getResourceDomains()
List<TargetAccessRuleBean> getParentTargetAccessRules(TargetBean searchPart)
List<TargetAccessRuleBean> getParentTargetAccessRules(ObligationBean searchPart)
List<TargetAccessRuleBean> getParentTargetAccessRules(Role searchRole)
searchRole
- the role for which to return the rules that contain it.
List<TargetBean> getParentTargets(ActionBean searchPart)
List<TargetBean> getParentTargets(DomainBean searchPart)
List<RoleAssignmentRuleBean> getParentRoleAssignmentRules(DomainBean searchPart)
List<Role> getRoleRefList()
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:22
Copyright (c) 2002-2007 Ergon Informatik AG