Interface I_CmsSitemapService
- All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
- All Known Implementing Classes:
CmsVfsSitemapService
Handles all RPC services related to the sitemap.
- Since:
- 8.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changeCategory
(String entryPoint, CmsUUID id, String title, String name) Sets the name and title of the given category.void
createCategory
(String entryPoint, CmsUUID id, String title, String name) Creates a new category.createNewGalleryFolder
(String parentFolder, String title, int folderTypeId) Creates a new gallery folder.createNewModelPage
(String entryPointUri, String title, String description, CmsUUID copyId, boolean isModelGroup) Creates a new model page.createSubSitemap
(CmsUUID entryId) Creates a sub-sitemap of the given sitemap starting from the given entry.void
disableModelPage
(String baseUri, CmsUUID modelPageId, boolean disabled) Sets the disabled flag of a model page within the current sitemap configuration.editAttributeData
(CmsUUID rootId) Loads the data for the attribute editor dialog and locks the sitemap configuration.getAliasImportResult
(String resultKey) Gets the alias import results from the server.Gets the initial data for the bulk alias editor.getCategoryData
(String entryPoint) Gets the category data for the given entry point.getChildren
(String entryPointUri, CmsUUID entryId, int levels) Returns the sitemap children for the given path.getGalleryData
(String entryPointUri) Returns the gallery data to this sub site.getModelInfos
(CmsUUID rootId) Gets the model pages for the given structure id of the sitemap root folder.getNewElementInfo
(String entryPointUri) Loads the model page data for the "add" menu.getResourceLink
(CmsUUID baseId, String sitePath) Fetches the link for a resource selected in the sitemap editor.loadPropertyDataForLocaleCompareView
(CmsUUID id, CmsUUID rootId) Loads the data needed by the property editor in the locale comparison view.mergeSubSitemap
(String entryPoint, CmsUUID subSitemapId) Merges a sub-sitemap into it's parent sitemap.Returns the initialization data for the given sitemap.prepareReloadSitemap
(CmsUUID rootId, CmsSitemapData.EditorMode mode) Prepares sitemap reloading for the given sitemap root.void
removeModelPage
(String baseUri, CmsUUID modelPageId) Removes a model page from the current sitemap configuration.save
(String sitemapUri, CmsSitemapChange change) Saves the change to the given sitemap.saveAliases
(CmsAliasSaveValidationRequest saveRequest) Saves the aliases for the bulk alias editor.void
savePropertiesForLocaleCompareMode
(CmsUUID id, String newUrlName, List<CmsPropertyModification> propertyChanges, boolean editedName) Saves the changed properties in locale comparison mode.void
saveSitemapAttributes
(CmsUUID rootId, Map<String, String> attributes) Saves the data from the sitemap attribute editor dialog to the sitemap configuration.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.validateAliases
(CmsAliasEditValidationRequest validationRequest) Validates the aliases for the bulk alias editor.validateRewriteAliases
(CmsRewriteAliasValidationRequest validationRequest) Validates rewrite aliases.
-
Method Details
-
changeCategory
void changeCategory(String entryPoint, CmsUUID id, String title, String name) throws CmsRpcException Sets the name and title of the given category.- Parameters:
entryPoint
- the current entry pointid
- the category idtitle
- the new titlename
- the new name- Throws:
CmsRpcException
- if something goes wrong
-
createCategory
void createCategory(String entryPoint, CmsUUID id, String title, String name) throws CmsRpcException Creates a new category.- Parameters:
entryPoint
- the entry pointid
- the parent category idtitle
- the titlename
- the category name- Throws:
CmsRpcException
- if something goes wrong
-
createNewGalleryFolder
CmsGalleryFolderEntry createNewGalleryFolder(String parentFolder, String title, int folderTypeId) throws CmsRpcException Creates a new gallery folder.- Parameters:
parentFolder
- the parent folder pathtitle
- the title propertyfolderTypeId
- the resource type id- Returns:
- the new gallery folder data
- Throws:
CmsRpcException
- if something goes wrong
-
createNewModelPage
CmsModelPageEntry createNewModelPage(String entryPointUri, String title, String description, CmsUUID copyId, boolean isModelGroup) throws CmsRpcException Creates a new model page.- Parameters:
entryPointUri
- 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 page- Returns:
- a bean representing the created model page
- Throws:
CmsRpcException
- if something goes wrong
-
createSubSitemap
Creates a sub-sitemap of the given sitemap starting from the given entry.- Parameters:
entryId
- the structure id of the sitemap entry to create a sub sitemap of- Returns:
- the sub-sitemap creation result
- Throws:
CmsRpcException
- if something goes wrong
-
disableModelPage
Sets the disabled flag of a model page within the current sitemap configuration.- Parameters:
baseUri
- the base uri for the current sitemapmodelPageId
- structure id of the model page to removedisabled
- the disabled flag- Throws:
CmsRpcException
- if something goes wrong
-
editAttributeData
Loads the data for the attribute editor dialog and locks the sitemap configuration.- Parameters:
rootId
- the root ID of the current sitemap- Returns:
- the data for the attribute editor dialog
- Throws:
CmsRpcException
- if something goes wrong
-
getAliasImportResult
Gets the alias import results from the server.- Parameters:
resultKey
- the key which identifies the alias import results to get- Returns:
- the list of alias import results
- Throws:
CmsRpcException
- if something goes wrong
-
getAliasTable
Gets the initial data for the bulk alias editor.- Returns:
- the initial data for the alias editor
- Throws:
CmsRpcException
- if something goes wrong
-
getCategoryData
Gets the category data for the given entry point.- Parameters:
entryPoint
- the entry point- Returns:
- the category data
- Throws:
CmsRpcException
- if something goes wrong
-
getChildren
CmsClientSitemapEntry getChildren(String entryPointUri, CmsUUID entryId, int levels) throws CmsRpcException Returns the sitemap children for the given path.- Parameters:
entryPointUri
- the URI of the sitemap entry pointentryId
- the entry idlevels
- the count of child levels to read- Returns:
- the sitemap children
- Throws:
CmsRpcException
- if something goes wrong
-
getGalleryData
Map<CmsGalleryType,List<CmsGalleryFolderEntry>> getGalleryData(String entryPointUri) throws CmsRpcException Returns the gallery data to this sub site.- Parameters:
entryPointUri
- the sub site folder- Returns:
- the gallery data to this sub site
- Throws:
CmsRpcException
- if something goes wrong
-
getModelInfos
Gets the model pages for the given structure id of the sitemap root folder.- Parameters:
rootId
- structure id of a folder- Returns:
- the model pages available in the given folder
- Throws:
CmsRpcException
- if something goes wrong
-
getNewElementInfo
Loads the model page data for the "add" menu.- Parameters:
entryPointUri
- the entry point uri- Returns:
- the list of resource info beans for the model pages
- Throws:
CmsRpcException
- if something goes wrong
-
getResourceLink
Fetches the link for a resource selected in the sitemap editor.- Parameters:
baseId
- the structure id of the current sitemap root entrysitePath
- the site path of a resource- Returns:
- the link to the resource
- Throws:
CmsRpcException
- if something goes wrong
-
loadPropertyDataForLocaleCompareView
CmsLocaleComparePropertyData loadPropertyDataForLocaleCompareView(CmsUUID id, CmsUUID rootId) throws CmsRpcException Loads the data needed by the property editor in the locale comparison view.- Parameters:
id
- 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 mode- Returns:
- the property data for locale comparison mode
- Throws:
CmsRpcException
- if something goes wrong
-
mergeSubSitemap
Merges a sub-sitemap into it's parent sitemap.- Parameters:
entryPoint
- the sitemap entry pointsubSitemapId
- the structure id of the sub sitemap folder- Returns:
- the result of the merge operation
- Throws:
CmsRpcException
- if something goes wrong
-
prefetch
Returns the initialization data for the given sitemap.- Parameters:
sitemapUri
- the site relative path- Returns:
- the initialization data
- Throws:
CmsRpcException
- if something goes wrong
-
removeModelPage
Removes a model page from the current sitemap configuration.- Parameters:
baseUri
- the base uri for the current sitemapmodelPageId
- structure id of the model page to remove- Throws:
CmsRpcException
- if something goes wrong
-
savePropertiesForLocaleCompareMode
void savePropertiesForLocaleCompareMode(CmsUUID id, String newUrlName, List<CmsPropertyModification> propertyChanges, boolean editedName) throws CmsRpcException Saves the changed properties in locale comparison mode.- Parameters:
id
- the structure idnewUrlName
- the new URL namepropertyChanges
- the property changeseditedName
- true if the name was edited- Throws:
CmsRpcException
- if something goes wrong
-
saveSitemapAttributes
Saves the data from the sitemap attribute editor dialog to the sitemap configuration.- Parameters:
rootId
- the root IDattributes
- the sitemap attributes- Throws:
CmsRpcException
- if something goes wrong
-
setDefaultModel
Sets the default model page for the given sub-sitemap, returns the updated model info.- Parameters:
rootId
- structure id of the sub-sitemap root foldermodelId
- the id of the model page to set as default- Returns:
- the updated model info
- Throws:
CmsRpcException
- if something goes wrong
-
updateAliasEditorStatus
Updates the alias editor status.This is used to keep two users from editing the alias table for a site root concurrently.
- Parameters:
editing
- true to indicate that the table is still being edited, false to indicate that the table isn't being edited anymore- Throws:
CmsRpcException
- if something goes wrong
-