org.openpermis.policy.bean.basic
Class BasicRoleAssignmentRuleCollection
java.lang.Object
org.openpermis.policy.bean.basic.BasicPart
org.openpermis.policy.bean.basic.BasicPartBean
org.openpermis.policy.bean.basic.BasicAbstractCollection<RoleAssignmentRuleBean>
org.openpermis.policy.bean.basic.BasicRoleAssignmentRuleCollection
- All Implemented Interfaces:
- Serializable, Iterable<RoleAssignmentRuleBean>, BeanCollection<RoleAssignmentRuleBean>, PartBean, RoleAssignmentRuleBeanCollection, Part, RoleAssignmentRuleCollection
public class BasicRoleAssignmentRuleCollection
- extends BasicAbstractCollection<RoleAssignmentRuleBean>
- implements RoleAssignmentRuleBeanCollection
Basic implementation of RoleAssignmentRuleBeanCollection
.
- See Also:
- Serialized Form
- Since:
- 0.3.0
Methods inherited from class org.openpermis.policy.bean.basic.BasicPartBean |
accept, addPropertyChangeListener, equalSerialNumber, firePropertyChange, getPartBeanType, getSerialNumber, getSerialNumberString, instanceOf, notifyIdentityChange, notifyNameChange, removePropertyChangeListener, toShortString |
Methods inherited from class org.openpermis.policy.bean.basic.BasicPart |
appendDetails, areIdentitiesUnique, areNamesUnique, checkLocalConsistency, checkLocalPartConsistency, equals, getIdentity, getName, getSimpleClassName, hashCode, hasPartIdentity, hasPartName, isIdentityValid, isNameValid, reportProblem, setIdentity, setName, toString |
Methods inherited from interface org.openpermis.policy.bean.PartBean |
accept, accept, addPropertyChangeListener, checkLocalPartConsistency, equalSerialNumber, findBySerialNumber, getPartBeanType, getSerialNumber, instanceOf, removePropertyChangeListener, toShortString |
BasicRoleAssignmentRuleCollection
protected BasicRoleAssignmentRuleCollection(SerialNumber serialNumber)
- Creates a basic role assignment rule collection.
- Parameters:
serialNumber
- the serial number of this part.- Since:
- 0.3.0
BasicRoleAssignmentRuleCollection
protected BasicRoleAssignmentRuleCollection(SerialNumber serialNumber,
Collection<RoleAssignmentRuleBean> collection)
- Creates a basic role assignment rule collection.
- Parameters:
serialNumber
- the serial number of this part.collection
- a collection of RoleAssignmentRuleBean
's.- Since:
- 0.3.0
verifyRoleAssignments
public Set<Role> verifyRoleAssignments(Subject subject,
Set<Role> assertedRoles,
TimeStamp timeStamp)
throws SubjectException
- Description copied from interface:
RoleAssignmentRuleCollection
- Verifies the assignment of the given roles to the given subject according to this collection
of rules, using the clock.
- Specified by:
verifyRoleAssignments
in interface RoleAssignmentRuleCollection
- Parameters:
subject
- a Subject
.assertedRoles
- a set of Role
s.timeStamp
- a TimeStamp
.
- Returns:
- all roles which are correctly assigned.
- Throws:
SubjectException
- signals a problem in reading subjects.- Since:
- 0.3.0
isCollectionType
protected boolean isCollectionType(BasicPart part)
- Description copied from class:
BasicAbstractCollection
- Returns true if collection type of part is an instance of this collection.
- Specified by:
isCollectionType
in class BasicAbstractCollection<RoleAssignmentRuleBean>
- Parameters:
part
- a BasicPart
.
- Returns:
- true if collection type of part is an instance of this collection.
- Since:
- 0.3.0
create
public BasicRoleAssignmentRuleCollection create(List<RoleAssignmentRuleBean> list)
- Description copied from interface:
BeanCollection
- Returns a new bean collection containing the list.
- Specified by:
create
in interface BeanCollection<RoleAssignmentRuleBean>
- Parameters:
list
- a List
.
- Returns:
- a new bean collection containing the list.
- Since:
- 0.3.0
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:16:59
Copyright (c) 2002-2007 Ergon Informatik AG