public interface I_CmsCoreService extends com.google.gwt.user.client.rpc.RemoteService
CmsCoreService,
I_CmsCoreService,
I_CmsCoreServiceAsync| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
changePassword(java.lang.String oldPassword,
java.lang.String newPassword,
java.lang.String newPasswordConfirm)
Changes the password of the current user.
|
CmsUUID |
createUUID()
Creates a new UUID.
|
java.util.List<CmsBroadcastMessage> |
getBroadcast()
Returns the latest messages for the current user.
|
java.util.List<CmsCategoryTreeEntry> |
getCategories(java.lang.String fromCatPath,
boolean includeSubCats,
java.lang.String refVfsPath)
Returns the categories for the given search parameters.
|
java.util.List<CmsCategoryTreeEntry> |
getCategories(java.lang.String fromCatPath,
boolean includeSubCats,
java.lang.String refVfsPath,
boolean withRepositories)
Returns the categories for the given search parameters.
|
java.util.List<CmsCategoryTreeEntry> |
getCategoriesForSitePath(java.lang.String sitePath)
Returns the categories for the given reference site-path.
|
CmsResourceCategoryInfo |
getCategoryInfo(CmsUUID structureId)
Returns the category information for the given resource.
|
java.util.List<CmsContextMenuEntryBean> |
getContextMenuEntries(CmsUUID structureId,
CmsCoreData.AdeContext context)
Returns the context menu entries for the given URI.
|
CmsReturnLinkInfo |
getLinkForReturnCode(java.lang.String returnCode)
Given a return code, returns the link to the page which corresponds to the return code.
|
CmsResourceState |
getResourceState(CmsUUID structureId)
Gets the resource state for a resource with a given path.
|
java.lang.String |
getUniqueFileName(java.lang.String parentFolder,
java.lang.String baseName)
Returns a unique filename for the given base name and the parent folder.
|
CmsCoreData.UserInfo |
getUserInfo()
Returns the user info.
|
java.lang.String |
getWorkplaceLink(CmsUUID structureId)
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.
|
CmsUserSettingsBean |
loadUserSettings()
Loads the user settings for the current user.
|
java.lang.String |
lockIfExists(java.lang.String sitePath)
Locks the given resource with a temporary lock if it exists.
|
java.lang.String |
lockIfExists(java.lang.String sitePath,
long loadTime)
Locks the given resource with a temporary lock if it exists.
|
java.lang.String |
lockTemp(CmsUUID structureId)
Locks the given resource with a temporary lock.
|
java.lang.String |
lockTemp(CmsUUID structureId,
long loadTime)
Locks the given resource with a temporary lock.
|
CmsCoreData |
prefetch()
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)
Saves the user settings for the current user.
|
void |
setResourceCategories(CmsUUID structureId,
java.util.List<java.lang.String> categories)
Sets the categories of the given resource.
|
void |
setShowEditorHelp(boolean showHelp)
Sets the show editor help flag.
|
void |
setToolbarVisible(boolean visible)
Writes the tool-bar visibility into the session cache.
|
java.lang.String |
unlock(CmsUUID structureId)
Unlocks the given resource.
|
java.lang.String |
unlock(java.lang.String rootPath)
Unlocks the given resource.
|
java.util.Map<java.lang.String,CmsValidationResult> |
validate(java.util.Map<java.lang.String,CmsValidationQuery> validationQueries)
Performs a batch of validations and returns the results.
|
java.util.Map<java.lang.String,CmsValidationResult> |
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)
Performs a batch of validations using a custom form validator class.
|
java.lang.String changePassword(java.lang.String oldPassword, java.lang.String newPassword, java.lang.String newPasswordConfirm) throws CmsRpcException
oldPassword - the old passwordnewPassword - the value entered for the new passwordnewPasswordConfirm - the value entered for the confirmation of the new passwordCmsRpcException - if something goes wrongCmsUUID createUUID() throws CmsRpcException
CmsRpcException - if something goes wrongjava.util.List<CmsBroadcastMessage> getBroadcast() throws CmsRpcException
CmsRpcException - if anything goes wrongjava.util.List<CmsCategoryTreeEntry> getCategories(java.lang.String fromCatPath, boolean includeSubCats, java.lang.String refVfsPath) throws CmsRpcException
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 repositoryCmsRpcException - if something goes wrongjava.util.List<CmsCategoryTreeEntry> getCategories(java.lang.String fromCatPath, boolean includeSubCats, java.lang.String refVfsPath, boolean withRepositories) throws CmsRpcException
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 categoryCmsRpcException - if something goes wrongjava.util.List<CmsCategoryTreeEntry> getCategoriesForSitePath(java.lang.String sitePath) throws CmsRpcException
sitePath - the reference site-pathCmsRpcException - if something goes wrongCmsResourceCategoryInfo getCategoryInfo(CmsUUID structureId) throws CmsRpcException
structureId - the resource structure idCmsRpcException - if something goes wrongjava.util.List<CmsContextMenuEntryBean> getContextMenuEntries(CmsUUID structureId, CmsCoreData.AdeContext context) throws CmsRpcException
structureId - the currently requested structure idcontext - the ade context (sitemap or containerpage)CmsRpcException - if something goes wrongCmsReturnLinkInfo getLinkForReturnCode(java.lang.String returnCode) throws CmsRpcException
returnCode - the return codeCmsRpcException - if something goes wrongCmsResourceState getResourceState(CmsUUID structureId) throws CmsRpcException
structureId - the resource structure idCmsRpcException - if something goes wrongjava.lang.String getUniqueFileName(java.lang.String parentFolder, java.lang.String baseName) throws CmsRpcException
parentFolder - the parent folder of the filebaseName - the proposed file nameCmsRpcException - if something goes wrongCmsCoreData.UserInfo getUserInfo() throws CmsRpcException
CmsRpcException - in case something goes wrongjava.lang.String getWorkplaceLink(CmsUUID structureId) throws CmsRpcException
structureId - the structure id of the resource for which to open the workplaceCmsRpcException - if something goes wrongCmsUserSettingsBean loadUserSettings() throws CmsRpcException
CmsRpcException - if something goes wrongjava.lang.String lockIfExists(java.lang.String sitePath) throws CmsRpcException
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 locknull if successful, an error message if notCmsRpcException - if something goes wrongjava.lang.String lockIfExists(java.lang.String sitePath, long loadTime) throws CmsRpcException
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 loadednull if successful, an error message if notCmsRpcException - if something goes wrongjava.lang.String lockTemp(CmsUUID structureId) throws CmsRpcException
structureId - the structure id of the resource to locknull if successful, an error message if notCmsRpcException - if something goes wrongjava.lang.String lockTemp(CmsUUID structureId, long loadTime) throws CmsRpcException
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 loadednull if successful, an error message if notCmsRpcException - if something goes wrongCmsCoreData prefetch() throws CmsRpcException
CmsRpcException - if something goes wrongvoid saveUserSettings(java.util.Map<java.lang.String,java.lang.String> userSettings, java.util.Set<java.lang.String> edited) throws CmsRpcException
userSettings - the new values for the user settingsedited - the keys of the user settings which were actually editedCmsRpcException - if something goes wrongvoid setResourceCategories(CmsUUID structureId, java.util.List<java.lang.String> categories) throws CmsRpcException
structureId - the resource structure idcategories - the categories to setCmsRpcException - if something goes wrongvoid setShowEditorHelp(boolean showHelp) throws CmsRpcException
showHelp - the show help flagCmsRpcException - if something goes wrongvoid setToolbarVisible(boolean visible) throws CmsRpcException
visible - true if the tool-bar is visibleCmsRpcException - if something goes wrongjava.lang.String unlock(CmsUUID structureId) throws CmsRpcException
structureId - the structure id of the resource to unlocknull if successful, an error message if notCmsRpcException - if something goes wrongjava.lang.String unlock(java.lang.String rootPath) throws CmsRpcException
rootPath - the root path of the resource to unlocknull if successful, an error message if notCmsRpcException - if something goes wrongjava.util.Map<java.lang.String,CmsValidationResult> validate(java.util.Map<java.lang.String,CmsValidationQuery> validationQueries) throws CmsRpcException
validationQueries - a map from field names to validation queriesCmsRpcException - if something goes wrongjava.util.Map<java.lang.String,CmsValidationResult> 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) throws CmsRpcException
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 stringCmsRpcException - if the RPC call goes wrong