@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) |
Set<SystemScope> |
getAll() |
SystemScope |
getById(Long id) |
SystemScope |
getByValue(String value) |
Set<SystemScope> |
getDefaults() |
Set<SystemScope> |
getReserved() |
Set<SystemScope> |
getRestricted() |
Set<SystemScope> |
getUnrestricted() |
void |
remove(SystemScope scope) |
Set<SystemScope> |
removeReservedScopes(Set<SystemScope> scopes) |
Set<SystemScope> |
removeRestrictedAndReservedScopes(Set<SystemScope> scopes) |
SystemScope |
save(SystemScope scope) |
boolean |
scopesMatch(Set<String> expected,
Set<String> actual) |
Set<String> |
toStrings(Set<SystemScope> scope) |
public DefaultSystemScopeService()
public Set<SystemScope> getAll()
getAll
in interface SystemScopeService
public SystemScope getById(Long id)
getById
in interface SystemScopeService
public SystemScope getByValue(String value)
getByValue
in interface SystemScopeService
public void remove(SystemScope scope)
remove
in interface SystemScopeService
public SystemScope save(SystemScope scope)
save
in interface SystemScopeService
public Set<SystemScope> fromStrings(Set<String> scope)
fromStrings
in interface SystemScopeService
public Set<String> toStrings(Set<SystemScope> scope)
toStrings
in interface SystemScopeService
public boolean scopesMatch(Set<String> expected, Set<String> actual)
scopesMatch
in interface SystemScopeService
public Set<SystemScope> getDefaults()
getDefaults
in interface SystemScopeService
public Set<SystemScope> getReserved()
getReserved
in interface SystemScopeService
public Set<SystemScope> getRestricted()
getRestricted
in interface SystemScopeService
public Set<SystemScope> getUnrestricted()
getUnrestricted
in interface SystemScopeService
public Set<SystemScope> removeRestrictedAndReservedScopes(Set<SystemScope> scopes)
removeRestrictedAndReservedScopes
in interface SystemScopeService
public Set<SystemScope> removeReservedScopes(Set<SystemScope> scopes)
removeReservedScopes
in interface SystemScopeService
Copyright © 2022. All rights reserved.