Interface I_CmsContentServiceAsync

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void loadContentDefinition​(java.lang.String entityId, com.google.gwt.user.client.rpc.AsyncCallback<CmsContentDefinition> callback)
      Loads the content definition for a given type.
      void saveEntities​(java.util.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, java.lang.String contextUri, java.lang.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 Detail

      • loadContentDefinition

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

        void saveEntities​(java.util.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,
                              java.lang.String contextUri,
                              java.lang.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