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.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
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
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:14:59
Copyright (c) 2002-2007 Ergon Informatik AG