public interface GroupService extends org.springframework.data.querydsl.QuerydslPredicateExecutor<Group>
| Modifier and Type | Method and Description |
|---|---|
long |
count(com.querydsl.core.types.Predicate predicate) |
void |
delete(long groupId) |
void |
deleteProperties(Group group) |
void |
deleteProperties(long groupId) |
Collection<Group> |
findAll(com.querydsl.core.types.Predicate predicate) |
Collection<Group> |
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) |
Optional<Group> |
findOne(com.querydsl.core.types.Predicate predicate) |
Optional<Group> |
getGroupById(long id) |
Optional<Group> |
getGroupByName(String name)
Get the group with a given name in the default directory.
|
Optional<Group> |
getGroupByName(String name,
UserDirectory userDirectory)
Get the group with a given name in the specified directory.
|
Collection<Group> |
getGroups() |
Collection<Group> |
getGroupsWithPropertyValue(String propertyName,
Object propertyValue)
Returns all groups having a specific property value.
|
GroupProperties |
getProperties(Group group) |
Group |
save(Group groupDto) |
void |
saveProperties(GroupProperties groupProperties) |
Collection<Group> getGroups()
Optional<Group> getGroupByName(String name)
name - of the groupnull if not foundOptional<Group> getGroupByName(String name, UserDirectory userDirectory)
name - of the groupuserDirectory - the group should belong tonull if not foundvoid delete(long groupId)
GroupProperties getProperties(Group group)
void saveProperties(GroupProperties groupProperties)
void deleteProperties(Group group)
void deleteProperties(long groupId)
Collection<Group> getGroupsWithPropertyValue(String propertyName, Object propertyValue)
propertyName - name of the propertypropertyValue - value the property should haveOptional<Group> findOne(com.querydsl.core.types.Predicate predicate)
findOne in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<Group>Collection<Group> findAll(com.querydsl.core.types.Predicate predicate)
findAll in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<Group>Collection<Group> findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orderSpecifiers)
findAll in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<Group>org.springframework.data.domain.Page<Group> findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Pageable pageable)
findAll in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<Group>long count(com.querydsl.core.types.Predicate predicate)
count in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<Group>Copyright © 2020. All rights reserved.