@Service public class MachinePrincipalServiceImpl extends Object implements MachinePrincipalService
| Constructor and Description |
|---|
MachinePrincipalServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
long |
count(com.querydsl.core.types.Predicate predicate) |
boolean |
exists(com.querydsl.core.types.Predicate predicate) |
Iterable<MachinePrincipal> |
findAll(com.querydsl.core.types.OrderSpecifier<?>... orders) |
Collection<MachinePrincipal> |
findAll(com.querydsl.core.types.Predicate predicate) |
Collection<MachinePrincipal> |
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) |
Iterable<MachinePrincipal> |
findAll(com.querydsl.core.types.Predicate predicate,
org.springframework.data.domain.Sort sort) |
Optional<MachinePrincipal> |
findOne(com.querydsl.core.types.Predicate predicate) |
Optional<MachinePrincipal> |
getMachinePrincipalById(long id) |
Optional<MachinePrincipal> |
getMachinePrincipalByName(String name)
Get the machine with a given name in the default directory.
|
Optional<MachinePrincipal> |
getMachinePrincipalByName(String name,
UserDirectory userDirectory)
Get the group with a given name in the specified directory.
|
Collection<MachinePrincipal> |
getMachinePrincipals() |
MachinePrincipal |
save(MachinePrincipal machinePrincipalDto) |
public Collection<MachinePrincipal> getMachinePrincipals()
getMachinePrincipals in interface MachinePrincipalService@Cacheable(value="securityPrincipalCache",
unless="true && (#result instanceof T(java.util.Optional) && #result.isPresent() ) || (not (#result instanceof T(java.util.Optional)) && #result != null)")
public Optional<MachinePrincipal> getMachinePrincipalById(long id)
getMachinePrincipalById in interface MachinePrincipalServicepublic Optional<MachinePrincipal> getMachinePrincipalByName(String name)
MachinePrincipalServicegetMachinePrincipalByName in interface MachinePrincipalServicename - of the machinenull if not foundpublic Optional<MachinePrincipal> getMachinePrincipalByName(String name, UserDirectory userDirectory)
MachinePrincipalServicegetMachinePrincipalByName in interface MachinePrincipalServicename - of the machineuserDirectory - the machine should belong tonull if not foundpublic MachinePrincipal save(MachinePrincipal machinePrincipalDto)
save in interface MachinePrincipalServicepublic Optional<MachinePrincipal> findOne(com.querydsl.core.types.Predicate predicate)
findOne in interface MachinePrincipalServicefindOne in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<MachinePrincipal>public Collection<MachinePrincipal> findAll(com.querydsl.core.types.Predicate predicate)
findAll in interface MachinePrincipalServicefindAll in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<MachinePrincipal>public Iterable<MachinePrincipal> findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Sort sort)
findAll in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<MachinePrincipal>public Collection<MachinePrincipal> findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orderSpecifiers)
findAll in interface MachinePrincipalServicefindAll in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<MachinePrincipal>public Iterable<MachinePrincipal> findAll(com.querydsl.core.types.OrderSpecifier<?>... orders)
findAll in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<MachinePrincipal>public org.springframework.data.domain.Page<MachinePrincipal> findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Pageable pageable)
findAll in interface MachinePrincipalServicefindAll in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<MachinePrincipal>public long count(com.querydsl.core.types.Predicate predicate)
count in interface MachinePrincipalServicecount in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<MachinePrincipal>public boolean exists(com.querydsl.core.types.Predicate predicate)
exists in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<MachinePrincipal>Copyright © 2020. All rights reserved.