@Service public class DefaultPermissionService extends Object implements PermissionService
Constructor and Description |
---|
DefaultPermissionService() |
Modifier and Type | Method and Description |
---|---|
PermissionTicket |
createTicket(ResourceSet resourceSet,
Set<String> scopes) |
PermissionTicket |
getByTicket(String ticket)
Read the permission associated with the given ticket.
|
PermissionTicket |
updateTicket(PermissionTicket ticket)
Save the updated permission ticket to the database.
|
public DefaultPermissionService()
public PermissionTicket createTicket(ResourceSet resourceSet, Set<String> scopes)
createTicket
in interface PermissionService
resourceSet
- the resource set to create the permission onscopes
- the set of scopes that this permission is forpublic PermissionTicket getByTicket(String ticket)
PermissionService
getByTicket
in interface PermissionService
public PermissionTicket updateTicket(PermissionTicket ticket)
PermissionService
updateTicket
in interface PermissionService
Copyright © 2018. All rights reserved.