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 Summary
Modifier and TypeMethodDescriptionlongcount(com.querydsl.core.types.Predicate predicate) voiddelete(long groupId) voiddeleteProperties(long groupId) voiddeleteProperties(Group group) findAll(com.querydsl.core.types.Predicate predicate) findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orderSpecifiers) org.springframework.data.domain.Page<Group>findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Pageable pageable) findOne(com.querydsl.core.types.Predicate predicate) getGroupById(long id) getGroupByName(String name) Get the group with a given name in the default directory.getGroupByName(String name, UserDirectory userDirectory) Get the group with a given name in the specified directory.getGroupsWithPropertyValue(String propertyName, Object propertyValue) Returns all groups having a specific property value.getProperties(Group group) voidsaveProperties(GroupProperties groupProperties) Methods inherited from interface org.springframework.data.querydsl.QuerydslPredicateExecutor
exists, findAll, findAll, findBy
-
Method Details
-
getGroups
Collection<Group> getGroups() -
getGroupById
-
getGroupByName
Get the group with a given name in the default directory.- Parameters:
name- of the group- Returns:
- instance or
nullif not found
-
getGroupByName
Get the group with a given name in the specified directory.- Parameters:
name- of the groupuserDirectory- the group should belong to- Returns:
- instance or
nullif not found
-
save
-
delete
void delete(long groupId) -
getProperties
-
saveProperties
-
deleteProperties
-
deleteProperties
void deleteProperties(long groupId) -
getGroupsWithPropertyValue
Returns all groups having a specific property value. Will return all matching groups across all user directories.- Parameters:
propertyName- name of the propertypropertyValue- value the property should have- Returns:
- groups
-
findOne
- Specified by:
findOnein interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<Group>
-
findAll
- Specified by:
findAllin interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<Group>
-
findAll
Collection<Group> findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orderSpecifiers) - Specified by:
findAllin interfaceorg.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:
findAllin interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<Group>
-
count
long count(com.querydsl.core.types.Predicate predicate) - Specified by:
countin interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<Group>
-