|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.policy.bean.basic.BasicPartBeanFactory
public class BasicPartBeanFactory
Factory for policy parts.
Constructor Summary | |
---|---|
BasicPartBeanFactory()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicPartBeanFactory()
Method Detail |
---|
protected final SerialNumber nextSerial()
public SerialNumber getSerialNumber()
getSerialNumber
in interface PartBeanFactory
public ActionBean createAction(String name, ParameterList parameterList)
PartBeanFactory
createAction
in interface PartBeanFactory
createAction
in interface PartFactory
name
- the name that the created action will have.parameterList
- a ParameterList
that defines the arguments for this action.
ActionBean
instance.public ActionBeanCollection createActionCollection(Collection<? extends Action> collection)
PartBeanFactory
createActionCollection
in interface PartBeanFactory
createActionCollection
in interface PartFactory
collection
- of ActionBean
's.
ActionBeanCollection
instance.public AuthorityBean createAuthority(URI identity)
PartBeanFactory
createAuthority
in interface PartBeanFactory
createAuthority
in interface PartFactory
identity
- the URI
identifying the authority.
AuthorityBean
instance.public DomainBean createDomain(URI uri)
PartBeanFactory
createDomain
in interface PartBeanFactory
createDomain
in interface PartFactory
uri
- the URI
identifying the domain.
DomainBean
instance.public ObligationBean createObligation(String text)
PartBeanFactory
createObligation
in interface PartBeanFactory
createObligation
in interface PartFactory
text
- the String
describing the obligation.
ObligationBean
instance.public ObligationBeanCollection createObligationCollection(Collection<? extends Obligation> collection)
PartBeanFactory
createObligationCollection
in interface PartBeanFactory
createObligationCollection
in interface PartFactory
collection
- of ObligationBean
's.
ObligationBeanCollection
instance.public PolicyBean createPolicy()
PartBeanFactory
createPolicy
in interface PartBeanFactory
createPolicy
in interface PartFactory
PolicyBean
instance.public PolicyBean createPolicy(org.joda.time.DateTimeZone zone, RoleHierarchyCollection hierarchies, TargetAccessRuleCollection targetAccessRules, RoleAssignmentRuleCollection roleAssignmentRules)
createPolicy
in interface PartBeanFactory
createPolicy
in interface PartFactory
zone
- a DateTimeZone
the time zone of this policy,hierarchies
- a RoleHierarchyCollection
.targetAccessRules
- a TargetAccessRuleCollection
.roleAssignmentRules
- a RoleAssignmentRuleCollection
.
PolicyBean
instance.public RoleHierarchyBean createRoleHierarchy(URI uri)
PartBeanFactory
createRoleHierarchy
in interface PartBeanFactory
createRoleHierarchy
in interface PartFactory
uri
- an URI
uniquely identifying the role hierarchy.
RoleHierarchyBean
instance.public RoleHierarchyBeanCollection createRoleHierarchyCollection(Collection<? extends RoleHierarchy> collection)
PartBeanFactory
createRoleHierarchyCollection
in interface PartBeanFactory
createRoleHierarchyCollection
in interface PartFactory
collection
- of RoleHierarchyBean
's.
RoleHierarchyBeanCollection
instance.public RoleAssignmentRuleBean createRoleAssignmentRule(Authority authority, DomainBean subjectDomain, Collection<Role> roles, TimePeriodConstraint constraint, int delegationDepth)
PartBeanFactory
createRoleAssignmentRule
in interface PartBeanFactory
createRoleAssignmentRule
in interface PartFactory
authority
- the Authority
granting the right to delegate roles.subjectDomain
- the Domain
of subjects to which this role applies.roles
- the Role
s that the rule allows to be delegated.constraint
- the TimePeriodConstraint
of this rule.delegationDepth
- the number of times a role may be delegated to somebody else.
RoleAssignmentRuleBean
instance.public RoleAssignmentRuleBeanCollection createRoleAssignmentRuleCollection(Collection<? extends RoleAssignmentRule> collection)
PartBeanFactory
createRoleAssignmentRuleCollection
in interface PartBeanFactory
createRoleAssignmentRuleCollection
in interface PartFactory
collection
- of RoleAssignmentRuleBean
's.
RoleAssignmentRuleBeanCollection
instance.public TargetBean createTarget(Domain domain, ActionCollection actions)
PartBeanFactory
createTarget
in interface PartBeanFactory
createTarget
in interface PartFactory
domain
- the DomainBean
identifying the resources of this targetactions
- the ActionBeanCollection
that can be performed on the resources.
TargetBean
instance.public TargetBeanCollection createTargetCollection(Collection<? extends Target> collection)
PartBeanFactory
createTargetCollection
in interface PartBeanFactory
createTargetCollection
in interface PartFactory
collection
- of TargetBean
's.
TargetBeanCollection
instance.public TargetAccessRuleBean createTargetAccessRule(TargetCollection targets, Collection<Role> roles, Predicate condition, ObligationCollection obligations)
PartBeanFactory
createTargetAccessRule
in interface PartBeanFactory
createTargetAccessRule
in interface PartFactory
targets
- a TargetBeanCollection
for which this rule applies.roles
- the Role
s that a subject needs to get access to this target.condition
- the predicate that must evaluate to true
in order
for the rule to grant access.obligations
- the ObligationCollection
s for this rule.
TargetAccessRuleBean
instance.public TargetAccessRuleBeanCollection createTargetAccessRuleCollection(Collection<? extends TargetAccessRule> collection)
PartBeanFactory
createTargetAccessRuleCollection
in interface PartBeanFactory
createTargetAccessRuleCollection
in interface PartFactory
collection
- of TargetAccessRuleBean
's.
TargetAccessRuleBeanCollection
instance.
|
![]() |
||||||||
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:10
Copyright (c) 2002-2007 Ergon Informatik AG