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 TypeMethodDescriptionlong
count
(com.querydsl.core.types.Predicate predicate) void
delete
(long groupId) void
deleteProperties
(long groupId) void
deleteProperties
(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) void
saveProperties
(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
null
if 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
null
if 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:
findOne
in interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<Group>
-
findAll
- Specified by:
findAll
in interfaceorg.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 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:
findAll
in interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<Group>
-
count
long count(com.querydsl.core.types.Predicate predicate) - Specified by:
count
in interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<Group>
-