@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()
ApprovedSiteRepositorygetAll in interface ApprovedSiteRepository@Transactional(value="defaultTransactionManager") public ApprovedSite getById(Long id)
ApprovedSiteRepositorygetById in interface ApprovedSiteRepositoryid - id the id of the ApprovedSite@Transactional(value="defaultTransactionManager") public void remove(ApprovedSite approvedSite)
ApprovedSiteRepositoryremove in interface ApprovedSiteRepository@Transactional(value="defaultTransactionManager") public ApprovedSite save(ApprovedSite approvedSite)
ApprovedSiteRepositorysave in interface ApprovedSiteRepositorypublic Collection<ApprovedSite> getByClientIdAndUserId(String clientId, String userId)
ApprovedSiteRepositorygetByClientIdAndUserId in interface ApprovedSiteRepository@Transactional(value="defaultTransactionManager") public Collection<ApprovedSite> getByUserId(String userId)
ApprovedSiteRepositorygetByUserId in interface ApprovedSiteRepository@Transactional(value="defaultTransactionManager") public Collection<ApprovedSite> getByClientId(String clientId)
ApprovedSiteRepositorygetByClientId in interface ApprovedSiteRepositoryCopyright © 2018. All rights reserved.