Interface SpacePermissionsFilterDao

  • All Known Implementing Classes:
    HibernateSpacePermissionsFilterDao

    public interface SpacePermissionsFilterDao

    A DAO used exclusively by the SpacePermissionsFilter for performance reasons. This DAO deals with spaces but has requirements that don't really fit on the more generic SpaceDao.

    • Method Detail

      • getPermittedSpaceKeys

        List<String> getPermittedSpaceKeys​(SpacePermissionQueryBuilder userPermissionQueryBuilder)
        Get the keys for all spaces the supplied user does not have permission on.
        Parameters:
        userPermissionQueryBuilder - filter containing the information required to filter what the given user (or anonymous) can see
        Returns:
        a List of space key Strings
      • getUnPermittedSpaceKeys

        List<String> getUnPermittedSpaceKeys​(SpacePermissionQueryBuilder userPermissionQueryBuilder)
        Get the keys for all spaces the supplied user does not permission on. The permission being checked is passed in with SpacePermissionQueryBuilder.
        Parameters:
        userPermissionQueryBuilder - filter containing the information required to filter what the given user (or anonymous) can see
        Returns:
        a List of space key Strings