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
Modifier and TypeMethodDescriptionfindByAccountId(Long accountId) This method returns the set of rights for a given account The list may be of 0 lengthfindByAccountIdAndUserId(Long accountId, Long userId) This method returns the set of rights for a given user in a given accountfindByUserId(Long userId) This method returns the set of rights for a given user The list may be of 0 lengthMethods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByAccountId
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
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
This method returns the set of rights for a given user in a given account- Parameters:
accountId-userId-- Returns:
- rights
-