Interface GroupService

All Superinterfaces:
org.springframework.data.querydsl.QuerydslPredicateExecutor<Group>
All Known Implementing Classes:
GroupServiceImpl

public interface GroupService extends org.springframework.data.querydsl.QuerydslPredicateExecutor<Group>
Author:
Arne Vandamme
  • Method Details

    • getGroups

      Collection<Group> getGroups()
    • getGroupById

      Optional<Group> getGroupById(long id)
    • getGroupByName

      Optional<Group> getGroupByName(String name)
      Get the group with a given name in the default directory.
      Parameters:
      name - of the group
      Returns:
      instance or null if not found
    • getGroupByName

      Optional<Group> getGroupByName(String name, UserDirectory userDirectory)
      Get the group with a given name in the specified directory.
      Parameters:
      name - of the group
      userDirectory - the group should belong to
      Returns:
      instance or null if not found
    • save

      Group save(Group groupDto)
    • delete

      void delete(long groupId)
    • getProperties

      GroupProperties getProperties(Group group)
    • saveProperties

      void saveProperties(GroupProperties groupProperties)
    • deleteProperties

      void deleteProperties(Group group)
    • deleteProperties

      void deleteProperties(long groupId)
    • getGroupsWithPropertyValue

      Collection<Group> getGroupsWithPropertyValue(String propertyName, Object propertyValue)
      Returns all groups having a specific property value. Will return all matching groups across all user directories.
      Parameters:
      propertyName - name of the property
      propertyValue - value the property should have
      Returns:
      groups
    • findOne

      Optional<Group> findOne(com.querydsl.core.types.Predicate predicate)
      Specified by:
      findOne in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<Group>
    • findAll

      Collection<Group> findAll(com.querydsl.core.types.Predicate predicate)
      Specified by:
      findAll in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<Group>
    • findAll

      Collection<Group> findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orderSpecifiers)
      Specified by:
      findAll in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<Group>
    • findAll

      org.springframework.data.domain.Page<Group> findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Pageable pageable)
      Specified by:
      findAll in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<Group>
    • count

      long count(com.querydsl.core.types.Predicate predicate)
      Specified by:
      count in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<Group>