@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)
PermissionRepository
save
in interface PermissionRepository
public PermissionTicket getByTicket(String ticket)
PermissionRepository
getByTicket
in interface PermissionRepository
public Collection<PermissionTicket> getAll()
PermissionRepository
getAll
in interface PermissionRepository
@Transactional(value="defaultTransactionManager") public Permission saveRawPermission(Permission p)
PermissionRepository
saveRawPermission
in interface PermissionRepository
public Permission getById(Long permissionId)
PermissionRepository
getById
in interface PermissionRepository
public Collection<PermissionTicket> getPermissionTicketsForResourceSet(ResourceSet rs)
PermissionRepository
getPermissionTicketsForResourceSet
in interface PermissionRepository
@Transactional(value="defaultTransactionManager") public void remove(PermissionTicket ticket)
PermissionRepository
remove
in interface PermissionRepository
Copyright © 2018. All rights reserved.