Interface I_CmsSitemapServiceAsync
public interface I_CmsSitemapServiceAsync
Handles all RPC services related to the sitemap.
- Since:
- 8.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidchangeCategory(String entryPoint, CmsUUID id, String title, String name, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Sets the name and title of the given category.voidcreateCategory(String entryPoint, CmsUUID id, String title, String name, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Creates a new category.voidcreateNewGalleryFolder(String parentFolder, String title, int folderTypeId, com.google.gwt.user.client.rpc.AsyncCallback<CmsGalleryFolderEntry> callback) Creates a new gallery folder.voidcreateNewModelPage(String entryPointUri, String title, String description, CmsUUID copyId, boolean isModelGroup, com.google.gwt.user.client.rpc.AsyncCallback<CmsModelPageEntry> resultCallback) Creates a new model page.voidcreateSubSitemap(CmsUUID entryId, com.google.gwt.user.client.rpc.AsyncCallback<CmsSitemapChange> callback) Creates a sub-sitemap of the given sitemap starting from the given entry.voiddisableModelPage(String baseUri, CmsUUID modelPageId, boolean disabled, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Sets the disabled flag of a model page within the current sitemap configuration.voideditAttributeData(CmsUUID rootId, com.google.gwt.user.client.rpc.AsyncCallback<CmsSitemapAttributeData> callback) Loads the data for the attribute editor dialog and locks the sitemap configuration.voidgetAliasImportResult(String resultKey, com.google.gwt.user.client.rpc.AsyncCallback<List<CmsAliasImportResult>> asyncCallback) Gets the alias import results from the server.voidgetAliasTable(com.google.gwt.user.client.rpc.AsyncCallback<CmsAliasInitialFetchResult> callback) Gets the initial data for the bulk alias editor.voidgetCategoryData(String entryPoint, com.google.gwt.user.client.rpc.AsyncCallback<CmsSitemapCategoryData> resultCallback) Gets the category data for the given entry point.voidgetChildren(String entryPointUri, CmsUUID entryId, int levels, com.google.gwt.user.client.rpc.AsyncCallback<CmsClientSitemapEntry> callback) Returns the sitemap children for the given path.voidgetGalleryData(String entryPointUri, com.google.gwt.user.client.rpc.AsyncCallback<Map<CmsGalleryType, List<CmsGalleryFolderEntry>>> callback) Returns the gallery data to this sub site.voidgetModelInfos(CmsUUID id, com.google.gwt.user.client.rpc.AsyncCallback<CmsModelInfo> callback) Gets the model pages for the given structure id of the sitemap root folder.voidgetNewElementInfo(String entryPointUri, com.google.gwt.user.client.rpc.AsyncCallback<List<CmsNewResourceInfo>> resultCallback) Loads the model page data for the "add" menu.voidgetResourceLink(CmsUUID baseId, String sitePath, com.google.gwt.user.client.rpc.AsyncCallback<String> callback) Fetches the link for a resource selected in the sitemap editor.voidloadPropertyDataForLocaleCompareView(CmsUUID id, CmsUUID rootId, com.google.gwt.user.client.rpc.AsyncCallback<CmsLocaleComparePropertyData> resultCallback) Loads the data needed by the property editor in the locale comparison view.voidmergeSubSitemap(String entryPoint, CmsUUID subSitemapId, com.google.gwt.user.client.rpc.AsyncCallback<CmsSitemapChange> callback) Merges a sub-sitemap into it's parent sitemap.voidprefetch(String sitemapUri, com.google.gwt.user.client.rpc.AsyncCallback<CmsSitemapData> callback) Returns the initialization data for the given sitemap.voidprepareReloadSitemap(CmsUUID rootId, CmsSitemapData.EditorMode mode, com.google.gwt.user.client.rpc.AsyncCallback<String> resultUrl) Prepares sitemap reloading for the given sitemap root.voidremoveModelPage(String baseUri, CmsUUID modelPageId, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Removes a model page from the current sitemap configuration.voidsave(String sitemapUri, CmsSitemapChange change, com.google.gwt.user.client.rpc.AsyncCallback<CmsSitemapChange> callback) Saves the change to the given sitemap.voidsaveAliases(CmsAliasSaveValidationRequest saveRequest, com.google.gwt.user.client.rpc.AsyncCallback<CmsAliasEditValidationReply> callback) Saves the aliases for the bulk alias editor.voidsavePropertiesForLocaleCompareMode(CmsUUID id, String newUrlName, List<CmsPropertyModification> propertyChanges, boolean editedName, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Saves the changed properties in locale comparison mode.voidsaveSitemapAttributes(CmsUUID rootId, Map<String, String> attributes, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Saves the data from the sitemap attribute editor dialog to the sitemap configuration.voidsetDefaultModel(CmsUUID rootId, CmsUUID modelId, com.google.gwt.user.client.rpc.AsyncCallback<CmsModelInfo> callback) Sets the default model page for the given sub-sitemap, returns the updated model info.voidsetEditorMode(CmsSitemapData.EditorMode editorMode, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Sets the editor mode in the current user session.voidupdateAliasEditorStatus(boolean editing, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Updates the alias editor status.voidvalidateAliases(CmsAliasEditValidationRequest validationRequest, com.google.gwt.user.client.rpc.AsyncCallback<CmsAliasEditValidationReply> callback) Validates the aliases for the bulk alias editor.voidvalidateRewriteAliases(CmsRewriteAliasValidationRequest validationRequest, com.google.gwt.user.client.rpc.AsyncCallback<CmsRewriteAliasValidationReply> callback) Validates rewrite aliases.
-
Method Details
-
changeCategory
void changeCategory(String entryPoint, CmsUUID id, String title, String name, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Sets the name and title of the given category.- Parameters:
entryPoint- the current entry pointid- the category idtitle- the new titlename- the new namecallback- the callback to call when done
-
createCategory
void createCategory(String entryPoint, CmsUUID id, String title, String name, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Creates a new category.- Parameters:
entryPoint- the entry pointid- the parent category idtitle- the titlename- the category namecallback- the result callback
-
createNewGalleryFolder
void createNewGalleryFolder(String parentFolder, String title, int folderTypeId, com.google.gwt.user.client.rpc.AsyncCallback<CmsGalleryFolderEntry> callback) Creates a new gallery folder.- Parameters:
parentFolder- the parent folder pathtitle- the title propertyfolderTypeId- the resource type idcallback- the async callback
-
createNewModelPage
void createNewModelPage(String entryPointUri, String title, String description, CmsUUID copyId, boolean isModelGroup, com.google.gwt.user.client.rpc.AsyncCallback<CmsModelPageEntry> resultCallback) 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-trueto create a new model group pageresultCallback- the callback for the result
-
createSubSitemap
void createSubSitemap(CmsUUID entryId, com.google.gwt.user.client.rpc.AsyncCallback<CmsSitemapChange> callback) 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 ofcallback- the async callback
-
disableModelPage
void disableModelPage(String baseUri, CmsUUID modelPageId, boolean disabled, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) 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 flagcallback- the callback
-
editAttributeData
void editAttributeData(CmsUUID rootId, com.google.gwt.user.client.rpc.AsyncCallback<CmsSitemapAttributeData> callback) Loads the data for the attribute editor dialog and locks the sitemap configuration.- Parameters:
rootId- the root ID of the current sitemapcallback- the result callback
-
getAliasImportResult
void getAliasImportResult(String resultKey, com.google.gwt.user.client.rpc.AsyncCallback<List<CmsAliasImportResult>> asyncCallback) Gets the alias import results from the server.- Parameters:
resultKey- the key which identifies the alias import results to getasyncCallback- the asynchronous callback
-
getAliasTable
void getAliasTable(com.google.gwt.user.client.rpc.AsyncCallback<CmsAliasInitialFetchResult> callback) Gets the initial data for the bulk alias editor.- Parameters:
callback- the asynchronous callback
-
getCategoryData
void getCategoryData(String entryPoint, com.google.gwt.user.client.rpc.AsyncCallback<CmsSitemapCategoryData> resultCallback) Gets the category data for the given entry point.- Parameters:
entryPoint- the entry pointresultCallback- the callback for the result
-
getChildren
void getChildren(String entryPointUri, CmsUUID entryId, int levels, com.google.gwt.user.client.rpc.AsyncCallback<CmsClientSitemapEntry> callback) 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 readcallback- the async callback
-
getGalleryData
void getGalleryData(String entryPointUri, com.google.gwt.user.client.rpc.AsyncCallback<Map<CmsGalleryType, List<CmsGalleryFolderEntry>>> callback) Returns the gallery data to this sub site.- Parameters:
entryPointUri- the sub site foldercallback- the async callback
-
getModelInfos
Gets the model pages for the given structure id of the sitemap root folder.- Parameters:
id- structure id of a foldercallback- the callback for the result
-
getNewElementInfo
void getNewElementInfo(String entryPointUri, com.google.gwt.user.client.rpc.AsyncCallback<List<CmsNewResourceInfo>> resultCallback) Loads the model page data for the "add" menu.- Parameters:
entryPointUri- the entry point uriresultCallback- the callback for the result
-
getResourceLink
void getResourceLink(CmsUUID baseId, String sitePath, com.google.gwt.user.client.rpc.AsyncCallback<String> callback) 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 resourcecallback- the callback to call with the result
-
loadPropertyDataForLocaleCompareView
void loadPropertyDataForLocaleCompareView(CmsUUID id, CmsUUID rootId, com.google.gwt.user.client.rpc.AsyncCallback<CmsLocaleComparePropertyData> resultCallback) 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 moderesultCallback- the callback to call with the result
-
mergeSubSitemap
void mergeSubSitemap(String entryPoint, CmsUUID subSitemapId, com.google.gwt.user.client.rpc.AsyncCallback<CmsSitemapChange> callback) Merges a sub-sitemap into it's parent sitemap.- Parameters:
entryPoint- the sitemap entry pointsubSitemapId- the structure id of the sub sitemap foldercallback- the async callback
-
prefetch
void prefetch(String sitemapUri, com.google.gwt.user.client.rpc.AsyncCallback<CmsSitemapData> callback) Returns the initialization data for the given sitemap.- Parameters:
sitemapUri- the site relative pathcallback- the async callback
-
removeModelPage
void removeModelPage(String baseUri, CmsUUID modelPageId, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) 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 removecallback- the callback
-
savePropertiesForLocaleCompareMode
void savePropertiesForLocaleCompareMode(CmsUUID id, String newUrlName, List<CmsPropertyModification> propertyChanges, boolean editedName, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) 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 editedcallback- the callback to call when done
-
saveSitemapAttributes
void saveSitemapAttributes(CmsUUID rootId, Map<String, String> attributes, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Saves the data from the sitemap attribute editor dialog to the sitemap configuration.- Parameters:
rootId- the root IDattributes- the sitemap attributescallback- the callback for the result
-
setDefaultModel
void setDefaultModel(CmsUUID rootId, CmsUUID modelId, com.google.gwt.user.client.rpc.AsyncCallback<CmsModelInfo> callback) 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 defaultcallback- the callback for the result
-
updateAliasEditorStatus
void updateAliasEditorStatus(boolean editing, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) 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 anymorecallback- the asynchronous callback
-