org.jenkinsci.plugins.uithemes
Class UIThemesProcessor

java.lang.Object
  extended by org.jenkinsci.plugins.uithemes.UIThemesProcessor
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Action, hudson.model.ModelObject, hudson.model.RootAction

@Extension
public final class UIThemesProcessor
extends Object
implements hudson.model.RootAction

Author:
tom.fennelly@gmail.com

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
UIThemesProcessor()
           
 
Method Summary
 UIThemesProcessor addContributor(UIThemeContributor contributor)
           
 void addPluginContributors(hudson.PluginManager pluginManager)
           
static void createJenkinsEnvVariablesLESSFile(Properties variables)
           
 void deleteAllUserThemes()
           
 org.kohsuke.stapler.HttpResponse doCss(org.kohsuke.stapler.StaplerRequest req)
           
protected  List<UIThemeContributor> getContributors()
           
 String getDisplayName()
           
 String getIconFileName()
           
static UIThemesProcessor getInstance()
           
static File getJenkinsEnvVariablesFile()
           
 UIThemeSet getUiThemeSet()
           
 String getUrlName()
           
static Map<String,String> getUserThemeImplConfig(String themeName, String themeImplName, File userHome)
           
static File getUserThemeImplConfigFile(String themeName, String themeImplName, File userHome)
           
static File getUserThemeImplDir(String themeName, String themeImplName, File userHome)
           
static File getUserThemeImplLESSFile(String themeName, String themeImplName, File userHome)
           
 File getUserThemesCSS(hudson.model.User user)
           
static File getUserThemesCSSFile(File userHome)
           
static File getUserThemesDir(File userHome)
           
 UIThemesProcessor removeContributor(UIThemeContributor contributor)
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIThemesProcessor

public UIThemesProcessor()
Method Detail

getInstance

public static UIThemesProcessor getInstance()

getContributors

protected List<UIThemeContributor> getContributors()

addContributor

public UIThemesProcessor addContributor(UIThemeContributor contributor)

removeContributor

public UIThemesProcessor removeContributor(UIThemeContributor contributor)

addPluginContributors

public void addPluginContributors(hudson.PluginManager pluginManager)
                           throws IOException
Throws:
IOException

reset

public void reset()

getUserThemesCSS

public File getUserThemesCSS(hudson.model.User user)
                      throws IOException
Throws:
IOException

deleteAllUserThemes

public void deleteAllUserThemes()

getUiThemeSet

public UIThemeSet getUiThemeSet()

createJenkinsEnvVariablesLESSFile

public static void createJenkinsEnvVariablesLESSFile(Properties variables)
                                              throws IOException
Throws:
IOException

getUserThemesDir

public static File getUserThemesDir(File userHome)

getJenkinsEnvVariablesFile

public static File getJenkinsEnvVariablesFile()

getUserThemeImplDir

public static File getUserThemeImplDir(String themeName,
                                       String themeImplName,
                                       File userHome)

getUserThemesCSSFile

public static File getUserThemesCSSFile(File userHome)

getUserThemeImplConfigFile

public static File getUserThemeImplConfigFile(String themeName,
                                              String themeImplName,
                                              File userHome)

getUserThemeImplLESSFile

public static File getUserThemeImplLESSFile(String themeName,
                                            String themeImplName,
                                            File userHome)

getUserThemeImplConfig

public static Map<String,String> getUserThemeImplConfig(String themeName,
                                                        String themeImplName,
                                                        File userHome)
                                                 throws IOException
Throws:
IOException

getIconFileName

public String getIconFileName()
Specified by:
getIconFileName in interface hudson.model.Action

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getUrlName

public String getUrlName()
Specified by:
getUrlName in interface hudson.model.Action

doCss

public final org.kohsuke.stapler.HttpResponse doCss(org.kohsuke.stapler.StaplerRequest req)
                                             throws IOException
Throws:
IOException


Copyright © 2004-2015. All Rights Reserved.