org.openpermis.policy.bean
Interface PartBeanFactory

All Superinterfaces:
PartFactory
All Known Implementing Classes:
BasicPartBeanFactory

public interface PartBeanFactory
extends PartFactory

Factory for policy parts.

Since:
0.1.0

Method Summary
 ActionBean createAction(String name, ParameterList parameterList)
          Creates a new action bean.
 ActionBeanCollection createActionCollection(Collection<? extends Action> collection)
          Creates a action bean collection.
 And createAnd(Predicate... predicates)
           
 AuthorityBean createAuthority(URI identity)
          Creates a new authority bean.
 DomainBean createDomain(List<List<URI>> domainURIs)
          Creates a new domain.
 DomainBean createDomain(URI uri)
          Creates a new domain.
 False createFalse()
           
 Not createNot(Predicate predicate)
           
 ObligationBean createObligation(String text)
          Creates a new obligation.
 ObligationBeanCollection createObligationCollection(Collection<? extends Obligation> collection)
          Creates a obligation bean collection.
 Or createOr(Predicate... predicates)
           
 PolicyBean createPolicy()
          Create a new policy bean.
 PolicyBean createPolicy(org.joda.time.DateTimeZone zone, RoleHierarchyCollection hierarchies, TargetAccessRuleCollection targetAccessRules, RoleAssignmentRuleCollection roleAssignmentRules)
          Creates a new policy bean.
 Present createPresent(Value<?> value)
           
 RoleAssignmentRuleBean createRoleAssignmentRule(Authority authority, DomainBean subjectDomain, Collection<Role> roles, TimePeriodConstraint constraint, int delegationDepth)
          Create a role assignment rule bean.
 RoleAssignmentRuleBeanCollection createRoleAssignmentRuleCollection(Collection<? extends RoleAssignmentRule> collection)
          Creates a role assignment rule bean collection.
 RoleHierarchyBean createRoleHierarchy(URI uri)
          Create a new role hierarchy bean.
 RoleHierarchyBeanCollection createRoleHierarchyCollection(Collection<? extends RoleHierarchy> collection)
          Creates a new role hierarchy bean collection.
 SubstringOf createSubstringOf(Value<?> first, Value<?> second)
           
 TargetBean createTarget(Domain domain, ActionCollection actions)
          Creates a target bean.
 TargetAccessRuleBean createTargetAccessRule(TargetCollection targets, Collection<Role> roles, Predicate condition, ObligationCollection obligations)
          Creates a target access rule bean.
 TargetAccessRuleBeanCollection createTargetAccessRuleCollection(Collection<? extends TargetAccessRule> collection)
          Creates a target access rule bean collection.
 TargetBeanCollection createTargetCollection(Collection<? extends Target> collection)
          Creates a target bean collection.
 True createTrue()
           
 ValueRelationalPredicate createValueRelationalPredicate(ValueRelationalPredicate.Relation relation, Value<?> first, Value<?> second)
           
 ValueSetRelationalPredicate createValueSetRelationalPredicate(ValueSetRelationalPredicate.SetRelation relation, ValueSet first, ValueSet second)
           
 SerialNumber getSerialNumber()
           
 

Method Detail

getSerialNumber

SerialNumber getSerialNumber()
Since:
0.1.0

createAction

ActionBean createAction(String name,
                        ParameterList parameterList)
Creates a new action bean.

Specified by:
createAction in interface PartFactory
Parameters:
name - the name that the created action will have.
parameterList - a ParameterList that defines the arguments for this action.
Returns:
an ActionBean instance.
Since:
0.1.0

createActionCollection

ActionBeanCollection createActionCollection(Collection<? extends Action> collection)
Creates a action bean collection.

Specified by:
createActionCollection in interface PartFactory
Parameters:
collection - of ActionBean's.
Returns:
a ActionBeanCollection instance.
Since:
0.3.0

createAuthority

AuthorityBean createAuthority(URI identity)
Creates a new authority bean.

Specified by:
createAuthority in interface PartFactory
Parameters:
identity - the URI identifying the authority.
Returns:
an AuthorityBean instance.
Since:
0.1.0

createDomain

DomainBean createDomain(List<List<URI>> domainURIs)
Creates a new domain.

Specified by:
createDomain in interface PartFactory
Parameters:
domainURIs - the List of URI Lists defining the domain.
Returns:
a DomainBean instance.
Since:
0.9.0

createDomain

DomainBean createDomain(URI uri)
Creates a new domain.

Specified by:
createDomain in interface PartFactory
Parameters:
uri - the only URI the Domain consists of.
Returns:
a DomainBean instance.
Since:
0.1.0

createObligation

ObligationBean createObligation(String text)
Creates a new obligation.

Specified by:
createObligation in interface PartFactory
Parameters:
text - the String describing the obligation.
Returns:
a ObligationBean instance.
Since:
0.3.0

createObligationCollection

ObligationBeanCollection createObligationCollection(Collection<? extends Obligation> collection)
Creates a obligation bean collection.

Specified by:
createObligationCollection in interface PartFactory
Parameters:
collection - of ObligationBean's.
Returns:
a ObligationBeanCollection instance.
Since:
0.3.0

createPolicy

PolicyBean createPolicy()
Create a new policy bean.

Specified by:
createPolicy in interface PartFactory
Returns:
a PolicyBean instance.
Since:
0.1.0

createPolicy

PolicyBean createPolicy(org.joda.time.DateTimeZone zone,
                        RoleHierarchyCollection hierarchies,
                        TargetAccessRuleCollection targetAccessRules,
                        RoleAssignmentRuleCollection roleAssignmentRules)
