|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PartFactory
Creates policy parts.
Method Detail |
---|
Action createAction(String name, ParameterList parameterList)
name
- the name that the created action will have.parameterList
- a ParameterList
that defines the arguments for this action.
Action
instance.ActionCollection createActionCollection(Collection<? extends Action> collection)
collection
- of Action
's.
ActionCollection
instance.Authority createAuthority(URI identity)
identity
- the URI
identifying the authority.
Authority
instance.Domain createDomain(List<List<URI>> domainURIs)
domainURIs
- the List
of URI
List
s defining the domain.
Domain
instance.Domain createDomain(URI uri)
uri
- the only URI
the Domain
consists of.
Domain
instance.Obligation createObligation(String text)
text
- the String
describing the obligation.
Obligation
instance.ObligationCollection createObligationCollection(Collection<? extends Obligation> collection)
collection
- of Obligation
's.
ObligationCollection
instance.Policy createPolicy()
Policy
instance.Policy createPolicy(org.joda.time.DateTimeZone zone, RoleHierarchyCollection hierarchies, TargetAccessRuleCollection targetAccessRules, RoleAssignmentRuleCollection roleAssignmentRules)
zone
- a DateTimeZone
the time zone of this policy,hierarchies
- a RoleHierarchyCollection
.targetAccessRules
- a TargetAccessRuleCollection
.roleAssignmentRules
- RoleAssignmentRuleCollection
.
Policy
instance.RoleHierarchy createRoleHierarchy(URI uri)
uri
- the URI
uniquely identifying the role hierarchy.
RoleHierarchy
instance.RoleHierarchyCollection createRoleHierarchyCollection(Collection<? extends RoleHierarchy> collection)
collection
- of RoleHierarchy
's.
RoleHierarchyCollection
instance.RoleAssignmentRule createRoleAssignmentRule(Authority authority, DomainBean subjectDomain, Collection<Role> roles, TimePeriodConstraint constraint, int delegationDepth)
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.
RoleAssignmentRule
instance.RoleAssignmentRuleCollection createRoleAssignmentRuleCollection(Collection<? extends RoleAssignmentRule> collection)
collection
- of RoleAssignmentRule
's.
RoleAssignmentRuleCollection
instance.Target createTarget(Domain domain, ActionCollection actions)
domain
- the Domain
identifying the resources of this target.actions
- the ActionCollection
that can be performed on the resources.
Target
instance.TargetCollection createTargetCollection(Collection<? extends Target> collection)
collection
- of Target
's.
TargetCollection
instance.TargetAccessRule createTargetAccessRule(TargetCollection targets, Collection<Role> roles, Predicate condition, ObligationCollection obligations)
targets
- a TargetCollection
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.
TargetAccessRule
instance.TargetAccessRuleCollection createTargetAccessRuleCollection(Collection<? extends TargetAccessRule> collection)
collection
- of TargetAccessRule
's.
TargetAccessRuleCollection
instance.True createTrue()
False createFalse()
And createAnd(Predicate... predicates)
Or createOr(Predicate... predicates)
Not createNot(Predicate predicate)
Present createPresent(Value<?> value)
SubstringOf createSubstringOf(Value<?> first, Value<?> second)
ValueRelationalPredicate createValueRelationalPredicate(ValueRelationalPredicate.Relation relation, Value<?> first, Value<?> second)
ValueSetRelationalPredicate createValueSetRelationalPredicate(ValueSetRelationalPredicate.SetRelation relation, ValueSet first, ValueSet second)
|
![]() |
||||||||
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