org.openpermis.policy.bean.basic
Class BasicTargetCollection
java.lang.Object
org.openpermis.policy.bean.basic.BasicPart
org.openpermis.policy.bean.basic.BasicPartBean
org.openpermis.policy.bean.basic.BasicAbstractCollection<TargetBean>
org.openpermis.policy.bean.basic.BasicTargetCollection
- All Implemented Interfaces:
- Serializable, Iterable<TargetBean>, BeanCollection<TargetBean>, PartBean, TargetBeanCollection, Part, TargetCollection
public class BasicTargetCollection
- extends BasicAbstractCollection<TargetBean>
- implements TargetBeanCollection
Basic implementation of TargetBeanCollection
.
- 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 |
BasicTargetCollection
protected BasicTargetCollection(SerialNumber serialNumber)
- Creates a basic target collection.
- Parameters:
serialNumber
- the serial number of this part.- Since:
- 0.3.0
BasicTargetCollection
protected BasicTargetCollection(SerialNumber serialNumber,
Collection<TargetBean> collection)
- Creates a basic target collection.
- Parameters:
serialNumber
- the serial number of this part.collection
- a collection of TargetBean
's.- 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<TargetBean>
- Parameters:
part
- a BasicPart
.
- Returns:
- true if collection type of part is an instance of this collection.
- Since:
- 0.3.0
contains
public boolean contains(Target target)
- Description copied from interface:
TargetCollection
- Returns true if target is contained in this collection.
- Specified by:
contains
in interface TargetCollection
- Parameters:
target
- the target.
- Returns:
- true if target is contained in this collection.
- Since:
- 0.3.0
create
public BasicTargetCollection create(List<TargetBean> list)
- Description copied from interface:
BeanCollection
- Returns a new bean collection containing the list.
- Specified by:
create
in interface BeanCollection<TargetBean>
- 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