public interface I_CmsCoreServiceAsync
CmsCoreService,
I_CmsCoreService,
I_CmsCoreServiceAsync| 限定符和类型 | 方法和说明 |
|---|---|
void |
createUUID(com.google.gwt.user.client.rpc.AsyncCallback<CmsUUID> callback)
Creates a new UUID.
|
void |
getCategories(java.lang.String fromCatPath,
boolean includeSubCats,
java.util.List<java.lang.String> refVfsPaths,
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 |
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 |
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 |
lockTemp(CmsUUID structureId,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
Locks the given resource with a temporary lock.
|
void |
lockTempAndCheckModification(CmsUUID structureId,
long modification,
com.google.gwt.user.client.rpc.AsyncCallback<CmsLockInfo> callback)
Locks the given resource with a temporary lock additionally checking that
the given resource has not been modified after the given timestamp.
|
void |
ping(com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
A method which does nothing and is just used to keep the session alive.
|
void |
prefetch(com.google.gwt.user.client.rpc.AsyncCallback<CmsCoreData> callback)
Generates core data for prefetching in the host page.
|
void |
setAvailabilityInfo(CmsUUID structureId,
CmsAvailabilityInfoBean bean,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
Applies the changes stored in the info bean to the vfs of OpenCms.
|
void |
setAvailabilityInfo(java.lang.String vfsPath,
CmsAvailabilityInfoBean bean,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
Applies the changes stored in the info bean to the vfs of OpenCms.
|
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 sitePath,
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 createUUID(com.google.gwt.user.client.rpc.AsyncCallback<CmsUUID> callback)
callback - the async callbackvoid getCategories(java.lang.String fromCatPath,
boolean includeSubCats,
java.util.List<java.lang.String> refVfsPaths,
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 onlyrefVfsPaths - the reference paths, can be null to only use the system repositorycallback - 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 result@SynchronizedRpcRequest void 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 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 result@SynchronizedRpcRequest void lockTemp(CmsUUID structureId, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
structureId - the resource structure idcallback - the async callbackvoid 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 callback@SynchronizedRpcRequest void lockTempAndCheckModification(CmsUUID structureId, long modification, com.google.gwt.user.client.rpc.AsyncCallback<CmsLockInfo> callback)
structureId - the resource structure idmodification - the timestamp to checkcallback - the async callbackvoid ping(com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
callback - the asynchronous callbackvoid prefetch(com.google.gwt.user.client.rpc.AsyncCallback<CmsCoreData> callback)
callback - the async callbackvoid setAvailabilityInfo(CmsUUID structureId, CmsAvailabilityInfoBean bean, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
structureId - the structure id of the modified resourcebean - the bean with the information of the dialogcallback - the asynchronous callbackvoid setAvailabilityInfo(java.lang.String vfsPath,
CmsAvailabilityInfoBean bean,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
vfsPath - the vfs path of the modified resourcebean - the bean with the information of the dialogcallback - the asynchronous callbackvoid 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 sitePath, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
sitePath - the resource site 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