Interface SelectionService

All Known Implementing Classes:
SelectionServiceImpl

public interface SelectionService
  • Method Details

    • resolveEntities

      default PrimaryKeyList resolveEntities(EntitySelectionBean entitySelection)
    • resolveEntities

      PrimaryKeyList resolveEntities(EntitySelectionBean EntitySelection, boolean ignoreMissingEntities)
    • restrictToSelection

      void restrictToSelection(EntitySelectionBean entitySelection, QueryBuilderBase<?,?> queryBuilder)
      Restricts the query to the selected entities. Unlike resolveEntities(EntitySelectionBean), a SelectionType.QUERY selection (e.g. all entities of a list) is not resolved to its keys: its search conditions are added to the query instead, which is much faster for large selections. Read permissions are therefore only applied as query conditions (like for the count of a list), the selected entities are not checked one by one. A selection with a limit is resolved to its keys.
      Throws:
      BadRequestException - if the selection is invalid or does not match the entity model of the query