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 Details

    • ScopeService

      public ScopeService()
  • Method Details

    • baseDn

      public String baseDn()
    • createDn

      public String createDn(String inum)
    • 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)
    • getDnForScope

      public String getDnForScope(String inum)
    • searchScopes

      public List<io.jans.configapi.rest.model.CustomScope> searchScopes(String pattern, int sizeLimit)
    • searchScopesById

      public List<io.jans.as.persistence.model.Scope> searchScopesById(String jsId)
    • 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()
    • getDefaultScopesDn

      public List<String> getDefaultScopesDn()
    • getScopesDn

      public List<String> getScopesDn(List<String> scopeDnList)
    • 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)