public interface I_CmsCoreServiceAsync
CmsCoreService,
I_CmsCoreService,
I_CmsCoreServiceAsync| Modifier and Type | Method and Description |
|---|---|
void |
changePassword(java.lang.String oldPassword,
java.lang.String newPassword,
java.lang.String newPasswordConfirm,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
Changes the password of the current user.
|
void |
createUUID(com.google.gwt.user.client.rpc.AsyncCallback<CmsUUID> callback)
Creates a new UUID.
|
void |
getBroadcast(com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<CmsBroadcastMessage>> callback)
Returns the latest messages for the current user.
|
void |
getCategories(java.lang.String fromCatPath,
boolean includeSubCats,
java.lang.String refVfsPath,
com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<CmsCategoryTreeEntry>> callback)
Returns the categories for the given search parameters.
|
void |
getCategories(java.lang.String fromCatPath,
boolean includeSubCats,
java.lang.String refVfsPath,
boolean withRepositories,
com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<CmsCategoryTreeEntry>> callback)
Returns the categories for the given search parameters.
|
void |
getCategoriesForSitePath(java.lang.String sitePath,
com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<CmsCategoryTreeEntry>> callback)
Returns the categories for the given reference site-path.
|
void |
getCategoryInfo(CmsUUID structureId,
com.google.gwt.user.client.rpc.AsyncCallback<CmsResourceCategoryInfo> callback)
Returns the category information for the given resource.
|
void |
getContextMenuEntries(CmsUUID structureId,
CmsCoreData.AdeContext context,
com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<CmsContextMenuEntryBean>> callback)
Returns a list of menu entry beans for the context menu.
|
void |
getLinkForReturnCode(java.lang.String returnCode,
com.google.gwt.user.client.rpc.AsyncCallback<CmsReturnLinkInfo> callback)
Given a return code, returns the link to the page which corresponds to the return code.
|
void |
getResourceState(CmsUUID structureId,
com.google.gwt.user.client.rpc.AsyncCallback<CmsResourceState> callback)
Gets the resource state of a resource.
|
void |
getUniqueFileName(java.lang.String parentFolder,
java.lang.String baseName,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
Returns a unique filename for the given base name and the parent folder.
|
void |
getUserInfo(com.google.gwt.user.client.rpc.AsyncCallback<CmsCoreData.UserInfo> callback)
Returns the user info.
|
void |
getWorkplaceLink(CmsUUID structureId,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
Returns a link for the OpenCms workplace that will reload the whole workplace, switch to the explorer view, the
site of the given explorerRootPath and show the folder given in the explorerRootPath.
|
void |
loadUserSettings(com.google.gwt.user.client.rpc.AsyncCallback<CmsUserSettingsBean> callback)
Loads the user settings for the current user.
|
void |
lockIfExists(java.lang.String sitePath,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
Locks the given resource with a temporary lock if it exists.
|
void |
lockIfExists(java.lang.String sitePath,
long loadTime,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
Locks the given resource with a temporary lock if it exists.
|
void |
lockTemp(CmsUUID structureId,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
Locks the given resource with a temporary lock.
|
void |
lockTemp(CmsUUID structureId,
long loadTime,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
Locks the given resource with a temporary lock.
|
void |
prefetch(com.google.gwt.user.client.rpc.AsyncCallback<CmsCoreData> callback)
Generates core data for prefetching in the host page.
|
void |
saveUserSettings(java.util.Map<java.lang.String,java.lang.String> userSettings,
java.util.Set<java.lang.String> edited,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> resultCallback)
Saves the user settings for the current user.
|
void |
setResourceCategories(CmsUUID structureId,
java.util.List<java.lang.String> categories,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
Sets the categories of the given resource.
|
void |
setShowEditorHelp(boolean showHelp,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
Sets the show editor help flag.
|
void |
setToolbarVisible(boolean visible,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
Writes the tool-bar visibility into the session cache.
|
void |
unlock(CmsUUID structureId,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
Unlocks the given resource.
|
void |
unlock(java.lang.String rootPath,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
Unlocks the given resource.
|
void |
validate(java.util.Map<java.lang.String,CmsValidationQuery> validationQueries,
com.google.gwt.user.client.rpc.AsyncCallback<java.util.Map<java.lang.String,CmsValidationResult>> callback)
Performs a batch of validations and returns the results.
|
void |
validate(java.lang.String formValidatorClass,
java.util.Map<java.lang.String,CmsValidationQuery> validationQueries,
java.util.Map<java.lang.String,java.lang.String> values,
java.lang.String config,
com.google.gwt.user.client.rpc.AsyncCallback<java.util.Map<java.lang.String,CmsValidationResult>> callback)
Performs a batch of validations using a custom form validator class.
|
void changePassword(java.lang.String oldPassword, java.lang.String newPassword, java.lang.String newPasswordConfirm, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
oldPassword - the old passwordnewPassword - the value entered for the new passwordnewPasswordConfirm - the value entered for the confirmation of the new passwordcallback - the callback for the resultvoid createUUID(com.google.gwt.user.client.rpc.AsyncCallback<CmsUUID> callback)
callback - the async callbackvoid getBroadcast(com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<CmsBroadcastMessage>> callback)
callback - the async callbackvoid getCategories(java.lang.String fromCatPath, boolean includeSubCats, java.lang.String refVfsPath, com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<CmsCategoryTreeEntry>> callback)
fromCatPath - the category path to start with, can be null or empty to use the rootincludeSubCats - if to include all categories, or first level child categories onlyrefVfsPath - the reference path (site-relative path according to which the available category repositories are determined),
can be null to only use the system repositorycallback - the async callbackvoid getCategories(java.lang.String fromCatPath, boolean includeSubCats, java.lang.String refVfsPath, boolean withRepositories, com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<CmsCategoryTreeEntry>> callback)
fromCatPath - the category path to start with, can be null or empty to use the rootincludeSubCats - if to include all categories, or first level child categories onlyrefVfsPath - the reference path (site-relative path according to which the available category repositories are determined),
can be null to only use the system repositorywithRepositories - flag, indicating if also the category repositories should be returned as categorycallback - the async callbackvoid getCategoriesForSitePath(java.lang.String sitePath, com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<CmsCategoryTreeEntry>> callback)
sitePath - the reference site-pathcallback - the async callbackvoid getCategoryInfo(CmsUUID structureId, com.google.gwt.user.client.rpc.AsyncCallback<CmsResourceCategoryInfo> callback)
structureId - the resource structure idcallback - the callback which receives the resultvoid getContextMenuEntries(CmsUUID structureId, CmsCoreData.AdeContext context, com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<CmsContextMenuEntryBean>> callback)
structureId - the structure id of the resource for which to get the context menucontext - the ade context (sitemap or containerpage)callback - the asynchronous callbackvoid getLinkForReturnCode(java.lang.String returnCode, com.google.gwt.user.client.rpc.AsyncCallback<CmsReturnLinkInfo> callback)
returnCode - the return codecallback - the asynchronous callbackvoid getResourceState(CmsUUID structureId, com.google.gwt.user.client.rpc.AsyncCallback<CmsResourceState> callback)
structureId - the structure id of the resourcecallback - the callback which receives the resultvoid getUniqueFileName(java.lang.String parentFolder, java.lang.String baseName, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
This is executed in a synchronized request.
parentFolder - the parent folder of the filebaseName - the proposed file namecallback - the callback which receives the resultvoid getUserInfo(com.google.gwt.user.client.rpc.AsyncCallback<CmsCoreData.UserInfo> callback)
callback - the callbackvoid getWorkplaceLink(CmsUUID structureId, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
structureId - the structure id of the resource for which to open the workplacecallback - the callback which receives the resultvoid loadUserSettings(com.google.gwt.user.client.rpc.AsyncCallback<CmsUserSettingsBean> callback)
callback - the callback to call with the resultvoid lockIfExists(java.lang.String sitePath, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
If the resource does not exist yet, the closest existing ancestor folder will check if it is lockable.
sitePath - the site path of the resource to lockcallback - the async callbackvoid lockIfExists(java.lang.String sitePath, long loadTime, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
If the resource does not exist yet, the closest existing ancestor folder will check if it is lockable.
sitePath - the site path of the resource to lockloadTime - the time when the requested resource was loadedcallback - the async callbackvoid lockTemp(CmsUUID structureId, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
structureId - the resource structure idcallback - the async callbackvoid lockTemp(CmsUUID structureId, long loadTime, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
Locking will fail in case the requested resource has been changed since the given load time.
structureId - the resource structure idloadTime - the time when the requested resource was loadedcallback - the async callbackvoid prefetch(com.google.gwt.user.client.rpc.AsyncCallback<CmsCoreData> callback)
callback - the async callbackvoid saveUserSettings(java.util.Map<java.lang.String,java.lang.String> userSettings, java.util.Set<java.lang.String> edited, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> resultCallback)
userSettings - the new values for the user settingsedited - the keys of the user settings which were actually editedresultCallback - the callback to call when the operation has finishedvoid setResourceCategories(CmsUUID structureId, java.util.List<java.lang.String> categories, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
structureId - the resource structure idcategories - the categories to setcallback - the callback which receives the resultvoid setShowEditorHelp(boolean showHelp, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
showHelp - the show help flagcallback - the asynchronous callbackvoid setToolbarVisible(boolean visible, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
visible - true if the tool-bar is visiblecallback - the call-back executed on response@SynchronizedRpcRequest void unlock(CmsUUID structureId, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
structureId - the resource structure idcallback - the async callback@SynchronizedRpcRequest void unlock(java.lang.String rootPath, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
rootPath - the resource root pathcallback - the async callbackvoid validate(java.util.Map<java.lang.String,CmsValidationQuery> validationQueries, com.google.gwt.user.client.rpc.AsyncCallback<java.util.Map<java.lang.String,CmsValidationResult>> callback)
validationQueries - a map from field names to validation queriescallback - the asynchronous callbackvoid validate(java.lang.String formValidatorClass, java.util.Map<java.lang.String,CmsValidationQuery> validationQueries, java.util.Map<java.lang.String,java.lang.String> values, java.lang.String config, com.google.gwt.user.client.rpc.AsyncCallback<java.util.Map<java.lang.String,CmsValidationResult>> callback)
formValidatorClass - the class name of the form validatorvalidationQueries - a map from field names to validation queriesvalues - the map of all field valuesconfig - the form validator configuration stringcallback - the asynchronous callback