From 7203d9ba12d52dd8eb818482afb058caca2bf734 Mon Sep 17 00:00:00 2001 From: Bill Burke Date: Mon, 19 May 2014 18:09:36 -0400 Subject: [PATCH] aerogear fix --- .../AerogearThemeProviderFactory.java | 34 +++++++++++++++++++ .../org.keycloak.freemarker.ThemeProvider | 1 - ...g.keycloak.freemarker.ThemeProviderFactory | 1 + 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100755 project-integrations/aerogear-ups/auth-server/src/main/java/org/aerogear/ups/security/AerogearThemeProviderFactory.java delete mode 100755 project-integrations/aerogear-ups/auth-server/src/main/resources/META-INF/services/org.keycloak.freemarker.ThemeProvider create mode 100755 project-integrations/aerogear-ups/auth-server/src/main/resources/META-INF/services/org.keycloak.freemarker.ThemeProviderFactory diff --git a/project-integrations/aerogear-ups/auth-server/src/main/java/org/aerogear/ups/security/AerogearThemeProviderFactory.java b/project-integrations/aerogear-ups/auth-server/src/main/java/org/aerogear/ups/security/AerogearThemeProviderFactory.java new file mode 100755 index 0000000000..38043150c8 --- /dev/null +++ b/project-integrations/aerogear-ups/auth-server/src/main/java/org/aerogear/ups/security/AerogearThemeProviderFactory.java @@ -0,0 +1,34 @@ +package org.aerogear.ups.security; + +import org.keycloak.Config; +import org.keycloak.freemarker.ThemeProvider; +import org.keycloak.freemarker.ThemeProviderFactory; +import org.keycloak.provider.ProviderSession; + +/** + * @author Bill Burke + * @version $Revision: 1 $ + */ +public class AerogearThemeProviderFactory implements ThemeProviderFactory { + protected AerogearThemeProvider theme; + + @Override + public ThemeProvider create(ProviderSession providerSession) { + return theme; + } + + @Override + public void init(Config.Scope config) { + theme = new AerogearThemeProvider(); + } + + @Override + public void close() { + + } + + @Override + public String getId() { + return "aerogear"; + } +} diff --git a/project-integrations/aerogear-ups/auth-server/src/main/resources/META-INF/services/org.keycloak.freemarker.ThemeProvider b/project-integrations/aerogear-ups/auth-server/src/main/resources/META-INF/services/org.keycloak.freemarker.ThemeProvider deleted file mode 100755 index 89dd8749b0..0000000000 --- a/project-integrations/aerogear-ups/auth-server/src/main/resources/META-INF/services/org.keycloak.freemarker.ThemeProvider +++ /dev/null @@ -1 +0,0 @@ -org.aerogear.ups.security.AerogearThemeProvider \ No newline at end of file diff --git a/project-integrations/aerogear-ups/auth-server/src/main/resources/META-INF/services/org.keycloak.freemarker.ThemeProviderFactory b/project-integrations/aerogear-ups/auth-server/src/main/resources/META-INF/services/org.keycloak.freemarker.ThemeProviderFactory new file mode 100755 index 0000000000..3ea19ba020 --- /dev/null +++ b/project-integrations/aerogear-ups/auth-server/src/main/resources/META-INF/services/org.keycloak.freemarker.ThemeProviderFactory @@ -0,0 +1 @@ +org.aerogear.ups.security.AerogearThemeProviderFactory \ No newline at end of file