@Repository public class JpaApprovedSiteRepository extends Object implements ApprovedSiteRepository
Constructor and Description |
---|
JpaApprovedSiteRepository() |
Modifier and Type | Method and Description |
---|---|
Collection<ApprovedSite> |
getAll()
Return a collection of all ApprovedSites managed by this repository
|
Collection<ApprovedSite> |
getByClientId(String clientId)
Get all sites associated with this client
|
Collection<ApprovedSite> |
getByClientIdAndUserId(String clientId,
String userId)
Return a collection of ApprovedSite managed by this repository matching the
provided client ID and user ID
|
ApprovedSite |
getById(Long id)
Returns the ApprovedSite for the given id
|
Collection<ApprovedSite> |
getByUserId(String userId)
Get all sites approved by this user
|
void |
remove(ApprovedSite approvedSite)
Removes the given ApprovedSite from the repository
|
ApprovedSite |
save(ApprovedSite approvedSite)
Persists an ApprovedSite
|
public JpaApprovedSiteRepository()
@Transactional(value="defaultTransactionManager") public Collection<ApprovedSite> getAll()
ApprovedSiteRepository
getAll
in interface ApprovedSiteRepository
@Transactional(value="defaultTransactionManager") public ApprovedSite getById(Long id)
ApprovedSiteRepository
getById
in interface ApprovedSiteRepository
id
- id the id of the ApprovedSite@Transactional(value="defaultTransactionManager") public void remove(ApprovedSite approvedSite)
ApprovedSiteRepository
remove
in interface ApprovedSiteRepository
@Transactional(value="defaultTransactionManager") public ApprovedSite save(ApprovedSite approvedSite)
ApprovedSiteRepository
save
in interface ApprovedSiteRepository
public Collection<ApprovedSite> getByClientIdAndUserId(String clientId, String userId)
ApprovedSiteRepository
getByClientIdAndUserId
in interface ApprovedSiteRepository
@Transactional(value="defaultTransactionManager") public Collection<ApprovedSite> getByUserId(String userId)
ApprovedSiteRepository
getByUserId
in interface ApprovedSiteRepository
@Transactional(value="defaultTransactionManager") public Collection<ApprovedSite> getByClientId(String clientId)
ApprovedSiteRepository
getByClientId
in interface ApprovedSiteRepository
Copyright © 2018. All rights reserved.