Interface DuracloudRightsRepo

All Superinterfaces:
org.springframework.data.repository.CrudRepository<AccountRights,Long>, org.springframework.data.jpa.repository.JpaRepository<AccountRights,Long>, org.springframework.data.repository.PagingAndSortingRepository<AccountRights,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<AccountRights>, org.springframework.data.repository.Repository<AccountRights,Long>

@Repository("rightsRepo") public interface DuracloudRightsRepo extends org.springframework.data.jpa.repository.JpaRepository<AccountRights,Long>
Author:
Erik Paulsson Date: 7/8/13
  • Method Summary

    Modifier and Type
    Method
    Description
    findByAccountId(Long accountId)
    This method returns the set of rights for a given account The list may be of 0 length
    findByAccountIdAndUserId(Long accountId, Long userId)
    This method returns the set of rights for a given user in a given account
    This method returns the set of rights for a given user The list may be of 0 length

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByAccountId

      List<AccountRights> findByAccountId(Long accountId)
      This method returns the set of rights for a given account The list may be of 0 length
      Parameters:
      accountId - of account
      Returns:
      set of rights
    • findByUserId

      List<AccountRights> findByUserId(Long userId)
      This method returns the set of rights for a given user The list may be of 0 length
      Parameters:
      userId - of User
      Returns:
      set of rights
    • findByAccountIdAndUserId

      AccountRights findByAccountIdAndUserId(Long accountId, Long userId)
      This method returns the set of rights for a given user in a given account
      Parameters:
      accountId -
      userId -
      Returns:
      rights