@Service(value="defaultSystemScopeService") public class DefaultSystemScopeService extends Object implements SystemScopeService
OFFLINE_ACCESS, OPENID_SCOPE, REGISTRATION_TOKEN_SCOPE, reservedScopes, RESOURCE_TOKEN_SCOPE, UMA_AUTHORIZATION_SCOPE, UMA_PROTECTION_SCOPE| Constructor and Description |
|---|
DefaultSystemScopeService() |
| Modifier and Type | Method and Description |
|---|---|
Set<SystemScope> |
fromStrings(Set<String> scope)
Translate the set of scope strings into a set of SystemScope objects.
|
Set<SystemScope> |
getAll() |
SystemScope |
getById(Long id) |
SystemScope |
getByValue(String value) |
Set<SystemScope> |
getDefaults()
Get all scopes that are defaulted to new clients on this system
|
Set<SystemScope> |
getReserved()
Get all the reserved system scopes.
|
Set<SystemScope> |
getRestricted()
Get all the registered scopes that are restricted.
|
Set<SystemScope> |
getUnrestricted()
Get all the registered scopes that aren't restricted.
|
void |
remove(SystemScope scope) |
Set<SystemScope> |
removeReservedScopes(Set<SystemScope> scopes)
Remove any system-reserved scopes from the set and return the result.
|
Set<SystemScope> |
removeRestrictedAndReservedScopes(Set<SystemScope> scopes)
Remove any system-reserved or registered restricted scopes from the
set and return the result.
|
SystemScope |
save(SystemScope scope) |
boolean |
scopesMatch(Set<String> expected,
Set<String> actual)
Test whether the scopes in both sets are compatible.
|
Set<String> |
toStrings(Set<SystemScope> scope)
Pluck the scope values from the set of SystemScope objects and return a list of strings
|
public DefaultSystemScopeService()
public Set<SystemScope> getAll()
getAll in interface SystemScopeServicepublic SystemScope getById(Long id)
getById in interface SystemScopeServicepublic SystemScope getByValue(String value)
getByValue in interface SystemScopeServicepublic void remove(SystemScope scope)
remove in interface SystemScopeServicepublic SystemScope save(SystemScope scope)
save in interface SystemScopeServicepublic Set<SystemScope> fromStrings(Set<String> scope)
SystemScopeServicefromStrings in interface SystemScopeServicepublic Set<String> toStrings(Set<SystemScope> scope)
SystemScopeServicetoStrings in interface SystemScopeServicepublic boolean scopesMatch(Set<String> expected, Set<String> actual)
SystemScopeServicescopesMatch in interface SystemScopeServicepublic Set<SystemScope> getDefaults()
SystemScopeServicegetDefaults in interface SystemScopeServicepublic Set<SystemScope> getReserved()
SystemScopeServicegetReserved in interface SystemScopeServicepublic Set<SystemScope> getRestricted()
SystemScopeServicegetRestricted in interface SystemScopeServicepublic Set<SystemScope> getUnrestricted()
SystemScopeServicegetUnrestricted in interface SystemScopeServicepublic Set<SystemScope> removeRestrictedAndReservedScopes(Set<SystemScope> scopes)
SystemScopeServiceremoveRestrictedAndReservedScopes in interface SystemScopeServicepublic Set<SystemScope> removeReservedScopes(Set<SystemScope> scopes)
SystemScopeServiceremoveReservedScopes in interface SystemScopeServiceCopyright © 2018. All rights reserved.