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.BasicPart |
appendDetails, equals, getIdentity, getName, getSimpleClassName, hashCode, hasPartIdentity, hasPartName, isChildCollectionValid, isChildNotNull, isChildNullOrValid, isChildValid, isIdentityValid, isNameValid, isValid, reportProblem, setIdentity, setName, toString |
serialVersionUID
private static final long serialVersionUID
- Constant Field Value:
-956620427014379243L
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)
- 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.
- 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
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:14:59
Copyright (c) 2002-2007 Ergon Informatik AG