Interface WebResourceManager
-
- All Superinterfaces:
TimestampedService
- All Known Implementing Classes:
WebResourceManagerImpl
public interface WebResourceManager extends TimestampedService
Service for web resources retrieval.- Since:
- 7.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Processor
getProcessor(String name)
Returns the corresponding processor with given name, or null if not found.List<Processor>
getProcessors()
Returns all processors registered on the service, ordered.List<Processor>
getProcessors(String type)
Returns all processors registered on the service, ordered, for given type.Resource
getResource(String name)
Returns a registered resource with given name, or null if not found.ResourceBundle
getResourceBundle(String name)
Returns a registered resource bundle with given name, or null if not found.List<ResourceBundle>
getResourceBundles()
Returns all resource bundles registered on the service.List<Resource>
getResources(ResourceContext context, String bundleName, String type)
Returns the ordered list of resources for given bundle name, filtered using given type.void
registerResource(Resource resource)
Allows to dynamically register a resource.void
registerResourceBundle(ResourceBundle bundle)
Allows to dynamically register a bundle.void
unregisterResource(Resource resource)
Allows to dynamically unregister a resource.void
unregisterResourceBundle(ResourceBundle bundle)
Allows to dynamically unregister a bundle.-
Methods inherited from interface org.nuxeo.runtime.service.TimestampedService
getLastModified, setLastModified
-
-
-
-
Method Detail
-
getResource
Resource getResource(String name)
Returns a registered resource with given name, or null if not found.Referenced resource can either be a static resource or a style.
-
getResourceBundle
ResourceBundle getResourceBundle(String name)
Returns a registered resource bundle with given name, or null if not found.
-
getResourceBundles
List<ResourceBundle> getResourceBundles()
Returns all resource bundles registered on the service.
-
getProcessor
Processor getProcessor(String name)
Returns the corresponding processor with given name, or null if not found.
-
getProcessors
List<Processor> getProcessors()
Returns all processors registered on the service, ordered.
-
getProcessors
List<Processor> getProcessors(String type)
Returns all processors registered on the service, ordered, for given type.
-
getResources
List<Resource> getResources(ResourceContext context, String bundleName, String type)
Returns the ordered list of resources for given bundle name, filtered using given type.
-
registerResourceBundle
void registerResourceBundle(ResourceBundle bundle)
Allows to dynamically register a bundle.- Since:
- 7.4
-
unregisterResourceBundle
void unregisterResourceBundle(ResourceBundle bundle)
Allows to dynamically unregister a bundle.- Since:
- 7.4
-
registerResource
void registerResource(Resource resource)
Allows to dynamically register a resource.- Since:
- 7.4
-
unregisterResource
void unregisterResource(Resource resource)
Allows to dynamically unregister a resource.- Since:
- 7.4
-
-