Interface I_CmsContentService

All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
All Known Subinterfaces:
I_CmsContentService
All Known Implementing Classes:
CmsContentService

public interface I_CmsContentService extends com.google.gwt.user.client.rpc.RemoteService
The content service used to load and persist entity and type information.

Implement this on the server side.

  • Method Details

    • loadContentDefinition

      Loads the content definition for a given entity.

      Parameters:
      entityId - the entity id/URI
      Returns:
      the content type definition
      Throws:
      Exception - if something goes wrong processing the request
    • saveEntities

      Saves the given entities and returns a validation result in case of invalid entities.

      Invalid entities will not be saved.

      Parameters:
      entities - the entities to save
      Returns:
      the validation result in case of invalid entities
      Throws:
      Exception - if something goes wrong processing the request
    • saveEntity

      Saves the given entity and returns a validation result in case of invalid entities.

      Invalid entities will not be saved.

      Parameters:
      entity - the entity to save
      Returns:
      the validation result in case of invalid entities
      Throws:
      Exception - if something goes wrong processing the request
    • updateEntityHtml

      CmsEntityHtml updateEntityHtml(CmsEntity entity, String contextUri, String htmlContextInfo) throws Exception
      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
      Returns:
      the HTML representation including the validation result
      Throws:
      Exception - if something goes wrong processing the request
    • validateEntity

      Validates the given entity and returns maps of error and warning messages in case of invalid attributes.

      Parameters:
      changedEntity - the entity to validate
      Returns:
      the validation result
      Throws:
      Exception - if something goes wrong processing the request