org.nuxeo.theme.resources
Class ResourceManager
java.lang.Object
org.nuxeo.theme.resources.ResourceManager
- All Implemented Interfaces:
- Registrable
public final class ResourceManager
- extends Object
- implements Registrable
ResourceManager
public ResourceManager()
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
Copyright © 2011 Nuxeo SAS. All Rights Reserved.