Interface I_CmsContentServiceAsync

All Known Subinterfaces:
I_CmsContentServiceAsync

public interface I_CmsContentServiceAsync
The content service used to load and persist entity and type information.

Use this asynchronous interface on the client side.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    loadContentDefinition(String entityId, com.google.gwt.user.client.rpc.AsyncCallback<CmsContentDefinition> callback)
    Loads the content definition for a given type.
    void
    saveEntities(List<CmsEntity> entities, com.google.gwt.user.client.rpc.AsyncCallback<CmsValidationResult> callback)
    Saves the given entities and returns a validation result in case of invalid entities.
    void
    saveEntity(CmsEntity entity, com.google.gwt.user.client.rpc.AsyncCallback<CmsValidationResult> callback)
    Saves the given entity and returns a validation result in case of invalid entities.
    void
    updateEntityHtml(CmsEntity entity, String contextUri, String htmlContextInfo, com.google.gwt.user.client.rpc.AsyncCallback<CmsEntityHtml> callback)
    Retrieves the updated entity HTML representation.
    void
    validateEntity(CmsEntity changedEntity, com.google.gwt.user.client.rpc.AsyncCallback<CmsValidationResult> callback)
    Validates the given entity and returns maps of error and warning messages in case of invalid attributes.
  • Method Details

    • loadContentDefinition

      void loadContentDefinition(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
    • saveEntities

      void saveEntities(List<CmsEntity> entities, com.google.gwt.user.client.rpc.AsyncCallback<CmsValidationResult> callback)
      Saves the given entities and returns a validation result in case of invalid entities.

      Parameters:
      entities - the entities to save
      callback - the asynchronous callback
    • saveEntity

      void saveEntity(CmsEntity entity, com.google.gwt.user.client.rpc.AsyncCallback<CmsValidationResult> callback)
      Saves the given entity and returns a validation result in case of invalid entities.

      Parameters:
      entity - the entity to save
      callback - the asynchronous callback
    • updateEntityHtml

      void updateEntityHtml(CmsEntity entity, String contextUri, String htmlContextInfo, com.google.gwt.user.client.rpc.AsyncCallback<CmsEntityHtml> callback)
      Retrieves the updated entity HTML representation.

      The entity data will be validated but not persisted on the server.

      Parameters:
      entity - the entity
      contextUri - the context URI
      htmlContextInfo - information about the HTML context
      callback - the asynchronous callback
    • validateEntity

      void validateEntity(CmsEntity changedEntity, com.google.gwt.user.client.rpc.AsyncCallback<CmsValidationResult> callback)
      Validates the given entity and returns maps of error and warning messages in case of invalid attributes.

      Parameters:
      changedEntity - the entity to validate
      callback - the asynchronous callback