Package org.opencms.acacia.shared.rpc
Interface I_CmsContentService
- All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
- All Known Subinterfaces:
I_CmsContentService
- All Known Implementing Classes:
CmsContentService
The content service used to load and persist entity and type information.
Implement this on the server side.
-
Method Summary
Modifier and TypeMethodDescriptionloadContentDefinition
(String entityId) Loads the content definition for a given entity.saveEntities
(List<CmsEntity> entities) Saves the given entities and returns a validation result in case of invalid entities.saveEntity
(CmsEntity entity) Saves the given entity and returns a validation result in case of invalid entities.updateEntityHtml
(CmsEntity entity, String contextUri, String htmlContextInfo) Retrieves the updated entity HTML representation.validateEntity
(CmsEntity changedEntity) Validates the given entity and returns maps of error and warning messages in case of invalid attributes.
-
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
-