|
![]() |
||||||||
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(List<List<URI>> domainURIs)
PartBeanFactory
createDomain
in interface PartBeanFactory
createDomain
in interface PartFactory
domainURIs
- the List
of URI
List
s defining the domain.
DomainBean
instance.public DomainBean createDomain(URI uri)
PartBeanFactory
createDomain
in interface PartBeanFactory
createDomain
in interface PartFactory
uri
- the only URI
the Domain
consists of.
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.public True createTrue()
createTrue
in interface PartBeanFactory
createTrue
in interface PartFactory
public False createFalse()
createFalse
in interface PartBeanFactory
createFalse
in interface PartFactory
public And createAnd(Predicate... predicates)
createAnd
in interface PartBeanFactory
createAnd
in interface PartFactory
public Not createNot(Predicate predicate)
createNot
in interface PartBeanFactory
createNot
in interface PartFactory
public Or createOr(Predicate... predicates)
createOr
in interface PartBeanFactory
createOr
in interface PartFactory
public Present createPresent(Value<?> value)
createPresent
in interface PartBeanFactory
createPresent
in interface PartFactory
public SubstringOf createSubstringOf(Value<?> first, Value<?> second)
createSubstringOf
in interface PartBeanFactory
createSubstringOf
in interface PartFactory
public ValueRelationalPredicate createValueRelationalPredicate(ValueRelationalPredicate.Relation relation, Value<?> first, Value<?> second)
createValueRelationalPredicate
in interface PartBeanFactory
createValueRelationalPredicate
in interface PartFactory
public ValueSetRelationalPredicate createValueSetRelationalPredicate(ValueSetRelationalPredicate.SetRelation relation, ValueSet first, ValueSet second)
createValueSetRelationalPredicate
in interface PartBeanFactory
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