|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface I_CmsCoreService
Provides general core services.
CmsCoreService,
I_CmsCoreService,
I_CmsCoreServiceAsync| Method Summary | |
|---|---|
CmsUUID |
createUUID()
Creates a new UUID. |
java.util.List<CmsCategoryTreeEntry> |
getCategories(java.lang.String fromCatPath,
boolean includeSubCats,
java.util.List<java.lang.String> refVfsPaths)
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. |
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. |
java.lang.String |
lockTemp(CmsUUID structureId)
Locks the given resource with a temporary lock. |
CmsLockInfo |
lockTempAndCheckModification(CmsUUID structureId,
long modification)
Locks the given resource with a temporary lock additionally checking that the given resource has not been modified after the given timestamp. |
void |
ping()
An RPC method which does nothing and is just used to keep the session alive. |
CmsCoreData |
prefetch()
Generates core data for prefetching in the host page. |
void |
setAvailabilityInfo(CmsUUID structureId,
CmsAvailabilityInfoBean bean)
Applies the changes stored in the info bean to the vfs of OpenCms. |
void |
setAvailabilityInfo(java.lang.String vfsPath,
CmsAvailabilityInfoBean bean)
Applies the changes stored in the info bean to the vfs of OpenCms. |
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.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. |
| Method Detail |
|---|
CmsUUID createUUID()
throws CmsRpcException
CmsRpcException - if something goes wrong
java.util.List<CmsCategoryTreeEntry> getCategories(java.lang.String fromCatPath,
boolean includeSubCats,
java.util.List<java.lang.String> refVfsPaths)
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 onlyrefVfsPaths - the reference paths, can be null to only use the system repository
CmsRpcException - if something goes wrong
java.util.List<CmsCategoryTreeEntry> getCategoriesForSitePath(java.lang.String sitePath)
throws CmsRpcException
sitePath - the reference site-path
CmsRpcException - if something goes wrong
CmsResourceCategoryInfo getCategoryInfo(CmsUUID structureId)
throws CmsRpcException
structureId - the resource structure id
CmsRpcException - if something goes wrong
java.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 wrong
CmsReturnLinkInfo getLinkForReturnCode(java.lang.String returnCode)
throws CmsRpcException
returnCode - the return code
CmsRpcException - if something goes wrong
CmsResourceState getResourceState(CmsUUID structureId)
throws CmsRpcException
structureId - the resource structure id
CmsRpcException - if something goes wrong
java.lang.String getUniqueFileName(java.lang.String parentFolder,
java.lang.String baseName)
throws CmsRpcException
parentFolder - the parent folder of the filebaseName - the proposed file name
CmsRpcException - if something goes wrong
java.lang.String getWorkplaceLink(CmsUUID structureId)
throws CmsRpcException
structureId - the structure id of the resource for which to open the workplace
CmsRpcException - if something goes wrong
java.lang.String lockTemp(CmsUUID structureId)
throws CmsRpcException
structureId - the structure id of the resource to lock
null if successful, an error message if not
CmsRpcException - if something goes wrong
CmsLockInfo lockTempAndCheckModification(CmsUUID structureId,
long modification)
throws CmsRpcException
structureId - the structure id of the resource to lockmodification - the timestamp to check
null if successful, an error message if not
CmsRpcException - if something goes wrongvoid ping()
CmsCoreData prefetch()
throws CmsRpcException
CmsRpcException - if something goes wrong
void setAvailabilityInfo(CmsUUID structureId,
CmsAvailabilityInfoBean bean)
throws CmsRpcException
structureId - the structure id of the modified resourcebean - the bean with the information of the dialog
CmsRpcException - if the RPC call goes wrong
void setAvailabilityInfo(java.lang.String vfsPath,
CmsAvailabilityInfoBean bean)
throws CmsRpcException
vfsPath - the vfs path of the modified resourcebean - the bean with the information of the dialog
CmsRpcException - if the RPC call goes wrong
void setResourceCategories(CmsUUID structureId,
java.util.List<java.lang.String> categories)
throws CmsRpcException
structureId - the resource structure idcategories - the categories to set
CmsRpcException - if something goes wrong
void setShowEditorHelp(boolean showHelp)
throws CmsRpcException
showHelp - the show help flag
CmsRpcException - if something goes wrong
void setToolbarVisible(boolean visible)
throws CmsRpcException
visible - true if the tool-bar is visible
CmsRpcException - if something goes wrong
java.lang.String unlock(CmsUUID structureId)
throws CmsRpcException
structureId - the structure id of the resource to unlock
null if successful, an error message if not
CmsRpcException - if something goes wrong
java.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 queries
CmsRpcException - if something goes wrong
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)
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 string
CmsRpcException - if the RPC call goes wrong
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||