public interface I_CmsContentService extends com.google.gwt.user.client.rpc.RemoteService
Implement this on the server side.
| Modifier and Type | Method and Description |
|---|---|
CmsContentDefinition |
loadContentDefinition(java.lang.String entityId)
Loads the content definition for a given entity.
|
CmsValidationResult |
saveEntities(java.util.List<CmsEntity> entities)
Saves the given entities and returns a validation result in case of invalid entities.
|
CmsValidationResult |
saveEntity(CmsEntity entity)
Saves the given entity and returns a validation result in case of invalid entities.
|
CmsEntityHtml |
updateEntityHtml(CmsEntity entity,
java.lang.String contextUri,
java.lang.String htmlContextInfo)
Retrieves the updated entity HTML representation.
|
CmsValidationResult |
validateEntity(CmsEntity changedEntity)
Validates the given entity and returns maps of error and warning messages in case of invalid attributes.
|
CmsContentDefinition loadContentDefinition(java.lang.String entityId) throws java.lang.Exception
entityId - the entity id/URIjava.lang.Exception - if something goes wrong processing the requestCmsValidationResult saveEntities(java.util.List<CmsEntity> entities) throws java.lang.Exception
Invalid entities will not be saved.
entities - the entities to savejava.lang.Exception - if something goes wrong processing the requestCmsValidationResult saveEntity(CmsEntity entity) throws java.lang.Exception
Invalid entities will not be saved.
entity - the entity to savejava.lang.Exception - if something goes wrong processing the requestCmsEntityHtml updateEntityHtml(CmsEntity entity, java.lang.String contextUri, java.lang.String htmlContextInfo) throws java.lang.Exception
The entity data will be validated but not persisted on the server.
entity - the entitycontextUri - the context URIhtmlContextInfo - information about the HTML contextjava.lang.Exception - if something goes wrong processing the requestCmsValidationResult validateEntity(CmsEntity changedEntity) throws java.lang.Exception
changedEntity - the entity to validatejava.lang.Exception - if something goes wrong processing the request