Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.theme.resources
Class ResourceManager

java.lang.Object
  extended by org.nuxeo.theme.resources.ResourceManager
All Implemented Interfaces:
Registrable

public final class ResourceManager
extends Object
implements Registrable


Constructor Summary
ResourceManager()
           
 
Method Summary
 void addResource(String name, URL themeUrl)
           
 void addResource(String name, URL themeUrl, boolean local)
           
 void clear()
          This method is called when the object is unregistered.
 void clearGlobalCache(String themeName)
           
 void flush()
           
static String getBankResource(String resourceBankName, String collectionName, String typeName, String resourceName)
           
static byte[] getBinaryBankResource(String resourceBankName, String collectionName, String typeName, String resourceName)
           
 List<String> getGlobalResourcesFor(String themeUrl)
           
 List<String> getGlobalResourcesFor(URL themeUrl)
           
 List<String> getResourcesFor(String themeUrl)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceManager

public ResourceManager()
Method Detail

addResource

public void addResource(String name,
                        URL themeUrl)

addResource

public void addResource(String name,
                        URL themeUrl,
                        boolean local)

flush

public void flush()

getResourcesFor

public List<String> getResourcesFor(String themeUrl)

getGlobalResourcesFor

public List<String> getGlobalResourcesFor(String themeUrl)

getGlobalResourcesFor

public List<String> getGlobalResourcesFor(URL themeUrl)

clearGlobalCache

public void clearGlobalCache(String themeName)

getBinaryBankResource

public static byte[] getBinaryBankResource(String resourceBankName,
                                           String collectionName,
                                           String typeName,
                                           String resourceName)
                                    throws ThemeException
Throws:
ThemeException

getBankResource

public static String getBankResource(String resourceBankName,
                                     String collectionName,
                                     String typeName,
                                     String resourceName)
                              throws ThemeException
Throws:
ThemeException

clear

public void clear()
Description copied from interface: Registrable
This method is called when the object is unregistered. Clean up local variables here.

Specified by:
clear in interface Registrable

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.