Package org.opencms.acacia.shared.rpc
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 TypeMethodDescriptionvoid
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/URIcallback
- 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 savecallback
- the asynchronous callback
-