public interface BundlePersister
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(String bundleKey)
Deletes the stored info of the specified bundle.
|
PersistentBundle |
find(String bundleKey)
Returns the info for the persisted bundle considering the requested key.
|
void |
store(PersistentBundle bundleInfo)
Persists the specified bundle resource either creating a new info in the storage or updating the existing entry with the supplied
data.
|
PersistentBundle |
store(org.springframework.core.io.Resource resource)
Persists the info for the specified resources either creating a new info in the storage or updating the existing entry with the
supplied data.
|
boolean delete(String bundleKey) throws ModuleManagementException
bundleKey - The key of the bundle to delete the info fortrue in case the info was deleted successfully; false - if no info for
the specified key was foundModuleManagementException - In case of unexpected error during the delete processPersistentBundle find(String bundleKey)
bundleKey - The key of the bundle to be looked upnull if the corresponding info cannot be
found for the provided keyvoid store(PersistentBundle bundleInfo) throws ModuleManagementException
bundleInfo - The bundle info as a sourceModuleManagementException - In case of issues during persistence operationPersistentBundle store(org.springframework.core.io.Resource resource) throws ModuleManagementException
resource - The bundle bundle resource as a sourceModuleManagementException - In case of issues during persistence operationCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.