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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
loadContentDefinition(java.lang.String entityId, com.google.gwt.user.client.rpc.AsyncCallback<CmsContentDefinition> callback)
Loads the content definition for a given type.void
saveEntities(java.util.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, java.lang.String contextUri, java.lang.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 Detail
-
loadContentDefinition
void loadContentDefinition(java.lang.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(java.util.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
-
saveEntity
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.- Parameters:
entity
- the entity to savecallback
- the asynchronous callback
-
updateEntityHtml
void updateEntityHtml(CmsEntity entity, java.lang.String contextUri, java.lang.String htmlContextInfo, com.google.gwt.user.client.rpc.AsyncCallback<CmsEntityHtml> callback)
Retrieves the updated entity HTML representation.The entity data will be validated but not persisted on the server.
- Parameters:
entity
- the entitycontextUri
- the context URIhtmlContextInfo
- information about the HTML contextcallback
- the asynchronous callback
-
validateEntity
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.- Parameters:
changedEntity
- the entity to validatecallback
- the asynchronous callback
-
-