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 Details

    • getMachinePrincipals

      Collection<MachinePrincipal> getMachinePrincipals()
      Returns:
      all registered machine principals
    • getMachinePrincipalById

      Optional<MachinePrincipal> getMachinePrincipalById(long id)
    • getMachinePrincipalByName

      Optional<MachinePrincipal> getMachinePrincipalByName(String name)
      Get the machine with a given name in the default directory.
      Parameters:
      name - of the machine
      Returns:
      instance or null if not found
    • getMachinePrincipalByName

      Optional<MachinePrincipal> getMachinePrincipalByName(String name, UserDirectory userDirectory)
      Get the group with a given name in the specified directory.
      Parameters:
      name - of the machine
      userDirectory - the machine should belong to
      Returns:
      instance or null if not found
    • save

      MachinePrincipal save(MachinePrincipal machinePrincipalDto)
    • findOne

      Optional<MachinePrincipal> findOne(com.querydsl.core.types.Predicate predicate)
      Specified by:
      findOne in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<MachinePrincipal>
    • findAll

      Collection<MachinePrincipal> findAll(com.querydsl.core.types.Predicate predicate)
      Specified by:
      findAll in interface org.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 interface org.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 interface org.springframework.data.querydsl.QuerydslPredicateExecutor<MachinePrincipal>
    • count

      long count(com.querydsl.core.types.Predicate predicate)
      Specified by:
      count in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<MachinePrincipal>