Package io.jans.configapi.service.auth
Class ScopeService
- java.lang.Object
-
- io.jans.configapi.service.auth.ScopeService
-
@ApplicationScoped public class ScopeService extends Object
Responsible for OpenID Connect, OAuth2 and UMA scopes. (Type is defined by ScopeType.)- Author:
- Yuriy Zabrovarnyy
-
-
Constructor Summary
Constructors Constructor Description ScopeService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addScope(io.jans.as.persistence.model.Scope scope)
String
baseDn()
String
createDn(String inum)
List<io.jans.as.persistence.model.Scope>
getAllScopesList()
List<io.jans.configapi.rest.model.CustomScope>
getAllScopesList(int size)
List<io.jans.configapi.rest.model.CustomScope>
getAllScopesList(int size, String scopeType)
List<io.jans.configapi.rest.model.CustomScope>
getAllScopesList(int size, String scopeType, boolean withAssociatedClients)
List<io.jans.configapi.rest.model.CustomScope>
getAssociatedClients(List<io.jans.configapi.rest.model.CustomScope> scopes)
List<String>
getDefaultScopesDn()
String
getDnForScope(String inum)
io.jans.as.persistence.model.Scope
getScope(String inum)
io.jans.as.persistence.model.Scope
getScopeByDn(String dn)
io.jans.configapi.rest.model.CustomScope
getScopeByInum(String inum)
io.jans.configapi.rest.model.CustomScope
getScopeByInum(String inum, boolean withAssociatedClients)
io.jans.orm.model.PagedResult<io.jans.configapi.rest.model.CustomScope>
getScopeResult(io.jans.model.SearchRequest searchRequest, String scopeType, boolean withAssociatedClients)
List<String>
getScopesDn(List<String> scopeDnList)
void
persist(io.jans.as.persistence.model.Scope scope)
void
removeScope(io.jans.as.persistence.model.Scope scope)
List<io.jans.configapi.rest.model.CustomScope>
searchScope(io.jans.model.SearchRequest searchRequest)
List<io.jans.configapi.rest.model.CustomScope>
searchScopes(String pattern, int sizeLimit)
List<io.jans.configapi.rest.model.CustomScope>
searchScopes(String pattern, int sizeLimit, String scopeType)
List<io.jans.configapi.rest.model.CustomScope>
searchScopes(String pattern, int sizeLimit, String scopeType, boolean withAssociatedClients)
List<io.jans.as.persistence.model.Scope>
searchScopesById(String jsId)
List<io.jans.as.persistence.model.Scope>
searchScopesById(Set<String> scopeIds)
void
updateScope(io.jans.as.persistence.model.Scope scope)
-
-
-
Method Detail
-
baseDn
public String baseDn()
-
persist
public void persist(io.jans.as.persistence.model.Scope scope)
-
addScope
public void addScope(io.jans.as.persistence.model.Scope scope)
-
removeScope
public void removeScope(io.jans.as.persistence.model.Scope scope)
-
updateScope
public void updateScope(io.jans.as.persistence.model.Scope scope)
-
getScope
public io.jans.as.persistence.model.Scope getScope(String inum)
-
getScopeByInum
public io.jans.configapi.rest.model.CustomScope getScopeByInum(String inum)
-
getScopeByInum
public io.jans.configapi.rest.model.CustomScope getScopeByInum(String inum, boolean withAssociatedClients)
-
searchScopes
public List<io.jans.configapi.rest.model.CustomScope> searchScopes(String pattern, int sizeLimit)
-
searchScopesById
public List<io.jans.as.persistence.model.Scope> searchScopesById(Set<String> scopeIds)
-
getScopeByDn
public io.jans.as.persistence.model.Scope getScopeByDn(String dn)
-
searchScopes
public List<io.jans.configapi.rest.model.CustomScope> searchScopes(String pattern, int sizeLimit, String scopeType)
-
searchScopes
public List<io.jans.configapi.rest.model.CustomScope> searchScopes(String pattern, int sizeLimit, String scopeType, boolean withAssociatedClients)
-
getAllScopesList
public List<io.jans.configapi.rest.model.CustomScope> getAllScopesList(int size)
-
getAllScopesList
public List<io.jans.configapi.rest.model.CustomScope> getAllScopesList(int size, String scopeType)
-
getAllScopesList
public List<io.jans.configapi.rest.model.CustomScope> getAllScopesList(int size, String scopeType, boolean withAssociatedClients)
-
searchScope
public List<io.jans.configapi.rest.model.CustomScope> searchScope(io.jans.model.SearchRequest searchRequest)
-
getAllScopesList
public List<io.jans.as.persistence.model.Scope> getAllScopesList()
-
getAssociatedClients
public List<io.jans.configapi.rest.model.CustomScope> getAssociatedClients(List<io.jans.configapi.rest.model.CustomScope> scopes)
-
getScopeResult
public io.jans.orm.model.PagedResult<io.jans.configapi.rest.model.CustomScope> getScopeResult(io.jans.model.SearchRequest searchRequest, String scopeType, boolean withAssociatedClients)
-
-