|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PartBeanFactory
Factory for policy parts.
Method Detail |
---|
SerialNumber getSerialNumber()
ActionBean createAction(String name, ParameterList parameterList)
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.ActionBeanCollection createActionCollection(Collection<? extends Action> collection)
createActionCollection
in interface PartFactory
collection
- of ActionBean
's.
ActionBeanCollection
instance.AuthorityBean createAuthority(URI identity)
createAuthority
in interface PartFactory
identity
- the URI
identifying the authority.
AuthorityBean
instance.DomainBean createDomain(List<List<URI>> domainURIs)
createDomain
in interface PartFactory
domainURIs
- the List
of URI
List
s defining the domain.
DomainBean
instance.DomainBean createDomain(URI uri)
createDomain
in interface PartFactory
uri
- the only URI
the Domain
consists of.
DomainBean
instance.ObligationBean createObligation(String text)
createObligation
in interface PartFactory
text
- the String
describing the obligation.
ObligationBean
instance.ObligationBeanCollection createObligationCollection(Collection<? extends Obligation> collection)
createObligationCollection
in interface PartFactory
collection
- of ObligationBean
's.
ObligationBeanCollection
instance.PolicyBean createPolicy()
createPolicy
in interface PartFactory
PolicyBean
instance.PolicyBean createPolicy(org.joda.time.DateTimeZone zone, RoleHierarchyCollection hierarchies, TargetAccessRuleCollection targetAccessRules, RoleAssignmentRuleCollection roleAssignmentRules)
createPolicy
in interface PartFactory
zone
- a DateTimeZone
the time zone of this policy,hierarchies
- a RoleHierarchyBeanCollection
.targetAccessRules
- a TargetAccessRuleBeanCollection
.roleAssignmentRules
- a RoleAssignmentRuleBeanCollection
.
PolicyBean
instance.RoleHierarchyBean createRoleHierarchy(URI uri)
createRoleHierarchy
in interface PartFactory
uri
- an URI
uniquely identifying the role hierarchy.
RoleHierarchyBean
instance.RoleHierarchyBeanCollection createRoleHierarchyCollection(Collection<? extends RoleHierarchy> collection)
createRoleHierarchyCollection
in interface PartFactory
collection
- of RoleHierarchyBean
's.
RoleHierarchyBeanCollection
instance.RoleAssignmentRuleBean createRoleAssignmentRule(Authority authority, DomainBean subjectDomain, Collection<Role> roles, TimePeriodConstraint constraint, int delegationDepth)
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.RoleAssignmentRuleBeanCollection createRoleAssignmentRuleCollection(Collection<? extends RoleAssignmentRule> collection)
createRoleAssignmentRuleCollection
in interface PartFactory
collection
- of RoleAssignmentRuleBean
's.
RoleAssignmentRuleBeanCollection
instance.TargetBean createTarget(Domain domain, ActionCollection actions)
createTarget
in interface PartFactory
domain
- the DomainBean
identifying the resources of this targetactions
- the ActionBeanCollection
that can be performed on the resources.
TargetBean
instance.TargetBeanCollection createTargetCollection(Collection<? extends Target> collection)
createTargetCollection
in interface PartFactory
collection
- of TargetBean
's.
TargetBeanCollection
instance.TargetAccessRuleBean createTargetAccessRule(TargetCollection targets, Collection<Role> roles, Predicate condition, ObligationCollection obligations)
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.obligations
- the ObligationCollection
s for this rule.condition
- the predicate that must evaluate to true
in order
for the rule to grant access.
TargetAccessRuleBean
instance.TargetAccessRuleBeanCollection createTargetAccessRuleCollection(Collection<? extends TargetAccessRule> collection)
createTargetAccessRuleCollection
in interface PartFactory
collection
- of TargetAccessRuleBean
's.
TargetAccessRuleBeanCollection
instance.True createTrue()
createTrue
in interface PartFactory
False createFalse()
createFalse
in interface PartFactory
And createAnd(Predicate... predicates)
createAnd
in interface PartFactory
Or createOr(Predicate... predicates)
createOr
in interface PartFactory
Not createNot(Predicate predicate)
createNot
in interface PartFactory
Present createPresent(Value<?> value)
createPresent
in interface PartFactory
SubstringOf createSubstringOf(Value<?> first, Value<?> second)
createSubstringOf
in interface PartFactory
ValueRelationalPredicate createValueRelationalPredicate(ValueRelationalPredicate.Relation relation, Value<?> first, Value<?> second)
createValueRelationalPredicate
in interface PartFactory
ValueSetRelationalPredicate createValueSetRelationalPredicate(ValueSetRelationalPredicate.SetRelation relation, ValueSet first, ValueSet second)
createValueSetRelationalPredicate
in interface PartFactory
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:16:59
Copyright (c) 2002-2007 Ergon Informatik AG