org.openpermis.policy.bean.basic
Class BasicTargetAccessRuleCollection
java.lang.Object
org.openpermis.policy.bean.basic.BasicPart
org.openpermis.policy.bean.basic.BasicPartBean
org.openpermis.policy.bean.basic.BasicAbstractCollection<TargetAccessRuleBean>
org.openpermis.policy.bean.basic.BasicTargetAccessRuleCollection
- All Implemented Interfaces:
- Serializable, Iterable<TargetAccessRuleBean>, BeanCollection<TargetAccessRuleBean>, PartBean, TargetAccessRuleBeanCollection, Part, TargetAccessRuleCollection
public class BasicTargetAccessRuleCollection
- extends BasicAbstractCollection<TargetAccessRuleBean>
- implements TargetAccessRuleBeanCollection
Basic implementation of TargetAccessRuleBeanCollection
.
- 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 |
BasicTargetAccessRuleCollection
protected BasicTargetAccessRuleCollection(SerialNumber serialNumber)
- Creates a basic target access rule collection.
- Parameters:
serialNumber
- the serial number of this part.- Since:
- 0.3.0
BasicTargetAccessRuleCollection
protected BasicTargetAccessRuleCollection(SerialNumber serialNumber,
Collection<TargetAccessRuleBean> collection)
- Creates a basic target access rule collection.
- Parameters:
serialNumber
- the serial number of this part.collection
- a collection of TargetAccessRuleBean
's.- Since:
- 0.3.0
findAuthorizedRoleSets
public List<AuthorizedRoles> findAuthorizedRoleSets(URI resourceUri,
String actionName,
List<?> arguments,
TimeStamp timeStamp)
- Description copied from interface:
TargetAccessRuleCollection
- Returns a list of authorized role sets.
- Specified by:
findAuthorizedRoleSets
in interface TargetAccessRuleCollection
- Parameters:
resourceUri
- an URI
to identify a resource.actionName
- the name of an action.arguments
- an optional list of arguments for the action.timeStamp
- a TimeStamp
to determine the temporal time context.
- Returns:
- a list of authorized role sets.
- 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<TargetAccessRuleBean>
- Parameters:
part
- a BasicPart
.
- Returns:
- true if collection type of part is an instance of this collection.
- Since:
- 0.3.0
create
public BasicTargetAccessRuleCollection create(List<TargetAccessRuleBean> list)
- Description copied from interface:
BeanCollection
- Returns a new bean collection containing the list.
- Specified by:
create
in interface BeanCollection<TargetAccessRuleBean>
- 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