Class CmsAliasTableController
java.lang.Object
org.opencms.ade.sitemap.client.alias.CmsAliasTableController
This is the controller class for the alias editor which is responsible for reacting to edit operations on the client
by triggering the corresponding validation or save actions on the server.
-
Field Summary
Modifier and TypeFieldDescriptionprotected Set<org.opencms.util.CmsUUID>
The set of ids of deleted rows.protected CmsAliasView
The view. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changeRewriteSelection
(Set<org.opencms.gwt.shared.alias.CmsRewriteAliasTableRow> selectedSet) Method which should be called when the selection of the rewrite table has been changed.void
changeSelection
(Set<org.opencms.gwt.shared.alias.CmsAliasTableRow> selectedSet) This method is called when the selection of the alias table changes.void
deleteRewrites
(List<org.opencms.gwt.shared.alias.CmsRewriteAliasTableRow> rowsToDelete) This method is called when the user wants to delete rewrites aliases.void
deleteRows
(List<org.opencms.gwt.shared.alias.CmsAliasTableRow> rowsToDelete) This method is called when the user deletes a set of rows.void
download()
Triggers the download of the current aliases.void
editAliasMode
(org.opencms.gwt.shared.alias.CmsAliasTableRow row, org.opencms.gwt.shared.alias.CmsAliasMode mode) This method is called after the mode of an alias has been edited.void
editAliasPath
(org.opencms.gwt.shared.alias.CmsAliasTableRow row, String path) This method is called after the alias path of an alias has been edited.void
editNewAlias
(String aliasPath, String resourcePath, org.opencms.gwt.shared.alias.CmsAliasMode mode) This method is called when the user wants to add a new alias entry.void
editNewRewrite
(String rewriteRegex, String rewriteReplacement, org.opencms.gwt.shared.alias.CmsAliasMode mode) This method is called when the user adds a new rewrite alias.void
editResourcePath
(org.opencms.gwt.shared.alias.CmsAliasTableRow row, String path) This method is called when the user has edited the resource path of an alias.void
editRewriteAlias
(org.opencms.gwt.shared.alias.CmsRewriteAliasTableRow object) This method is called when the user has edited a rewrite alias.protected static org.opencms.ade.sitemap.shared.rpc.I_CmsSitemapServiceAsync
Gets the service to use for validating/saving aliases.void
Loads the initial data from the server.void
save()
This method is called when the user wants to save the aliases.void
setView
(CmsAliasView view) Sets the alias editor view.protected void
Enables or disables the save button of the view depending on whether there are validation errors.protected void
validate()
Triggers server-side validatiom of the alias table.protected void
validateNew
(org.opencms.gwt.shared.alias.CmsAliasTableRow newEntry) Triggers server-side validation of the alias table and of a new entry which should be added to it.protected void
Triggers server-side validation for the rewrite aliases.
-
Field Details
-
m_deletedIds
The set of ids of deleted rows. -
m_view
The view.
-
-
Constructor Details
-
CmsAliasTableController
public CmsAliasTableController()
-
-
Method Details
-
getService
Gets the service to use for validating/saving aliases.- Returns:
- the service used for validating/saving aliases
-
changeRewriteSelection
public void changeRewriteSelection(Set<org.opencms.gwt.shared.alias.CmsRewriteAliasTableRow> selectedSet) Method which should be called when the selection of the rewrite table has been changed.- Parameters:
selectedSet
- the set of selected rewrite table entries
-
changeSelection
This method is called when the selection of the alias table changes.- Parameters:
selectedSet
- the set of selected rows
-
deleteRewrites
This method is called when the user wants to delete rewrites aliases.- Parameters:
rowsToDelete
- the rows the user wants to delete
-
deleteRows
This method is called when the user deletes a set of rows.- Parameters:
rowsToDelete
- the list of rows which should be deleted
-
download
Triggers the download of the current aliases. -
load
Loads the initial data from the server.- Parameters:
afterLoad
- the action that should be executed after loading
-
save
This method is called when the user wants to save the aliases. -
setView
Sets the alias editor view.- Parameters:
view
- the view object
-
updateValidationStatus
Enables or disables the save button of the view depending on whether there are validation errors. -
validate
Triggers server-side validatiom of the alias table. -
validateRewrite
Triggers server-side validation for the rewrite aliases.
-