Interface WebResourceManager
- All Superinterfaces:
TimestampedService
- All Known Implementing Classes:
WebResourceManagerImpl
Service for web resources retrieval.
- Since:
- 7.3
-
Method Summary
Modifier and TypeMethodDescriptiongetProcessor
(String name) Returns the corresponding processor with given name, or null if not found.Returns all processors registered on the service, ordered.getProcessors
(String type) Returns all processors registered on the service, ordered, for given type.getResource
(String name) Returns a registered resource with given name, or null if not found.getResourceBundle
(String name) Returns a registered resource bundle with given name, or null if not found.Returns all resource bundles registered on the service.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
Allows to dynamically unregister a bundle.Methods inherited from interface org.nuxeo.runtime.service.TimestampedService
getLastModified, setLastModified
-
Method Details
-
getResource
Returns a registered resource with given name, or null if not found.Referenced resource can either be a static resource or a style.
-
getResourceBundle
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
Returns the corresponding processor with given name, or null if not found. -
getProcessors
Returns all processors registered on the service, ordered. -
getProcessors
Returns all processors registered on the service, ordered, for given type. -
getResources
Returns the ordered list of resources for given bundle name, filtered using given type. -
registerResourceBundle
Allows to dynamically register a bundle.- Since:
- 7.4
-
unregisterResourceBundle
Allows to dynamically unregister a bundle.- Since:
- 7.4
-
registerResource
Allows to dynamically register a resource.- Since:
- 7.4
-
unregisterResource
Allows to dynamically unregister a resource.- Since:
- 7.4
-