org.openpermis.policy.bean.basic
Class BasicActionCollection

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<ActionBean>
              extended by org.openpermis.policy.bean.basic.BasicActionCollection
All Implemented Interfaces:
Serializable, Iterable<ActionBean>, ActionCollection, ActionBeanCollection, BeanCollection<ActionBean>, PartBean, Part

public class BasicActionCollection
extends BasicAbstractCollection<ActionBean>
implements ActionBeanCollection

Basic implementation of BasicActionCollection.

See Also:
Serialized Form
Since:
0.3.0

Constructor Summary
protected BasicActionCollection(SerialNumber serialNumber)
          Creates a basic action collection.
protected BasicActionCollection(SerialNumber serialNumber, Collection<ActionBean> collection)
          Creates a basic action collection.
 
Method Summary
 BasicActionCollection create(List<ActionBean> list)
          Returns a new action bean collection containing the list.
 Action findMatch(String actionName, List<?> arguments)
          Returns an action of this action collection which matches the action name and the list of arguments.
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
accept, appendPartDetails, comparablePart, equalPart, findBySerialNumber, getCollection, iterator, partHashCode, toList
 
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 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
accept, accept, addPropertyChangeListener, checkLocalPartConsistency, equalSerialNumber, findBySerialNumber, getPartBeanType, getSerialNumber, instanceOf, removePropertyChangeListener, toShortString
 
Methods inherited from interface org.openpermis.policy.Part
equals, hashCode, toString
 

Constructor Detail

BasicActionCollection

protected BasicActionCollection(SerialNumber serialNumber)
Creates a basic action collection.

Parameters:
serialNumber - the serial number of this part.
Since:
0.3.0

BasicActionCollection

protected BasicActionCollection(SerialNumber serialNumber,
                                Collection<ActionBean> collection)
Creates a basic action collection.

Parameters:
serialNumber - the serial number of this part.
collection - a collection of ActionBean's.
Since:
0.3.0
Method Detail

findMatch

public Action findMatch(String actionName,
                        List<?> arguments)
Description copied from interface: ActionCollection
Returns an action of this action collection which matches the action name and the list of arguments.

Specified by:
findMatch in interface ActionCollection
Parameters:
actionName - the name of the action.
arguments - an optional list of arguments to match.
Returns:
the action which match or null if no such action exists.
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<ActionBean>
Parameters:
part - a BasicPart.
Returns:
true if collection type of part is an instance of this collection.
Since:
0.3.0

create

public BasicActionCollection create(List<ActionBean> list)
Description copied from interface: ActionBeanCollection
Returns a new action bean collection containing the list.

Specified by:
create in interface ActionBeanCollection
Specified by:
create in interface BeanCollection<ActionBean>
Parameters:
list - a List.
Returns:
a new action 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