@Repository public class JpaPermissionRepository extends Object implements PermissionRepository
| Constructor and Description |
|---|
JpaPermissionRepository() |
| Modifier and Type | Method and Description |
|---|---|
Collection<PermissionTicket> |
getAll()
Get all the tickets in the system (used by the import/export API)
|
Permission |
getById(Long permissionId)
Get a permission object by its ID (used by the import/export API)
|
PermissionTicket |
getByTicket(String ticket)
Get the permission indicated by its ticket value.
|
Collection<PermissionTicket> |
getPermissionTicketsForResourceSet(ResourceSet rs)
Get all permission tickets issued against a resource set (called when RS is deleted)
|
void |
remove(PermissionTicket ticket)
Remove the specified ticket.
|
PermissionTicket |
save(PermissionTicket p)
Save a permission ticket.
|
Permission |
saveRawPermission(Permission p)
Save a permission object with no associated ticket (used by the import/export API)
|
public JpaPermissionRepository()
@Transactional(value="defaultTransactionManager") public PermissionTicket save(PermissionTicket p)
PermissionRepositorysave in interface PermissionRepositorypublic PermissionTicket getByTicket(String ticket)
PermissionRepositorygetByTicket in interface PermissionRepositorypublic Collection<PermissionTicket> getAll()
PermissionRepositorygetAll in interface PermissionRepository@Transactional(value="defaultTransactionManager") public Permission saveRawPermission(Permission p)
PermissionRepositorysaveRawPermission in interface PermissionRepositorypublic Permission getById(Long permissionId)
PermissionRepositorygetById in interface PermissionRepositorypublic Collection<PermissionTicket> getPermissionTicketsForResourceSet(ResourceSet rs)
PermissionRepositorygetPermissionTicketsForResourceSet in interface PermissionRepository@Transactional(value="defaultTransactionManager") public void remove(PermissionTicket ticket)
PermissionRepositoryremove in interface PermissionRepositoryCopyright © 2018. All rights reserved.