Class ScopeService


  • @ApplicationScoped
    public class ScopeService
    extends Object
    Author:
    Javier Rojas Blum Date: 07.05.2012, Yuriy Movchan Date: 2016/04/26
    • Constructor Detail

      • ScopeService

        public ScopeService()
    • Method Detail

      • getAllScopesList

        public List<io.jans.as.persistence.model.Scope> getAllScopesList()
        returns a list of all scopes
        Returns:
        list of scopes
      • getDefaultScopesDn

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