Class ApiProtectionCache


  • @ApplicationScoped
    @Named
    public class ApiProtectionCache
    extends Object
    • Method Detail

      • removeAllScopes

        public static void removeAllScopes()
      • getScope

        public static io.jans.as.persistence.model.Scope getScope​(String scopeName)
      • putScope

        public static void putScope​(io.jans.as.persistence.model.Scope scope)
      • getScopes

        public static Map<String,​io.jans.as.persistence.model.Scope> getScopes()
      • getGroupScope

        public static io.jans.as.persistence.model.Scope getGroupScope​(String scopeName)
      • putGroupScope

        public static void putGroupScope​(io.jans.as.persistence.model.Scope scope)
      • removeGroupScopes

        public static void removeGroupScopes()
      • getGroupScopes

        public static Map<String,​io.jans.as.persistence.model.Scope> getGroupScopes()
      • getSuperScope

        public static io.jans.as.persistence.model.Scope getSuperScope​(String scopeName)
      • putSuperScope

        public static void putSuperScope​(io.jans.as.persistence.model.Scope scope)
      • removeSuperScopes

        public static void removeSuperScopes()
      • getSuperScopes

        public static Map<String,​io.jans.as.persistence.model.Scope> getSuperScopes()
      • getAllTypesOfScopes

        public static Map<String,​io.jans.as.persistence.model.Scope> getAllTypesOfScopes()
      • raemoveAllResources

        public static void raemoveAllResources()
      • putResource

        public static void putResource​(String resourceName,
                                       Map<io.jans.configapi.core.util.ProtectionScopeType,​List<io.jans.as.persistence.model.Scope>> scopeMap)
      • putResourceScopeByType

        public static void putResourceScopeByType​(String resourceName,
                                                  io.jans.configapi.core.util.ProtectionScopeType protectionScopeType,
                                                  List<io.jans.as.persistence.model.Scope> scopes)
      • getAllResources

        public static Map<String,​Map<io.jans.configapi.core.util.ProtectionScopeType,​List<io.jans.as.persistence.model.Scope>>> getAllResources()
      • getResourceScopes

        public static Map<io.jans.configapi.core.util.ProtectionScopeType,​List<io.jans.as.persistence.model.Scope>> getResourceScopes​(String resourceName)
      • getResourceScopeByType

        public static List<io.jans.as.persistence.model.Scope> getResourceScopeByType​(String resourceName,
                                                                                      io.jans.configapi.core.util.ProtectionScopeType protectionScopeType)
      • addScope

        public static void addScope​(String resourceName,
                                    io.jans.configapi.core.util.ProtectionScopeType protectionScopeType,
                                    io.jans.as.persistence.model.Scope scope)