org.openpermis.policy.bean.basic
Class BasicTargetAccessRuleCollection

java.lang.Object
  extended by org.openpermis.policy.bean.basic.BasicPart
      extended by org.openpermis.policy.bean.basic.BasicPartBean
          extended by org.openpermis.policy.bean.basic.BasicAbstractCollection<TargetAccessRuleBean>
              extended by 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

Constructor Summary
protected BasicTargetAccessRuleCollection(SerialNumber serialNumber)
          Creates a basic target access rule collection.
protected BasicTargetAccessRuleCollection(SerialNumber serialNumber, Collection<TargetAccessRuleBean> collection)
          Creates a basic target access rule collection.
 
Method Summary
 BasicTargetAccessRuleCollection create(List<TargetAccessRuleBean> list)
          Returns a new bean collection containing the list.
 List<AuthorizedRoles> findAuthorizedRoleSets(URI resourceUri, String actionName, List<?> arguments, TimeStamp timeStamp)
          Returns a list of authorized role sets.
protected  boolean isCollectionType(BasicPart part)
          Returns true if collection type of part is an instance of this collection.
 
Methods inherited from class org.openpermis.policy.bean.basic.BasicAbstractCollection
appendPartDetails, comparablePart, equalPart, findBySerialNumber, getCollection, isPartValid, iterator, partHashCode, toList
 
Methods inherited from class org.openpermis.policy.bean.basic.BasicPartBean
addPropertyChangeListener, equalSerialNumber, firePropertyChange, getPartBeanType, getSerialNumber, getSerialNumberString, notifyIdentityChange, notifyNameChange, removePropertyChangeListener, toShortString
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openpermis.policy.bean.BeanCollection
iterator, toList
 
Methods inherited from interface org.openpermis.policy.bean.PartBean
addPropertyChangeListener, equalSerialNumber, findBySerialNumber, getPartBeanType, getSerialNumber, removePropertyChangeListener, toShortString
 

Constructor Detail

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
Method Detail

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:49
Copyright (c) 2002-2007 Ergon Informatik AG