Class GroupListView<T extends BasicGroup,​VO extends BasicGroupVO>

  • Type Parameters:
    T - the type of the groups contained in this list
    VO - the type of the elements in the sorted hierarchy
    All Implemented Interfaces:
    Iterable<T>

    public class GroupListView<T extends BasicGroup,​VO extends BasicGroupVO>
    extends Object
    implements Iterable<T>
    View for a set of groups. The contained items or a sorted hierarchy can be obtained from this class.
    • Method Detail

      • check

        public void check​(Collection<BasicGroupVO> selection)
                   throws PermissionDeniedException
        Ensure all groups in the given selection are contained in the group list. If the list and the selected are both empty then it returns silently. This method must be used in the security layer to check the group filters used in a query.
        Throws:
        PermissionDeniedException - if at least one selected groups is not contained in the list.
      • containsAny

        public boolean containsAny​(BasicGroup... elements)
        Returns true if this view contains at least on of the given elements.
      • defaultFilter

        public Set<VO> defaultFilter()
      • isEmpty

        public boolean isEmpty()
      • isNotEmpty

        public boolean isNotEmpty()
      • items

        public Set<T> items()
      • sorted

        public List<VO> sorted()
      • stream

        public Stream<T> stream()