Package io.jans.as.server.service
Class ScopeService
- java.lang.Object
-
- io.jans.as.server.service.ScopeService
-
@ApplicationScoped public class ScopeService extends Object
- Author:
- Javier Rojas Blum Date: 07.05.2012, Yuriy Movchan Date: 2016/04/26
-
-
Constructor Summary
Constructors Constructor Description ScopeService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<io.jans.as.persistence.model.Scope>
getAllScopesList()
returns a list of all scopesMap<String,Object>
getClaims(io.jans.as.common.model.common.User user, io.jans.as.persistence.model.Scope scope)
List<String>
getDefaultScopesDn()
List<io.jans.as.persistence.model.Scope>
getScopeByClaim(String claimDn)
Get scope by jsClaimsio.jans.as.persistence.model.Scope
getScopeByDn(String dn)
returns Scope by Dnio.jans.as.persistence.model.Scope
getScopeByDnSilently(String dn)
returns Scope by Dnio.jans.as.persistence.model.Scope
getScopeById(String id)
Get scope by DisplayNameList<String>
getScopeIdsByDns(List<String> dns)
List<io.jans.as.persistence.model.Scope>
getScopesByClaim(List<io.jans.as.persistence.model.Scope> scopes, String claimDn)
List<String>
getScopesDn(List<String> scopeNames)
void
persist(io.jans.as.persistence.model.Scope scope)
-
-
-
Method Detail
-
getAllScopesList
public List<io.jans.as.persistence.model.Scope> getAllScopesList()
returns a list of all scopes- Returns:
- list of scopes
-
getScopeByDn
public io.jans.as.persistence.model.Scope getScopeByDn(String dn)
returns Scope by Dn- Returns:
- Scope
-
getScopeByDnSilently
public io.jans.as.persistence.model.Scope getScopeByDnSilently(String dn)
returns Scope by Dn- Returns:
- Scope
-
getScopeById
public io.jans.as.persistence.model.Scope getScopeById(String id)
Get scope by DisplayName- Parameters:
id
-- Returns:
- scope
-
getScopeByClaim
public List<io.jans.as.persistence.model.Scope> getScopeByClaim(String claimDn)
Get scope by jsClaims- Parameters:
claimDn
-- Returns:
- List of scope
-
getScopesByClaim
public List<io.jans.as.persistence.model.Scope> getScopesByClaim(List<io.jans.as.persistence.model.Scope> scopes, String claimDn)
-
persist
public void persist(io.jans.as.persistence.model.Scope scope)
-
-