Package com.cmobilecom.af.model.bean
Class EntitySelectionWalker<T extends PersistenceEntity>
- java.lang.Object
-
- com.cmobilecom.af.model.bean.EntitySelectionWalker<T>
-
- Type Parameters:
T
- entity type, sub type of PersistenceEntity
public class EntitySelectionWalker<T extends PersistenceEntity> extends java.lang.Object
Walk and visit all the selected entities in a pageable entity list. Entity selection scope can be selected entities of the current page, all the entities of the current page, or all the entities of the pageable entity list.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description EntitySelectionWalker(PageableEntityList<T> pageableEntityList, EntityListBackingBean.EntitySelectScope entitySelectScope)
Constructor with a PageableEntityList and EntitySelectScope
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visitEntities(EntitySelectionVisitor<T> visitor)
Walk and visit all the selected entities in the pageable entity list.
-
-
-
Constructor Detail
-
EntitySelectionWalker
public EntitySelectionWalker(PageableEntityList<T> pageableEntityList, EntityListBackingBean.EntitySelectScope entitySelectScope)
Constructor with a PageableEntityList and EntitySelectScope- Parameters:
pageableEntityList
- a pageable entity listentitySelectScope
- entity selection scope
-
-
Method Detail
-
visitEntities
public void visitEntities(EntitySelectionVisitor<T> visitor) throws SystemException
Walk and visit all the selected entities in the pageable entity list.- Parameters:
visitor
- an EntitySelectionVisitor- Throws:
SystemException
- throw if an error occurs
-
-