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 TypeMethodDescriptionvoidloadContentDefinition(String entityId, com.google.gwt.user.client.rpc.AsyncCallback<CmsContentDefinition> callback) Loads the content definition for a given type.voidsaveEntities(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.voidsaveEntity(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.voidupdateEntityHtml(CmsEntity entity, String contextUri, String htmlContextInfo, com.google.gwt.user.client.rpc.AsyncCallback<CmsEntityHtml> callback) Retrieves the updated entity HTML representation.voidvalidateEntity(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
-