public interface I_CmsUgcEditService extends com.google.gwt.user.client.rpc.RemoteService
| Modifier and Type | Method and Description |
|---|---|
void |
destroySession(CmsUUID sessionId)
Destroys the given session.
|
CmsUgcContent |
getContent(CmsUUID sessionId)
Loads the form content for an existing session.
|
java.lang.String |
getLink(java.lang.String path)
Gets the link corresponding to a given site path.
|
java.util.Map<java.lang.String,java.lang.String> |
saveContent(CmsUUID sessionId,
java.util.Map<java.lang.String,java.lang.String> contentValues)
Saves the given content values to the edited content.
|
java.util.Map<java.lang.String,java.lang.String> |
uploadFiles(CmsUUID sessionId,
java.util.Set<java.lang.String> fieldNames,
java.lang.String formDataId)
Uploads multiple files.
|
java.util.Map<java.lang.String,java.lang.String> |
validateContent(CmsUUID sessionId,
java.util.Map<java.lang.String,java.lang.String> contentValues)
Validates the new content values for a content loaded in the given session.
|
void destroySession(CmsUUID sessionId) throws CmsRpcException
sessionId - the id of the session to destroyCmsRpcException - if something goes wrongCmsUgcContent getContent(CmsUUID sessionId) throws CmsRpcException
sessionId - the id of the existing sessionCmsRpcException - if something goes wrongjava.lang.String getLink(java.lang.String path)
path - the site pathjava.util.Map<java.lang.String,java.lang.String> saveContent(CmsUUID sessionId, java.util.Map<java.lang.String,java.lang.String> contentValues) throws CmsRpcException
sessionId - the session idcontentValues - the content valuesCmsRpcException - if something goes wrongjava.util.Map<java.lang.String,java.lang.String> uploadFiles(CmsUUID sessionId, java.util.Set<java.lang.String> fieldNames, java.lang.String formDataId) throws CmsRpcException
sessionId - the session idfieldNames - the set of field names of the form fields containing the uploaded filesformDataId - the form data id of the form submit in which the form fields were postedCmsRpcException - if something goes wrongjava.util.Map<java.lang.String,java.lang.String> validateContent(CmsUUID sessionId, java.util.Map<java.lang.String,java.lang.String> contentValues) throws CmsUgcException
sessionId - the id of the session containing the contentcontentValues - the values to validateCmsUgcException - if something goes wrong