Package io.jans.as.server.service
Class ScopeService
java.lang.Object
io.jans.as.server.service.ScopeService
- Author:
- Javier Rojas Blum Date: 07.05.2012, Yuriy Movchan Date: 2016/04/26
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<io.jans.as.persistence.model.Scope>
returns a list of all scopesgetClaims
(io.jans.as.common.model.common.User user, io.jans.as.persistence.model.Scope scope) 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
returns Scope by Dnio.jans.as.persistence.model.Scope
getScopeById
(String id) Get scope by DisplayNamegetScopeIdsByDns
(List<String> dns) List<io.jans.as.persistence.model.Scope>
getScopesByClaim
(List<io.jans.as.persistence.model.Scope> scopes, String claimDn) getScopesDn
(List<String> scopeNames) void
persist
(io.jans.as.persistence.model.Scope scope)
-
Constructor Details
-
ScopeService
public ScopeService()
-
-
Method Details
-
getAllScopesList
returns a list of all scopes- Returns:
- list of scopes
-
getDefaultScopesDn
-
getScopesDn
-
getScopeIdsByDns
-
getScopeByDn
returns Scope by Dn- Returns:
- Scope
-
getScopeByDnSilently
returns Scope by Dn- Returns:
- Scope
-
getScopeById
Get scope by DisplayName- Parameters:
id
-- Returns:
- scope
-
getScopeByClaim
Get scope by jsClaims- Parameters:
claimDn
-- Returns:
- List of scope
-
getScopesByClaim
-
persist
public void persist(io.jans.as.persistence.model.Scope scope) -
getClaims
public Map<String,Object> getClaims(io.jans.as.common.model.common.User user, io.jans.as.persistence.model.Scope scope) throws io.jans.as.model.exception.InvalidClaimException - Throws:
io.jans.as.model.exception.InvalidClaimException
-