Class EntitySelectionWalker<T extends PersistenceEntity>

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

      • EntitySelectionWalker

        public EntitySelectionWalker​(PageableEntityList<T> pageableEntityList,
                                     EntityListBackingBean.EntitySelectScope entitySelectScope)
        Constructor with a PageableEntityList and EntitySelectScope
        Parameters:
        pageableEntityList - a pageable entity list
        entitySelectScope - 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