public class CmsVfsSitemapService extends CmsGwtService implements I_CmsSitemapService
I_CmsSitemapService,
I_CmsSitemapServiceAsync,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
protected class |
CmsVfsSitemapService.LockInfo
Helper class for representing information about a lock.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ALIAS_DOWNLOAD_PATH
The path of the JSP used to download aliases.
|
static java.lang.String |
ALIAS_IMPORT_PATH
The path to the JSP used to upload aliases.
|
static java.lang.String |
ATTR_SHOW_MODEL_EDIT_CONFIRM
The show model edit confirm dialog attribute name.
|
static java.util.List<java.lang.String> |
FILTER_PROPERTIES
Properties to remove from the copied template when creating a new sitemap entry.
|
static java.lang.String |
GALLERIES_FOLDER_NAME
The galleries folder name.
|
static java.lang.String |
KEY_FUNCTION_DETAIL
The configuration key for the functionDetail attribute in the container.info property.
|
| Constructor and Description |
|---|
CmsVfsSitemapService() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
addAliasImportResult(java.util.List<CmsAliasImportResult> results)
Adds an alias import result.
|
void |
changeCategory(java.lang.String entryPoint,
CmsUUID id,
java.lang.String title,
java.lang.String name)
Sets the name and title of the given category.
|
void |
checkPermissions(CmsObject cms)
Checks the permissions of the current user to match the required security level.
|
void |
createCategory(java.lang.String entryPoint,
CmsUUID id,
java.lang.String title,
java.lang.String name)
Creates a new category.
|
static CmsClientProperty |
createClientProperty(CmsProperty prop,
boolean preserveOrigin)
Creates a client property bean from a server-side property.
|
CmsGalleryFolderEntry |
createNewGalleryFolder(java.lang.String parentFolder,
java.lang.String title,
int folderTypeId)
Creates a new gallery folder.
|
CmsModelPageEntry |
createNewModelPage(java.lang.String entryPointUri,
java.lang.String title,
java.lang.String description,
CmsUUID copyId,
boolean isModelGroup)
Creates a new model page.
|
protected CmsBrokenLinkBean |
createSitemapBrokenLinkBean(CmsResource resource)
Creates a "broken link" bean based on a resource.
|
CmsSitemapChange |
createSubSitemap(CmsUUID entryId)
Creates a sub-sitemap of the given sitemap starting from the given entry.
|
void |
disableModelPage(java.lang.String baseUri,
CmsUUID modelPageId,
boolean disabled)
Sets the disabled flag of a model page within the current sitemap configuration.
|
protected CmsVfsSitemapService.LockInfo |
ensureLockAndGetInfo(CmsResource resource)
Locks the given resource with a temporary, if not already locked by the current user.
|
java.util.List<CmsAliasImportResult> |
getAliasImportResult(java.lang.String resultKey)
Gets the alias import results from the server.
|
CmsAliasInitialFetchResult |
getAliasTable()
Gets the initial data for the bulk alias editor.
|
CmsSitemapCategoryData |
getCategoryData(java.lang.String entryPoint)
Gets the category data for the given entry point.
|
CmsClientSitemapEntry |
getChildren(java.lang.String entryPointUri,
CmsUUID entryId,
int levels)
Returns the sitemap children for the given path.
|
java.util.Map<CmsGalleryType,java.util.List<CmsGalleryFolderEntry>> |
getGalleryData(java.lang.String entryPointUri)
Returns the gallery data to this sub site.
|
CmsModelInfo |
getModelInfos(CmsUUID rootId)
Gets the model pages for the given structure id of the sitemap root folder.
|
java.util.List<CmsNewResourceInfo> |
getNewElementInfo(java.lang.String entryPointUri)
Loads the model page data for the "add" menu.
|
java.lang.String |
getResourceLink(CmsUUID baseId,
java.lang.String sitePath)
Fetches the link for a resource selected in the sitemap editor.
|
CmsLocaleComparePropertyData |
loadPropertyDataForLocaleCompareView(CmsUUID id,
CmsUUID rootId)
Loads the data needed by the property editor in the locale comparison view.
|
CmsSitemapChange |
mergeSubSitemap(java.lang.String entryPoint,
CmsUUID subSitemapId)
Merges a sub-sitemap into it's parent sitemap.
|
static CmsSitemapData |
prefetch(javax.servlet.http.HttpServletRequest request,
java.lang.String sitemapUri)
Fetches the sitemap data.
|
CmsSitemapData |
prefetch(java.lang.String sitemapUri)
Returns the initialization data for the given sitemap.
|
java.lang.String |
prepareReloadSitemap(CmsUUID rootId,
CmsSitemapData.EditorMode mode)
Prepares sitemap reloading for the given sitemap root.
|
void |
removeModelPage(java.lang.String entryPointUri,
CmsUUID id)
Removes a model page from the current sitemap configuration.
|
CmsSitemapChange |
save(java.lang.String entryPoint,
CmsSitemapChange change)
Saves the change to the given sitemap.
|
CmsAliasEditValidationReply |
saveAliases(CmsAliasSaveValidationRequest saveRequest)
Saves the aliases for the bulk alias editor.
|
protected CmsSitemapChange |
saveInternal(java.lang.String entryPoint,
CmsSitemapChange change)
Internal method for saving a sitemap.
|
void |
savePropertiesForLocaleCompareMode(CmsUUID id,
java.lang.String newUrlName,
java.util.List<CmsPropertyModification> propertyChanges,
boolean editedName)
Saves the changed properties in locale comparison mode.
|
CmsModelInfo |
setDefaultModel(CmsUUID rootId,
CmsUUID modelId)
Sets the default model page for the given sub-sitemap, returns the updated model info.
|
void |
setEditorMode(CmsSitemapData.EditorMode editorMode)
Sets the editor mode in the current user session.
|
void |
updateAliasEditorStatus(boolean editing)
Updates the alias editor status.
|
CmsAliasEditValidationReply |
validateAliases(CmsAliasEditValidationRequest validationRequest)
Validates the aliases for the bulk alias editor.
|
CmsRewriteAliasValidationReply |
validateRewriteAliases(CmsRewriteAliasValidationRequest validationRequest)
Validates rewrite aliases.
|
clearThreadStorage, doGetSerializationPolicy, doUnexpectedFailure, ensureLock, ensureLock, ensureLock, ensureSession, error, getCmsObject, getPropertiesByName, getRequest, getResponse, log, log, logError, service, setCms, 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 static final java.util.List<java.lang.String> FILTER_PROPERTIES
public static final java.lang.String ALIAS_DOWNLOAD_PATH
public static final java.lang.String ALIAS_IMPORT_PATH
public static final java.lang.String ATTR_SHOW_MODEL_EDIT_CONFIRM
public static final java.lang.String GALLERIES_FOLDER_NAME
public static final java.lang.String KEY_FUNCTION_DETAIL
public CmsVfsSitemapService()
public static java.lang.String addAliasImportResult(java.util.List<CmsAliasImportResult> results)
results - the list of alias import results to addpublic static CmsClientProperty createClientProperty(CmsProperty prop, boolean preserveOrigin)
prop - the property from which to create the client propertypreserveOrigin - if true, the origin will be copied into the new objectpublic static CmsSitemapData prefetch(javax.servlet.http.HttpServletRequest request, java.lang.String sitemapUri) throws CmsRpcException
request - the current requestsitemapUri - the site relative pathCmsRpcException - if something goes wrongpublic void changeCategory(java.lang.String entryPoint, CmsUUID id, java.lang.String title, java.lang.String name) throws CmsRpcException
I_CmsSitemapServicechangeCategory in interface I_CmsSitemapServiceentryPoint - the current entry pointid - the category idtitle - the new titlename - the new nameCmsRpcException - if something goes wrongI_CmsSitemapService.changeCategory(java.lang.String, org.opencms.util.CmsUUID, java.lang.String, java.lang.String)public void checkPermissions(CmsObject cms) throws CmsRoleViolationException
CmsGwtServiceNote that the current request and response are not available yet.
Override if needed.
checkPermissions in class CmsGwtServicecms - the current cms objectCmsRoleViolationException - if the security level can not be satisfiedCmsGwtService.checkPermissions(org.opencms.file.CmsObject)public void createCategory(java.lang.String entryPoint, CmsUUID id, java.lang.String title, java.lang.String name) throws CmsRpcException
I_CmsSitemapServicecreateCategory in interface I_CmsSitemapServiceentryPoint - the entry pointid - the parent category idtitle - the titlename - the category nameCmsRpcException - if something goes wrongI_CmsSitemapService.createCategory(java.lang.String, org.opencms.util.CmsUUID, java.lang.String, java.lang.String)public CmsGalleryFolderEntry createNewGalleryFolder(java.lang.String parentFolder, java.lang.String title, int folderTypeId) throws CmsRpcException
I_CmsSitemapServicecreateNewGalleryFolder in interface I_CmsSitemapServiceparentFolder - the parent folder pathtitle - the title propertyfolderTypeId - the resource type idCmsRpcException - if something goes wrongI_CmsSitemapService.createNewGalleryFolder(java.lang.String, java.lang.String, int)public CmsModelPageEntry createNewModelPage(java.lang.String entryPointUri, java.lang.String title, java.lang.String description, CmsUUID copyId, boolean isModelGroup) throws CmsRpcException
I_CmsSitemapServicecreateNewModelPage in interface I_CmsSitemapServiceentryPointUri - the uri of the entry pointtitle - the title for the model pagedescription - the description for the model pagecopyId - the structure id of the resource to copy to create a new model page; if null, the model page is created as an empty container pageisModelGroup - true to create a new model group pageCmsRpcException - if something goes wrongI_CmsSitemapService.createNewModelPage(java.lang.String, java.lang.String, java.lang.String, org.opencms.util.CmsUUID, boolean)public CmsSitemapChange createSubSitemap(CmsUUID entryId) throws CmsRpcException
I_CmsSitemapServicecreateSubSitemap in interface I_CmsSitemapServiceentryId - the structure id of the sitemap entry to create a sub sitemap ofCmsRpcException - if something goes wrongI_CmsSitemapService.createSubSitemap(org.opencms.util.CmsUUID)public void disableModelPage(java.lang.String baseUri, CmsUUID modelPageId, boolean disabled) throws CmsRpcException
I_CmsSitemapServicedisableModelPage in interface I_CmsSitemapServicebaseUri - the base uri for the current sitemapmodelPageId - structure id of the model page to removedisabled - the disabled flagCmsRpcException - if something goes wrongI_CmsSitemapService.disableModelPage(java.lang.String, org.opencms.util.CmsUUID, boolean)public java.util.List<CmsAliasImportResult> getAliasImportResult(java.lang.String resultKey)
I_CmsSitemapServicegetAliasImportResult in interface I_CmsSitemapServiceresultKey - the key which identifies the alias import results to getI_CmsSitemapService.getAliasImportResult(java.lang.String)public CmsAliasInitialFetchResult getAliasTable() throws CmsRpcException
I_CmsSitemapServicegetAliasTable in interface I_CmsSitemapServiceCmsRpcException - if something goes wrongI_CmsSitemapService.getAliasTable()public CmsSitemapCategoryData getCategoryData(java.lang.String entryPoint) throws CmsRpcException
I_CmsSitemapServicegetCategoryData in interface I_CmsSitemapServiceentryPoint - the entry pointCmsRpcException - if something goes wrongI_CmsSitemapService.getCategoryData(java.lang.String)public CmsClientSitemapEntry getChildren(java.lang.String entryPointUri, CmsUUID entryId, int levels) throws CmsRpcException
I_CmsSitemapServicegetChildren in interface I_CmsSitemapServiceentryPointUri - the URI of the sitemap entry pointentryId - the entry idlevels - the count of child levels to readCmsRpcException - if something goes wrongI_CmsSitemapService.getChildren(java.lang.String, org.opencms.util.CmsUUID, int)public java.util.Map<CmsGalleryType,java.util.List<CmsGalleryFolderEntry>> getGalleryData(java.lang.String entryPointUri)
I_CmsSitemapServicegetGalleryData in interface I_CmsSitemapServiceentryPointUri - the sub site folderI_CmsSitemapService.getGalleryData(java.lang.String)public CmsModelInfo getModelInfos(CmsUUID rootId) throws CmsRpcException
I_CmsSitemapServicegetModelInfos in interface I_CmsSitemapServicerootId - structure id of a folderCmsRpcException - if something goes wrongI_CmsSitemapService.getModelInfos(org.opencms.util.CmsUUID)public java.util.List<CmsNewResourceInfo> getNewElementInfo(java.lang.String entryPointUri) throws CmsRpcException
I_CmsSitemapServicegetNewElementInfo in interface I_CmsSitemapServiceentryPointUri - the entry point uriCmsRpcException - if something goes wrongI_CmsSitemapService.getNewElementInfo(java.lang.String)public java.lang.String getResourceLink(CmsUUID baseId, java.lang.String sitePath) throws CmsRpcException
I_CmsSitemapServicegetResourceLink in interface I_CmsSitemapServicebaseId - the structure id of the current sitemap root entrysitePath - the site path of a resourceCmsRpcException - if something goes wrongI_CmsSitemapService.getResourceLink(org.opencms.util.CmsUUID, java.lang.String)public CmsLocaleComparePropertyData loadPropertyDataForLocaleCompareView(CmsUUID id, CmsUUID rootId) throws CmsRpcException
I_CmsSitemapServiceloadPropertyDataForLocaleCompareView in interface I_CmsSitemapServiceid - the id of the resource for which the property editor should be openedrootId - the structure id of the resource which corresponds to the tree root in locale compare modeCmsRpcException - if something goes wrongI_CmsSitemapService.loadPropertyDataForLocaleCompareView(org.opencms.util.CmsUUID, org.opencms.util.CmsUUID)public CmsSitemapChange mergeSubSitemap(java.lang.String entryPoint, CmsUUID subSitemapId) throws CmsRpcException
I_CmsSitemapServicemergeSubSitemap in interface I_CmsSitemapServiceentryPoint - the sitemap entry pointsubSitemapId - the structure id of the sub sitemap folderCmsRpcException - if something goes wrongI_CmsSitemapService.mergeSubSitemap(java.lang.String, org.opencms.util.CmsUUID)public CmsSitemapData prefetch(java.lang.String sitemapUri) throws CmsRpcException
I_CmsSitemapServiceprefetch in interface I_CmsSitemapServicesitemapUri - the site relative pathCmsRpcException - if something goes wrongI_CmsSitemapService.prefetch(java.lang.String)public java.lang.String prepareReloadSitemap(CmsUUID rootId, CmsSitemapData.EditorMode mode) throws CmsRpcException
I_CmsSitemapServiceThis method may change the currently set site root. If the given root id is not in a valid site, null will be returned, otherwise the URL which the client should use to reload the sitemap will be returned.
prepareReloadSitemap in interface I_CmsSitemapServicerootId - the structure id of the new sitemap rootmode - the new editor modeCmsRpcException - if something goes wrongI_CmsSitemapService.prepareReloadSitemap(org.opencms.util.CmsUUID, org.opencms.ade.sitemap.shared.CmsSitemapData.EditorMode)public void removeModelPage(java.lang.String entryPointUri, CmsUUID id) throws CmsRpcException
I_CmsSitemapServiceremoveModelPage in interface I_CmsSitemapServiceentryPointUri - the base uri for the current sitemapid - structure id of the model page to removeCmsRpcException - if something goes wrongI_CmsSitemapService.removeModelPage(java.lang.String, org.opencms.util.CmsUUID)public CmsSitemapChange save(java.lang.String entryPoint, CmsSitemapChange change) throws CmsRpcException
I_CmsSitemapServicesave in interface I_CmsSitemapServiceentryPoint - the sitemap URIchange - the change to saveCmsRpcException - if something goes wrongI_CmsSitemapService.save(java.lang.String, org.opencms.ade.sitemap.shared.CmsSitemapChange)public CmsAliasEditValidationReply saveAliases(CmsAliasSaveValidationRequest saveRequest) throws CmsRpcException
I_CmsSitemapServicesaveAliases in interface I_CmsSitemapServicesaveRequest - the object containing the data to saveCmsRpcException - if something goes wrongI_CmsSitemapService.saveAliases(org.opencms.gwt.shared.alias.CmsAliasSaveValidationRequest)public void savePropertiesForLocaleCompareMode(CmsUUID id, java.lang.String newUrlName, java.util.List<CmsPropertyModification> propertyChanges, boolean editedName) throws CmsRpcException
I_CmsSitemapServicesavePropertiesForLocaleCompareMode in interface I_CmsSitemapServiceid - the structure idnewUrlName - the new URL namepropertyChanges - the property changeseditedName - true if the name was editedCmsRpcException - if something goes wrongI_CmsSitemapService.savePropertiesForLocaleCompareMode(org.opencms.util.CmsUUID, java.lang.String, java.util.List, boolean)public CmsModelInfo setDefaultModel(CmsUUID rootId, CmsUUID modelId) throws CmsRpcException
I_CmsSitemapServicesetDefaultModel in interface I_CmsSitemapServicerootId - structure id of the sub-sitemap root foldermodelId - the id of the model page to set as defaultCmsRpcException - if something goes wrongI_CmsSitemapService.setDefaultModel(org.opencms.util.CmsUUID, org.opencms.util.CmsUUID)public void setEditorMode(CmsSitemapData.EditorMode editorMode)
I_CmsSitemapServicesetEditorMode in interface I_CmsSitemapServiceeditorMode - the editor mode to setI_CmsSitemapService.setEditorMode(org.opencms.ade.sitemap.shared.CmsSitemapData.EditorMode)public void updateAliasEditorStatus(boolean editing)
I_CmsSitemapServiceThis is used to keep two users from editing the alias table for a site root concurrently.
updateAliasEditorStatus in interface I_CmsSitemapServiceediting - true to indicate that the table is still being edited, false to indicate that the table isn't being edited anymoreI_CmsSitemapService.updateAliasEditorStatus(boolean)public CmsAliasEditValidationReply validateAliases(CmsAliasEditValidationRequest validationRequest)
I_CmsSitemapServicevalidateAliases in interface I_CmsSitemapServicevalidationRequest - an object indicating the type of validation to performI_CmsSitemapService.validateAliases(org.opencms.gwt.shared.alias.CmsAliasEditValidationRequest)public CmsRewriteAliasValidationReply validateRewriteAliases(CmsRewriteAliasValidationRequest validationRequest)
I_CmsSitemapServicevalidateRewriteAliases in interface I_CmsSitemapServicevalidationRequest - the rewrite alias data to validateI_CmsSitemapService.validateRewriteAliases(org.opencms.gwt.shared.alias.CmsRewriteAliasValidationRequest)protected CmsBrokenLinkBean createSitemapBrokenLinkBean(CmsResource resource) throws CmsException
resource - the resourceCmsException - if something goes wrongprotected CmsVfsSitemapService.LockInfo ensureLockAndGetInfo(CmsResource resource) throws CmsException
resource - the resource to lockCmsException - if the resource could not be lockedprotected CmsSitemapChange saveInternal(java.lang.String entryPoint, CmsSitemapChange change) throws CmsException
entryPoint - the URI of the sitemap to savechange - the change to saveCmsException - if something goes wrong