Package org.duracloud.account.db.repo
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<AccountRights>findByAccountId(Long accountId)This method returns the set of rights for a given account The list may be of 0 lengthAccountRightsfindByAccountIdAndUserId(Long accountId, Long userId)This method returns the set of rights for a given user in a given accountList<AccountRights>findByUserId(Long userId)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, delete, delete, deleteAll, exists, findOne, save
-
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlush
-
-
-
-
Method Detail
-
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
-
-