Interface I_CmsContentServiceAsync
- All Superinterfaces:
I_CmsContentServiceAsync
The content editor asynchronous service interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoidabortAugmentationJob(CmsUUID jobId, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Tries to abort a content augmentation job with a given id.voidcallEditorChangeHandlers(String entityId, CmsEntity editedLocaleEntity, Collection<String> skipPaths, Collection<String> changedScopes, com.google.gwt.user.client.rpc.AsyncCallback<CmsContentDefinition> callback) Calls the editor change handlers.voidcopyLocale(Collection<String> locales, CmsEntity sourceLocale, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Copies the given source locale to the target locales.voidgetAugmentationProgress(CmsUUID jobId, com.google.gwt.user.client.rpc.AsyncCallback<CmsContentAugmentationDetails> callback) Gets the status (and potentially results) from an augmentation job.voidloadDefinition(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.voidloadInitialDefinition(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.voidloadNewDefinition(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.voidprefetch(com.google.gwt.user.client.rpc.AsyncCallback<CmsContentDefinition> callback) Returns the content definition of the resource requested through parameter 'resource'.voidsaveAndDeleteEntities(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.voidsaveValue(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.voidstartAugmentationJob(String entityId, String clientId, CmsEntity editedEntity, List<String> deletedEntities, Collection<String> skipPaths, String augmentationType, Map<String, String> params, com.google.gwt.user.client.rpc.AsyncCallback<CmsUUID> callback) Sends the edited data back to the server and starts a content augmentation.voidvalidateEntities(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
-
abortAugmentationJob
void abortAugmentationJob(CmsUUID jobId, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Tries to abort a content augmentation job with a given id.- Parameters:
jobId- the job IDcallback- the callback- Throws:
CmsRpcException- if something goes wrong
-
getAugmentationProgress
void getAugmentationProgress(CmsUUID jobId, com.google.gwt.user.client.rpc.AsyncCallback<CmsContentAugmentationDetails> callback) Gets the status (and potentially results) from an augmentation job.- Parameters:
jobId- the id of the augmentation jobcallback- the callback to call with the result- Throws:
CmsRpcException- if something goes wrong
-
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
-