Creates a new policy bean.

Specified by:
createPolicy in interface PartFactory
Parameters:
zone - a DateTimeZone the time zone of this policy,
hierarchies - a RoleHierarchyBeanCollection.
targetAccessRules - a TargetAccessRuleBeanCollection.
roleAssignmentRules - a RoleAssignmentRuleBeanCollection.
Returns:
a PolicyBean instance.
Since:
0.3.0

createRoleHierarchy

RoleHierarchyBean createRoleHierarchy(URI uri)
Create a new role hierarchy bean.

Specified by:
createRoleHierarchy in interface PartFactory
Parameters:
uri - an URI uniquely identifying the role hierarchy.
Returns:
a RoleHierarchyBean instance.
Since:
0.3.0

createRoleHierarchyCollection

RoleHierarchyBeanCollection createRoleHierarchyCollection(Collection<? extends RoleHierarchy> collection)
Creates a new role hierarchy bean collection.

Specified by:
createRoleHierarchyCollection in interface PartFactory
Parameters:
collection - of RoleHierarchyBean's.
Returns:
a RoleHierarchyBeanCollection instance.
Since:
0.3.0

createRoleAssignmentRule

RoleAssignmentRuleBean createRoleAssignmentRule(Authority authority,
                                                DomainBean subjectDomain,
                                                Collection<Role> roles,
                                                TimePeriodConstraint constraint,
                                                int delegationDepth)
Create a role assignment rule bean.

Specified by:
createRoleAssignmentRule in interface PartFactory
Parameters:
authority - the Authority granting the right to delegate roles.
subjectDomain - the Domain of subjects to which this role applies.
roles - the Roles 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.
Returns:
a RoleAssignmentRuleBean instance.
Since:
0.3.0

createRoleAssignmentRuleCollection

RoleAssignmentRuleBeanCollection createRoleAssignmentRuleCollection(Collection<? extends RoleAssignmentRule> collection)
Creates a role assignment rule bean collection.

Specified by:
createRoleAssignmentRuleCollection in interface PartFactory
Parameters:
collection - of RoleAssignmentRuleBean's.
Returns:
a RoleAssignmentRuleBeanCollection instance.
Since:
0.3.0

createTarget

TargetBean createTarget(Domain domain,
                        ActionCollection actions)
Creates a target bean.

Specified by:
createTarget in interface PartFactory
Parameters:
domain - the DomainBean identifying the resources of this target
actions - the ActionBeanCollection that can be performed on the resources.
Returns:
a TargetBean instance.
Since:
0.3.0

createTargetCollection

TargetBeanCollection createTargetCollection(Collection<? extends Target> collection)
Creates a target bean collection.

Specified by:
createTargetCollection in interface PartFactory
Parameters:
collection - of TargetBean's.
Returns:
a TargetBeanCollection instance.
Since:
0.3.0

createTargetAccessRule

TargetAccessRuleBean createTargetAccessRule(TargetCollection targets,
                                            Collection<Role> roles,
                                            Predicate condition,
                                            ObligationCollection obligations)
Creates a target access rule bean.

Specified by:
createTargetAccessRule in interface PartFactory
Parameters:
targets - a TargetBeanCollection for which this rule applies.
roles - the Roles that a subject needs to get access to this target.
obligations - the ObligationCollections for this rule.
condition - the predicate that must evaluate to true in order for the rule to grant access.
Returns:
a TargetAccessRuleBean instance.
Since:
0.3.0

createTargetAccessRuleCollection

TargetAccessRuleBeanCollection createTargetAccessRuleCollection(Collection<? extends TargetAccessRule> collection)
Creates a target access rule bean collection.

Specified by:
createTargetAccessRuleCollection in interface PartFactory
Parameters:
collection - of TargetAccessRuleBean's.
Returns:
a TargetAccessRuleBeanCollection instance.
Since:
0.3.0

createTrue

True createTrue()
Specified by:
createTrue in interface PartFactory
Since:
0.9.0

createFalse

False createFalse()
Specified by:
createFalse in interface PartFactory
Since:
0.9.0

createAnd

And createAnd(Predicate... predicates)
Specified by:
createAnd in interface PartFactory
Since:
0.9.0

createOr

Or createOr(Predicate... predicates)
Specified by:
createOr in interface PartFactory
Since:
0.9.0

createNot

Not createNot(Predicate predicate)
Specified by:
createNot in interface PartFactory
Since:
0.9.0

createPresent

Present createPresent(Value<?> value)
Specified by:
createPresent in interface PartFactory
Since:
0.9.0

createSubstringOf

SubstringOf createSubstringOf(Value<?> first,
                              Value<?> second)
Specified by:
createSubstringOf in interface PartFactory
Since:
0.9.0

createValueRelationalPredicate

ValueRelationalPredicate createValueRelationalPredicate(ValueRelationalPredicate.Relation relation,
                                                        Value<?> first,
                                                        Value<?> second)
Specified by:
createValueRelationalPredicate in interface PartFactory
Since:
0.9.0

createValueSetRelationalPredicate

ValueSetRelationalPredicate createValueSetRelationalPredicate(ValueSetRelationalPredicate.SetRelation relation,
                                                              ValueSet first,
                                                              ValueSet second)
Specified by:
createValueSetRelationalPredicate in interface PartFactory
Since:
0.9.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:16:59
Copyright (c) 2002-2007 Ergon Informatik AG