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 TypeMethodDescriptionlong
count
(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
null
if 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
null
if not found
-
save
-
findOne
- Specified by:
findOne
in interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<MachinePrincipal>
-
findAll
- Specified by:
findAll
in interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<MachinePrincipal>
-
findAll
Collection<MachinePrincipal> findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orderSpecifiers) - Specified by:
findAll
in 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:
findAll
in interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<MachinePrincipal>
-
count
long count(com.querydsl.core.types.Predicate predicate) - Specified by:
count
in interfaceorg.springframework.data.querydsl.QuerydslPredicateExecutor<MachinePrincipal>
-