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
FieldsModifier and TypeFieldDescriptionprotected Set<org.opencms.util.CmsUUID> The set of ids of deleted rows.protected CmsAliasViewThe view. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeRewriteSelection(Set<org.opencms.gwt.shared.alias.CmsRewriteAliasTableRow> selectedSet) Method which should be called when the selection of the rewrite table has been changed.voidchangeSelection(Set<org.opencms.gwt.shared.alias.CmsAliasTableRow> selectedSet) This method is called when the selection of the alias table changes.voiddeleteRewrites(List<org.opencms.gwt.shared.alias.CmsRewriteAliasTableRow> rowsToDelete) This method is called when the user wants to delete rewrites aliases.voiddeleteRows(List<org.opencms.gwt.shared.alias.CmsAliasTableRow> rowsToDelete) This method is called when the user deletes a set of rows.voiddownload()Triggers the download of the current aliases.voideditAliasMode(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.voideditAliasPath(org.opencms.gwt.shared.alias.CmsAliasTableRow row, String path) This method is called after the alias path of an alias has been edited.voideditNewAlias(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.voideditNewRewrite(String rewriteRegex, String rewriteReplacement, org.opencms.gwt.shared.alias.CmsAliasMode mode) This method is called when the user adds a new rewrite alias.voideditResourcePath(org.opencms.gwt.shared.alias.CmsAliasTableRow row, String path) This method is called when the user has edited the resource path of an alias.voideditRewriteAlias(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_CmsSitemapServiceAsyncGets the service to use for validating/saving aliases.voidLoads the initial data from the server.voidsave()This method is called when the user wants to save the aliases.voidsetView(CmsAliasView view) Sets the alias editor view.protected voidEnables or disables the save button of the view depending on whether there are validation errors.protected voidvalidate()Triggers server-side validatiom of the alias table.protected voidvalidateNew(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 voidTriggers 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.
-