Interface I_CmsContentServiceAsync
- All Superinterfaces:
I_CmsContentServiceAsync
The content editor asynchronous service interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
callEditorChangeHandlers
(String entityId, CmsEntity editedLocaleEntity, Collection<String> skipPaths, Collection<String> changedScopes, com.google.gwt.user.client.rpc.AsyncCallback<CmsContentDefinition> callback) Calls the editor change handlers.void
copyLocale
(Collection<String> locales, CmsEntity sourceLocale, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Copies the given source locale to the target locales.void
loadDefinition
(String entityId, String clientId, CmsEntity editedLocaleEntity, Collection<String> skipPaths, Map<String, String> settingPresets, com.google.gwt.user.client.rpc.AsyncCallback<CmsContentDefinition> callback) Loads the content definition for a given type.void
loadInitialDefinition
(String entityId, String clientId, String newLink, CmsUUID modelFileId, String editContext, String mainLocale, String mode, String postCreateHandler, CmsEditHandlerData editHandlerData, Map<String, String> settingPresets, String editorStylesheet, com.google.gwt.user.client.rpc.AsyncCallback<CmsContentDefinition> callback) Loads the content definition for a given type creating a new resource according to the new link and model file parameter.void
loadNewDefinition
(String entityId, String clientId, CmsEntity editedLocaleEntity, Collection<String> skipPaths, Map<String, String> settingPresets, com.google.gwt.user.client.rpc.AsyncCallback<CmsContentDefinition> callback) Loads new entity definition.void
prefetch
(com.google.gwt.user.client.rpc.AsyncCallback<CmsContentDefinition> callback) Returns the content definition of the resource requested through parameter 'resource'.void
saveAndDeleteEntities
(CmsEntity lastEditedEntity, String clientId, List<String> deletedEntities, Collection<String> skipPaths, String lastEditedLocale, boolean clearOnSuccess, boolean failOnWarnings, com.google.gwt.user.client.rpc.AsyncCallback<CmsSaveResult> callback) Saves and deletes the given entities.void
saveValue
(String contentId, String contentPath, String locale, String value, com.google.gwt.user.client.rpc.AsyncCallback<String> callback) Saves a value in an existing XML content.void
validateEntities
(CmsEntity lastEditedEntity, String clientId, List<String> deletedEntities, Collection<String> skipPaths, String lastEditedLocale, com.google.gwt.user.client.rpc.AsyncCallback<CmsValidationResult> callback) Validates the edited XML content, taking all current changes into account.Methods inherited from interface org.opencms.acacia.shared.rpc.I_CmsContentServiceAsync
loadContentDefinition, saveEntities, saveEntity, updateEntityHtml, validateEntity
-
Method Details
-
prefetch
Returns the content definition of the resource requested through parameter 'resource'.- Parameters:
callback
- the callback
-
saveValue
void saveValue(String contentId, String contentPath, String locale, String value, com.google.gwt.user.client.rpc.AsyncCallback<String> callback) Saves a value in an existing XML content.- Parameters:
contentId
- the structure id of the contentcontentPath
- the xpath of the value to setlocale
- the locale in which to set the valuevalue
- the value to setcallback
- the callback to call with the result