public class CmsAliasTableController
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected java.util.Set<CmsUUID> |
m_deletedIds
The set of ids of deleted rows.
|
protected CmsAliasView |
m_view
The view.
|
构造器和说明 |
---|
CmsAliasTableController() |
限定符和类型 | 方法和说明 |
---|---|
void |
changeRewriteSelection(java.util.Set<CmsRewriteAliasTableRow> selectedSet)
Method which should be called when the selection of the rewrite table has been changed.
|
void |
changeSelection(java.util.Set<CmsAliasTableRow> selectedSet)
This method is called when the selection of the alias table changes.
|
void |
deleteRewrites(java.util.List<CmsRewriteAliasTableRow> rowsToDelete)
This method is called when the user wants to delete rewrites aliases.
|
void |
deleteRows(java.util.List<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(CmsAliasTableRow row,
CmsAliasMode mode)
This method is called after the mode of an alias has been edited.
|
void |
editAliasPath(CmsAliasTableRow row,
java.lang.String path)
This method is called after the alias path of an alias has been edited.
|
void |
editNewAlias(java.lang.String aliasPath,
java.lang.String resourcePath,
CmsAliasMode mode)
This method is called when the user wants to add a new alias entry.
|
void |
editNewRewrite(java.lang.String rewriteRegex,
java.lang.String rewriteReplacement,
CmsAliasMode mode)
This method is called when the user adds a new rewrite alias.
|
void |
editResourcePath(CmsAliasTableRow row,
java.lang.String path)
This method is called when the user has edited the resource path of an alias.
|
void |
editRewriteAlias(CmsRewriteAliasTableRow object)
This method is called when the user has edited a rewrite alias.
|
protected static I_CmsSitemapServiceAsync |
getService()
Gets the service to use for validating/saving aliases.
|
void |
load(java.lang.Runnable afterLoad)
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 |
updateValidationStatus()
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(CmsAliasTableRow newEntry)
Triggers server-side validation of the alias table and of a new entry which should be added to it.
|
protected void |
validateRewrite()
Triggers server-side validation for the rewrite aliases.
|
protected java.util.Set<CmsUUID> m_deletedIds
protected CmsAliasView m_view
protected static I_CmsSitemapServiceAsync getService()
public void changeRewriteSelection(java.util.Set<CmsRewriteAliasTableRow> selectedSet)
selectedSet
- the set of selected rewrite table entriespublic void changeSelection(java.util.Set<CmsAliasTableRow> selectedSet)
selectedSet
- the set of selected rowspublic void deleteRewrites(java.util.List<CmsRewriteAliasTableRow> rowsToDelete)
rowsToDelete
- the rows the user wants to deletepublic void deleteRows(java.util.List<CmsAliasTableRow> rowsToDelete)
rowsToDelete
- the list of rows which should be deletedpublic void download()
public void editAliasMode(CmsAliasTableRow row, CmsAliasMode mode)
row
- the edited rowmode
- the new alias modepublic void editAliasPath(CmsAliasTableRow row, java.lang.String path)
row
- the edited rowpath
- the new alias pathpublic void editNewAlias(java.lang.String aliasPath, java.lang.String resourcePath, CmsAliasMode mode)
aliasPath
- the alias pathresourcePath
- the resource site pathmode
- the alias modepublic void editNewRewrite(java.lang.String rewriteRegex, java.lang.String rewriteReplacement, CmsAliasMode mode)
rewriteRegex
- the rewrite patternrewriteReplacement
- the rewrite replacement stringmode
- the rewrite modepublic void editResourcePath(CmsAliasTableRow row, java.lang.String path)
row
- the alias the table rowpath
- the new pathpublic void editRewriteAlias(CmsRewriteAliasTableRow object)
object
- the edited rewrite aliaspublic void load(java.lang.Runnable afterLoad)
afterLoad
- the action that should be executed after loadingpublic void save()
public void setView(CmsAliasView view)
view
- the view objectprotected void updateValidationStatus()
protected void validate()
protected void validateNew(CmsAliasTableRow newEntry)
newEntry
- the new entryprotected void validateRewrite()