Class ScopeService


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

      • ScopeService

        public ScopeService()
    • Method Detail

      • getAllScopesList

        public java.util.List<Scope> getAllScopesList()
        returns a list of all scopes
        Returns:
        list of scopes
      • getDefaultScopesDn

        public java.util.List<java.lang.String> getDefaultScopesDn()
      • getScopesDn

        public java.util.List<java.lang.String> getScopesDn​(java.util.List<java.lang.String> scopeNames)
      • getScopeIdsByDns

        public java.util.List<java.lang.String> getScopeIdsByDns​(java.util.List<java.lang.String> dns)
      • getScopeByDn

        public Scope getScopeByDn​(java.lang.String dn)
        returns Scope by Dn
        Returns:
        Scope
      • getScopeByDnSilently

        public Scope getScopeByDnSilently​(java.lang.String dn)
        returns Scope by Dn
        Returns:
        Scope
      • getScopeById

        public Scope getScopeById​(java.lang.String id)
        Get scope by DisplayName
        Parameters:
        id -
        Returns:
        scope
      • getScopeByClaim

        public java.util.List<Scope> getScopeByClaim​(java.lang.String claimDn)
        Get scope by oxAuthClaims
        Parameters:
        claimDn -
        Returns:
        List of scope
      • getScopesByClaim

        public java.util.List<Scope> getScopesByClaim​(java.util.List<Scope> scopes,
                                                      java.lang.String claimDn)
      • persist

        public void persist​(Scope scope)