public class CmsVfsService extends CmsGwtService implements I_CmsVfsService
| Constructor and Description |
|---|
CmsVfsService() |
| Modifier and Type | Method and Description |
|---|---|
static CmsListInfoBean |
addLockInfo(CmsObject cms,
CmsResource resource,
CmsListInfoBean resourceInfo)
Adds the lock state information to the resource info bean.
|
protected static CmsListInfoBean |
addPageInfo(CmsObject cms,
CmsResource resource,
CmsListInfoBean listInfo)
Gets page information of a resource and adds it to the given list info bean.
|
void |
createNewExternalLink(java.lang.String title,
java.lang.String link,
java.lang.String resourceName,
java.lang.String parentFolderPath)
Creates a new external link resource.
|
void |
createPropertyDefinition(java.lang.String name)
Creates a new property definition.
|
protected CmsBrokenLinkBean |
createSitemapBrokenLinkBean(CmsResource resource)
Creates a "broken link" bean based on a resource.
|
void |
deleteResource(CmsUUID structureId)
Deletes a resource from the VFS.
|
void |
deleteResource(java.lang.String sitePath)
Deletes a resource from the VFS.
|
void |
forceUnlock(CmsUUID structureId)
Forces a resource to be unlocked.
|
static java.lang.String |
formatDateTime(CmsObject cms,
long date)
Formats a date given the current user's workplace locale.
|
java.util.List<CmsAliasBean> |
getAliasesForPage(CmsUUID uuid)
Fetches the aliases for a given page.
|
CmsDeleteResourceBean |
getBrokenLinks(CmsUUID structureId)
Returns a list of potentially broken links, if the given resource was deleted.
|
CmsDeleteResourceBean |
getBrokenLinks(java.lang.String sitePath)
Returns a list of potentially broken links, if the given resource was deleted.
|
java.util.List<CmsVfsEntryBean> |
getChildren(java.lang.String path)
Fetches the list of children of a path.
|
java.lang.String |
getDataViewThumbnail(java.lang.String config,
java.lang.String id)
Loads a thumbnail for a dataview record.
|
java.util.Map<CmsUUID,java.util.Map<java.lang.String,CmsXmlContentProperty>> |
getDefaultProperties(java.util.List<CmsUUID> structureIds)
Gets the default property configurations for the given structure ids.
|
java.util.ArrayList<java.lang.String> |
getDefinedProperties()
Gets the names of defined properties.
|
CmsReplaceInfo |
getFileReplaceInfo(CmsUUID structureId)
Returns the file replace info.
|
CmsPreviewInfo |
getHistoryPreviewInfo(CmsUUID structureId,
java.lang.String locale,
CmsHistoryVersion versionBean)
Gets the preview information for a historic version.
|
CmsLockReportInfo |
getLockReportInfo(CmsUUID structureId)
Returns the lock report info.
|
static java.lang.String |
getNoPreviewReason(CmsObject cms,
CmsResource resource)
Returns the no preview reason if there is any.
|
static CmsListInfoBean |
getPageInfo(CmsObject cms,
CmsResource res)
Gets page information of a resource.
|
CmsListInfoBean |
getPageInfo(CmsUUID structureId)
Returns a
CmsListInfoBean for a given resource. |
CmsListInfoBean |
getPageInfo(java.lang.String vfsPath)
Returns a
CmsListInfoBean for a given resource. |
static CmsListInfoBean |
getPageInfoWithLock(CmsObject cms,
CmsResource resource)
Returns a bean to display the
org.opencms.gwt.client.ui.CmsListItemWidget including the lock state. |
CmsPreviewInfo |
getPreviewInfo(CmsUUID structureId,
java.lang.String locale)
Returns the preview info for the given resource.
|
CmsPreviewInfo |
getPreviewInfo(java.lang.String sitePath,
java.lang.String locale)
Returns the preview info for the given resource.
|
CmsRenameInfoBean |
getRenameInfo(CmsUUID structureId)
Gets the information necessary for the rename dialog.
|
CmsHistoryResourceCollection |
getResourceHistory(CmsUUID structureId)
Gets the resource history for a given structure id.
|
CmsHistoryResourceCollection |
getResourceHistoryInternal(CmsUUID structureId)
Internal version of getResourceHistory.
|
CmsResourceStatusBean |
getResourceStatus(CmsUUID structureId,
java.lang.String contentLocale,
boolean includeTargets,
CmsUUID detailContentId,
java.util.Map<java.lang.String,java.lang.String> context)
Gets a bean containing status information for a given resource.
|
CmsRestoreInfoBean |
getRestoreInfo(CmsUUID structureId)
Gets the information which is necessary for opening the 'Restore' dialog for a resource.
|
java.util.List<CmsVfsEntryBean> |
getRootEntries()
Returns the root entries of the VFS.
|
java.lang.String |
getSitePath(CmsUUID structureId)
Returns the site-path for the resource with the given id.
|
CmsExternalLinkInfoBean |
loadLinkInfo(CmsUUID structureId)
Loads the external link info.
|
CmsPropertiesBean |
loadPropertyData(CmsUUID id)
Load the data necessary to edit the properties of a resource.
|
java.util.List<CmsQuickLaunchData> |
loadQuickLaunchItems(CmsQuickLaunchParams params)
Loads the items for the quick launch menu.
|
protected CmsVfsEntryBean |
makeEntryBean(CmsResource resource,
boolean root)
Helper method for creating a VFS entry bean from a resource.
|
protected java.util.List<CmsVfsEntryBean> |
makeEntryBeans(java.util.List<CmsResource> resources,
boolean root)
Helper method for creating a list of VFS entry beans from a list of the corresponding resources.
|
CmsPrepareEditResponse |
prepareEdit(CmsUUID currentPageId,
java.lang.String pathWithMacros)
Prepares to edit a file in the XML content editor.
|
static java.lang.String |
prepareFileNameForEditor(CmsObject cms,
CmsResource res,
java.lang.String pathWithMacros)
Processes a file path, which may have macros in it, so it can be opened by the XML content editor.
|
java.lang.String |
renameResource(CmsUUID structureId,
java.lang.String newName)
Renames a resource.
|
java.lang.String |
renameResourceInternal(CmsUUID structureId,
java.lang.String newName)
Internal implementation for renaming a resource.
|
void |
restoreResource(CmsUUID structureId,
int version)
Reverts a resource to a previous historic version.
|
void |
saveAliases(CmsUUID structureId,
java.util.List<CmsAliasBean> aliasBeans)
Saves aliases for a page.
|
void |
saveExternalLink(CmsUUID structureId,
java.lang.String title,
java.lang.String link,
java.lang.String fileName)
Saves the external link.
|
void |
saveProperties(CmsPropertyChangeSet changes)
Saves a set of property changes.
|
void |
setCms(CmsObject cms)
Sets the current cms context.
|
java.lang.String |
substituteLinkForRootPath(java.lang.String currentSiteRoot,
java.lang.String rootPath)
Returns the absolute link to the given root path.
|
void |
syncDeleteResource(CmsUUID structureId)
Deletes a resource from the VFS.
|
void |
undelete(CmsUUID structureId)
Undeletes a resource.
|
void |
undoChanges(CmsUUID structureId,
boolean undoMove)
Undoes the changes to a given resource, i.e. restores its online content to its offline version.
|
java.util.Map<java.lang.String,java.lang.String> |
validateAliases(CmsUUID uuid,
java.util.Map<java.lang.String,java.lang.String> aliasPaths)
Validates alias paths for a page.
|
checkPermissions, clearThreadStorage, doGetSerializationPolicy, doUnexpectedFailure, ensureLock, ensureLock, ensureLock, ensureSession, error, getCmsObject, getPropertiesByName, getRequest, getResponse, log, log, logError, service, setContext, setRequest, setResponse, tryUnlockcheckPermutationStrongName, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processCall, processPost, shouldCompressResponsedoPost, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, servicepublic CmsVfsService()
public static CmsListInfoBean addLockInfo(CmsObject cms, CmsResource resource, CmsListInfoBean resourceInfo) throws CmsException
cms - the CMS contextresource - the resource to get the page info forresourceInfo - the resource info to add the lock state toCmsException - if something else goes wrongpublic static java.lang.String formatDateTime(CmsObject cms, long date)
cms - the current CMS contextdate - the date to formatpublic static java.lang.String getNoPreviewReason(CmsObject cms, CmsResource resource)
cms - the current cms contextresource - the resource to checkpublic static CmsListInfoBean getPageInfo(CmsObject cms, CmsResource res) throws CmsException
cms - the CMS contextres - the resourceCmsException - if the resource info can not be readpublic static CmsListInfoBean getPageInfoWithLock(CmsObject cms, CmsResource resource) throws CmsLoaderException, CmsException
org.opencms.gwt.client.ui.CmsListItemWidget including the lock state.cms - the CMS contextresource - the resource to get the page info fororg.opencms.gwt.client.ui.CmsListItemWidget.CmsLoaderException - if the resource type could not be foundCmsException - if something else goes wrongpublic static java.lang.String prepareFileNameForEditor(CmsObject cms, CmsResource res, java.lang.String pathWithMacros)
cms - the current CMS contextres - the resource for which the context menu option has been selectedpathWithMacros - the file path which may contain macrosprotected static CmsListInfoBean addPageInfo(CmsObject cms, CmsResource resource, CmsListInfoBean listInfo) throws CmsException
cms - the CMS contextresource - the resourcelistInfo - the list info bean to add the information toCmsException - if the resource info can not be readpublic void createNewExternalLink(java.lang.String title, java.lang.String link, java.lang.String resourceName, java.lang.String parentFolderPath) throws CmsRpcException
I_CmsVfsServicecreateNewExternalLink in interface I_CmsVfsServicetitle - the titlelink - the linkresourceName - the name of the link resource to createparentFolderPath - the parent folder site pathCmsRpcException - if something goes wrongI_CmsVfsService.createNewExternalLink(java.lang.String, java.lang.String, java.lang.String, java.lang.String)public void createPropertyDefinition(java.lang.String name) throws CmsRpcException
I_CmsVfsServicecreatePropertyDefinition in interface I_CmsVfsServicename - the name of the propertyCmsRpcException - if something goes wrongI_CmsVfsService.createPropertyDefinition(java.lang.String)public void deleteResource(CmsUUID structureId) throws CmsRpcException
I_CmsVfsServicedeleteResource in interface I_CmsVfsServicestructureId - the structure id of the resource to deleteCmsRpcException - if something goes wrongI_CmsVfsService.deleteResource(org.opencms.util.CmsUUID)public void deleteResource(java.lang.String sitePath) throws CmsRpcException
I_CmsVfsServicedeleteResource in interface I_CmsVfsServicesitePath - the site path of the resource to deleteCmsRpcException - if something goes wrongI_CmsVfsService.deleteResource(java.lang.String)public void forceUnlock(CmsUUID structureId) throws CmsRpcException
I_CmsVfsServiceforceUnlock in interface I_CmsVfsServicestructureId - the structure id of the resource to unlockCmsRpcException - if something goes wrongI_CmsVfsService.forceUnlock(org.opencms.util.CmsUUID)public java.util.List<CmsAliasBean> getAliasesForPage(CmsUUID uuid) throws CmsRpcException
I_CmsVfsServicegetAliasesForPage in interface I_CmsVfsServiceuuid - the structure id of the pageCmsRpcException - if something goes wrongI_CmsVfsService.getAliasesForPage(org.opencms.util.CmsUUID)public CmsDeleteResourceBean getBrokenLinks(CmsUUID structureId) throws CmsRpcException
I_CmsVfsServicegetBrokenLinks in interface I_CmsVfsServicestructureId - the resource structure idCmsRpcException - if something goes wrongI_CmsVfsService.getBrokenLinks(org.opencms.util.CmsUUID)public CmsDeleteResourceBean getBrokenLinks(java.lang.String sitePath) throws CmsRpcException
I_CmsVfsServicegetBrokenLinks in interface I_CmsVfsServicesitePath - the resource site-pathCmsRpcException - if something goes wrongI_CmsVfsService.getBrokenLinks(java.lang.String)public java.util.List<CmsVfsEntryBean> getChildren(java.lang.String path) throws CmsRpcException
I_CmsVfsServicegetChildren in interface I_CmsVfsServicepath - the path for which the list of children should be retrievedCmsRpcException - if something goes wrongI_CmsVfsService.getChildren(java.lang.String)public java.lang.String getDataViewThumbnail(java.lang.String config, java.lang.String id) throws CmsRpcException
I_CmsVfsServicegetDataViewThumbnail in interface I_CmsVfsServiceconfig - the dataview configuration stringid - the record idCmsRpcException - if something goes wrongI_CmsVfsService.getDataViewThumbnail(java.lang.String, java.lang.String)public java.util.Map<CmsUUID,java.util.Map<java.lang.String,CmsXmlContentProperty>> getDefaultProperties(java.util.List<CmsUUID> structureIds) throws CmsRpcException
I_CmsVfsServicegetDefaultProperties in interface I_CmsVfsServicestructureIds - the structure ids for which the property configurations should be fetchedCmsRpcException - if something goes wrongI_CmsVfsService.getDefaultProperties(java.util.List)public java.util.ArrayList<java.lang.String> getDefinedProperties() throws CmsRpcException
I_CmsVfsServicegetDefinedProperties in interface I_CmsVfsServiceCmsRpcException - if something goes wrongI_CmsVfsService.getDefinedProperties()public CmsReplaceInfo getFileReplaceInfo(CmsUUID structureId) throws CmsRpcException
I_CmsVfsServicegetFileReplaceInfo in interface I_CmsVfsServicestructureId - the structure id of the file to replaceCmsRpcException - if the RPC call goes wrongI_CmsVfsService.getFileReplaceInfo(org.opencms.util.CmsUUID)public CmsPreviewInfo getHistoryPreviewInfo(CmsUUID structureId, java.lang.String locale, CmsHistoryVersion versionBean) throws CmsRpcException
I_CmsVfsServicegetHistoryPreviewInfo in interface I_CmsVfsServicestructureId - the structure id of the resourcelocale - the localeversionBean - the version numberCmsRpcException - if something goes wrongI_CmsVfsService.getHistoryPreviewInfo(org.opencms.util.CmsUUID, java.lang.String, org.opencms.gwt.shared.CmsHistoryVersion)public CmsLockReportInfo getLockReportInfo(CmsUUID structureId) throws CmsRpcException
I_CmsVfsServicegetLockReportInfo in interface I_CmsVfsServicestructureId - the structure id of the resource to get the report forCmsRpcException - if something goes wrongI_CmsVfsService.getLockReportInfo(org.opencms.util.CmsUUID)public CmsListInfoBean getPageInfo(CmsUUID structureId) throws CmsRpcException
I_CmsVfsServiceCmsListInfoBean for a given resource.getPageInfo in interface I_CmsVfsServicestructureId - the structure id to create the CmsListInfoBean forCmsListInfoBean for a given resourceCmsRpcException - if the RPC call goes wrongI_CmsVfsService.getPageInfo(org.opencms.util.CmsUUID)public CmsListInfoBean getPageInfo(java.lang.String vfsPath) throws CmsRpcException
I_CmsVfsServiceCmsListInfoBean for a given resource.getPageInfo in interface I_CmsVfsServicevfsPath - the vfs path to create the CmsListInfoBean forCmsListInfoBean for a given resourceCmsRpcException - if the RPC call goes wrongI_CmsVfsService.getPageInfo(java.lang.String)public CmsPreviewInfo getPreviewInfo(CmsUUID structureId, java.lang.String locale) throws CmsRpcException
I_CmsVfsServicegetPreviewInfo in interface I_CmsVfsServicestructureId - the resource structure idlocale - the requested localeCmsRpcException - if something goes wrongI_CmsVfsService.getPreviewInfo(org.opencms.util.CmsUUID, java.lang.String)public CmsPreviewInfo getPreviewInfo(java.lang.String sitePath, java.lang.String locale) throws CmsRpcException
I_CmsVfsServicegetPreviewInfo in interface I_CmsVfsServicesitePath - the resource site pathlocale - the requested localeCmsRpcException - if something goes wrongI_CmsVfsService.getPreviewInfo(java.lang.String, java.lang.String)public CmsRenameInfoBean getRenameInfo(CmsUUID structureId) throws CmsRpcException
I_CmsVfsServicegetRenameInfo in interface I_CmsVfsServicestructureId - the structure id of the resource to renameCmsRpcException - if something goes wrongI_CmsVfsService.getRenameInfo(org.opencms.util.CmsUUID)public CmsHistoryResourceCollection getResourceHistory(CmsUUID structureId) throws CmsRpcException
I_CmsVfsServicegetResourceHistory in interface I_CmsVfsServicestructureId - the structure id of a resourceCmsRpcException - if something goes wrongI_CmsVfsService.getResourceHistory(org.opencms.util.CmsUUID)public CmsHistoryResourceCollection getResourceHistoryInternal(CmsUUID structureId) throws CmsException
structureId - the structure id of the resourceCmsException - if something goes wrongpublic CmsResourceStatusBean getResourceStatus(CmsUUID structureId, java.lang.String contentLocale, boolean includeTargets, CmsUUID detailContentId, java.util.Map<java.lang.String,java.lang.String> context) throws CmsRpcException
I_CmsVfsServicegetResourceStatus in interface I_CmsVfsServicestructureId - the structure id of a resourcecontentLocale - the locale for which we want the resource informationincludeTargets - true if relation targets should also be fetcheddetailContentId - the structure id of the detail content if presentcontext - additional context-dependent parameters used for providing additional informationCmsRpcException - if something goes wrongI_CmsVfsService.getResourceStatus(org.opencms.util.CmsUUID, java.lang.String, boolean, org.opencms.util.CmsUUID, java.util.Map)public CmsRestoreInfoBean getRestoreInfo(CmsUUID structureId) throws CmsRpcException
I_CmsVfsServicegetRestoreInfo in interface I_CmsVfsServicestructureId - the structure id of the resourceCmsRpcException - if something goes wrongI_CmsVfsService.getRestoreInfo(org.opencms.util.CmsUUID)public java.util.List<CmsVfsEntryBean> getRootEntries() throws CmsRpcException
I_CmsVfsServicegetRootEntries in interface I_CmsVfsServiceCmsRpcException - if something goes wrongI_CmsVfsService.getRootEntries()public java.lang.String getSitePath(CmsUUID structureId)
I_CmsVfsServicegetSitePath in interface I_CmsVfsServicestructureId - the structure idnull if not availableI_CmsVfsService.getSitePath(org.opencms.util.CmsUUID)public CmsExternalLinkInfoBean loadLinkInfo(CmsUUID structureId) throws CmsRpcException
I_CmsVfsServiceloadLinkInfo in interface I_CmsVfsServicestructureId - the external link structure idCmsRpcException - if something goes wrongI_CmsVfsService.loadLinkInfo(org.opencms.util.CmsUUID)public CmsPropertiesBean loadPropertyData(CmsUUID id) throws CmsRpcException
I_CmsVfsServiceloadPropertyData in interface I_CmsVfsServiceid - the structure id of a resourceCmsRpcException - if something goes wrongI_CmsVfsService.loadPropertyData(org.opencms.util.CmsUUID)public java.util.List<CmsQuickLaunchData> loadQuickLaunchItems(CmsQuickLaunchParams params) throws CmsRpcException
I_CmsVfsServiceloadQuickLaunchItems in interface I_CmsVfsServiceparams - the quick launch parametersCmsRpcException - if something goes wrongI_CmsVfsService.loadQuickLaunchItems(org.opencms.gwt.shared.CmsQuickLaunchParams)public CmsPrepareEditResponse prepareEdit(CmsUUID currentPageId, java.lang.String pathWithMacros) throws CmsRpcException
I_CmsVfsServiceprepareEdit in interface I_CmsVfsServicecurrentPageId - the current page from which the editor should be openedpathWithMacros - the file name, which may contain macrosCmsRpcException - if something goes wrongI_CmsVfsService.prepareEdit(org.opencms.util.CmsUUID, java.lang.String)public java.lang.String renameResource(CmsUUID structureId, java.lang.String newName) throws CmsRpcException
I_CmsVfsServicerenameResource in interface I_CmsVfsServicestructureId - the structure id of the resource to renamenewName - the new resource nameCmsRpcException - if something goes wrongI_CmsVfsService.renameResource(org.opencms.util.CmsUUID, java.lang.String)public java.lang.String renameResourceInternal(CmsUUID structureId, java.lang.String newName) throws CmsException
structureId - the structure id of the resource to renamenewName - the new resource nameCmsException - if something goes wrongpublic void restoreResource(CmsUUID structureId, int version) throws CmsRpcException
I_CmsVfsServicerestoreResource in interface I_CmsVfsServicestructureId - the structure id of the resource to revertversion - the version to which the resource should be revertedCmsRpcException - if something goes wrongI_CmsVfsService.restoreResource(org.opencms.util.CmsUUID, int)public void saveAliases(CmsUUID structureId, java.util.List<CmsAliasBean> aliasBeans) throws CmsRpcException
I_CmsVfsServicesaveAliases in interface I_CmsVfsServicestructureId - the structure id of the pagealiasBeans - the aliases which should be saved for the pageCmsRpcException - if something goes wrongI_CmsVfsService.saveAliases(org.opencms.util.CmsUUID, java.util.List)public void saveExternalLink(CmsUUID structureId, java.lang.String title, java.lang.String link, java.lang.String fileName) throws CmsRpcException
I_CmsVfsServicesaveExternalLink in interface I_CmsVfsServicestructureId - the link structure idtitle - the link titlelink - the linkfileName - the file nameCmsRpcException - if something goes wrongI_CmsVfsService.saveExternalLink(org.opencms.util.CmsUUID, java.lang.String, java.lang.String, java.lang.String)public void saveProperties(CmsPropertyChangeSet changes) throws CmsRpcException
I_CmsVfsServicesaveProperties in interface I_CmsVfsServicechanges - a set of property changesCmsRpcException - if something goes wrongI_CmsVfsService.saveProperties(org.opencms.gwt.shared.property.CmsPropertyChangeSet)public void setCms(CmsObject cms)
setCms in class CmsGwtServicecms - the current cms context to setpublic java.lang.String substituteLinkForRootPath(java.lang.String currentSiteRoot, java.lang.String rootPath) throws CmsRpcException
I_CmsVfsServicesubstituteLinkForRootPath in interface I_CmsVfsServicecurrentSiteRoot - the current siterootPath - the root pathCmsRpcException - if something goes wrong processing the requestI_CmsVfsService.substituteLinkForRootPath(java.lang.String, java.lang.String)public void syncDeleteResource(CmsUUID structureId) throws CmsRpcException
I_CmsVfsServicesyncDeleteResource in interface I_CmsVfsServicestructureId - the structure id of the resource to deleteCmsRpcException - if something goes wrongI_CmsVfsService.syncDeleteResource(org.opencms.util.CmsUUID)public void undelete(CmsUUID structureId) throws CmsRpcException
I_CmsVfsServiceundelete in interface I_CmsVfsServicestructureId - the structure id of the resource to undeleteCmsRpcException - if something goes wrongI_CmsVfsService.undelete(org.opencms.util.CmsUUID)public void undoChanges(CmsUUID structureId, boolean undoMove) throws CmsRpcException
I_CmsVfsServiceundoChanges in interface I_CmsVfsServicestructureId - the structure id of the resource to undoundoMove - true if move operations should be undoneCmsRpcException - if something goes wrongI_CmsVfsService.undoChanges(org.opencms.util.CmsUUID, boolean)public java.util.Map<java.lang.String,java.lang.String> validateAliases(CmsUUID uuid, java.util.Map<java.lang.String,java.lang.String> aliasPaths) throws CmsRpcException
I_CmsVfsServicevalidateAliases in interface I_CmsVfsServiceuuid - the structure id of the pagealiasPaths - a map from (arbitrary) id strings to alias pathsCmsRpcException - if something goes wrongI_CmsVfsService.validateAliases(org.opencms.util.CmsUUID, java.util.Map)protected CmsBrokenLinkBean createSitemapBrokenLinkBean(CmsResource resource) throws CmsException
resource - the resourceCmsException - if something goes wrongprotected CmsVfsEntryBean makeEntryBean(CmsResource resource, boolean root) throws CmsException
resource - the resource whose data should be stored in the beanroot - true if the resource is a root resourceCmsException - if something goes wrongprotected java.util.List<CmsVfsEntryBean> makeEntryBeans(java.util.List<CmsResource> resources, boolean root) throws CmsException
resources - the list of resources which should be converted to entry beansroot - true if the resources in the list are root resourcesCmsException - if something goes wrong