org.opencms.ade.contenteditor.shared.rpc
Interface I_CmsContentServiceAsync

All Superinterfaces:
com.alkacon.acacia.shared.rpc.I_ContentServiceAsync

public interface I_CmsContentServiceAsync
extends com.alkacon.acacia.shared.rpc.I_ContentServiceAsync

The content editor asynchronous service interface.


Method Summary
 void loadDefinition(java.lang.String entityId, com.google.gwt.user.client.rpc.AsyncCallback<CmsContentDefinition> callback)
          Loads the content definition for a given type.
 void loadDefinition(java.lang.String entityId, java.lang.String newLink, CmsUUID modelFileId, java.lang.String editContext, 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(java.lang.String entityId, 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(java.util.List<com.alkacon.acacia.shared.Entity> changedEntities, java.util.List<java.lang.String> deletedEntities, boolean clearOnSuccess, com.google.gwt.user.client.rpc.AsyncCallback<com.alkacon.acacia.shared.ValidationResult> callback)
          Saves and deletes the given entities.
 
Methods inherited from interface com.alkacon.acacia.shared.rpc.I_ContentServiceAsync
loadContentDefinition, saveEntities, saveEntity, validateEntities
 

Method Detail

loadDefinition

void loadDefinition(java.lang.String entityId,
                    com.google.gwt.user.client.rpc.AsyncCallback<CmsContentDefinition> callback)
Loads the content definition for a given type.

Parameters:
entityId - the entity id/URI
callback - the asynchronous callback

loadDefinition

void loadDefinition(java.lang.String entityId,
                    java.lang.String newLink,
                    CmsUUID modelFileId,
                    java.lang.String editContext,
                    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.

Parameters:
entityId - the entity id/URI
newLink - the new link
modelFileId - the optional model file id
editContext - the container page currently being edited (may be null)
callback - the asynchronous callback

loadNewDefinition

void loadNewDefinition(java.lang.String entityId,
                       com.google.gwt.user.client.rpc.AsyncCallback<CmsContentDefinition> callback)
Loads new entity definition.

This will load the entity representation of a new locale node.

Parameters:
entityId - the entity id/URI
callback - the asynchronous callback

prefetch

void prefetch(com.google.gwt.user.client.rpc.AsyncCallback<CmsContentDefinition> callback)
Returns the content definition of the resource requested through parameter 'resource'.

Parameters:
callback - the callback

saveAndDeleteEntities

void saveAndDeleteEntities(java.util.List<com.alkacon.acacia.shared.Entity> changedEntities,
                           java.util.List<java.lang.String> deletedEntities,
                           boolean clearOnSuccess,
                           com.google.gwt.user.client.rpc.AsyncCallback<com.alkacon.acacia.shared.ValidationResult> callback)
Saves and deletes the given entities. Returns a validation result in case of invalid entities.

Parameters:
changedEntities - the changed entities
deletedEntities - the entity id's to delete
clearOnSuccess - true to unlock resource after saving
callback - the asynchronous callback