Interface MachinePrincipalService
- All Superinterfaces:
org.springframework.data.querydsl.QuerydslPredicateExecutor<MachinePrincipal>
- All Known Implementing Classes:
MachinePrincipalServiceImpl
public interface MachinePrincipalService
extends org.springframework.data.querydsl.QuerydslPredicateExecutor<MachinePrincipal>
- Author:
- Arne Vandamme
-
Method Summary
Modifier and TypeMethodDescriptionlongcount(com.querydsl.core.types.Predicate predicate) 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<MachinePrincipal>findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Pageable pageable) findOne(com.querydsl.core.types.Predicate predicate) getMachinePrincipalById(long id) Get the machine with a given name in the default directory.getMachinePrincipalByName(String name, UserDirectory userDirectory) Get the group with a given name in the specified directory.save(MachinePrincipal machinePrincipalDto) Methods inherited from interface org.springframework.data.querydsl.QuerydslPredicateExecutor
exists, findAll, findAll, findBy
-
Method Details
-
getMachinePrincipals
Collection<MachinePrincipal> getMachinePrincipals()- Returns:
- all registered machine principals
-
getMachinePrincipalById
-
getMachinePrincipalByName
Get the machine with a given name in the default directory.- Parameters:
name- of the machine- Returns:
- instance or
nullif not found
-
getMachinePrincipalByName
Get the group with a given name in the specified directory.- Parameters:
name- of the machineuserDirectory- the machine should belong to- Returns:
- instance or
nullif not found
-
save
-
findOne
- Specified by:
findOnein interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<MachinePrincipal>
-
findAll
- Specified by:
findAllin interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<MachinePrincipal>
-
findAll
Collection<MachinePrincipal> findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orderSpecifiers) - Specified by:
findAllin interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<MachinePrincipal>
-
findAll
org.springframework.data.domain.Page<MachinePrincipal> findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Pageable pageable) - Specified by:
findAllin interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<MachinePrincipal>
-
count
long count(com.querydsl.core.types.Predicate predicate) - Specified by:
countin interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<MachinePrincipal>
-