Package org.opencms.gwt.shared.alias
Class CmsAliasTableRow
java.lang.Object
org.opencms.gwt.shared.alias.CmsAliasTableRow
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class CmsAliasTableRow
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable
A bean representing a row of the alias table.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears validation errors.copy()Copies this object.voideditAliasPath(String newPath) Changes the alias path.voideditResourcePath(String newPath) Changes the resource path.booleanGets the alias path error message.Gets the resource path error message.getKey()Gets the internal key for the row.getMode()Gets the alias mode.Gets the original structure id.Gets the resource path error message.Gets the resource path.Gets the structure id.booleanChecks whether any validation errors have been set.inthashCode()booleanChecks whether this row is changed.booleanisEdited()Checks whether this row is edited.voidsetAliasError(String aliasError) Sets the alias error message.voidsetAliasPath(String aliasPath) Sets the alias path.voidsetChanged(boolean isChanged) Sets the 'changed' flag.voidsetEdited(boolean isEdited) Sets the 'edited' flag.voidSets the internal key.voidsetMode(CmsAliasMode mode) Sets the alias mode.voidsetOriginalStructureId(CmsUUID originalStructureId) Sets the original structure id.voidsetPathError(String pathError) Sets the resource path error message.voidsetResourcePath(String resourcePath) Sets the resource path.voidsetStructureId(CmsUUID structureId) Sets the structure id.voidupdate(CmsAliasTableRow updateRow) Updates this bean with data from another instance.
-
Constructor Details
-
CmsAliasTableRow
public CmsAliasTableRow()Default constructor.
-
-
Method Details
-
clearErrors
Clears validation errors. -
copy
Copies this object.- Returns:
- a copy of the alias row
-
editAliasPath
Changes the alias path.- Parameters:
newPath- the new alias path
-
editResourcePath
Changes the resource path.- Parameters:
newPath- the new resource path
-
equals
-
getAliasError
Gets the alias path error message.- Returns:
- the alias path error message
-
getAliasPath
Gets the resource path error message.- Returns:
- the resource path error message
-
getKey
Gets the internal key for the row.This key is artificially generated, it has no significance for the alias itself but is only used during editing to keep track of rows.
- Returns:
- the internal key
-
getMode
Gets the alias mode.- Returns:
- the alias mode
-
getOriginalStructureId
Gets the original structure id.- Returns:
- the original structure id
-
getPathError
Gets the resource path error message.- Returns:
- the resource path error message
-
getResourcePath
Gets the resource path.- Returns:
- the resource path
-
getStructureId
Gets the structure id.- Returns:
- the structure id
-
hasErrors
Checks whether any validation errors have been set.- Returns:
- true if any validation errors have been set
-
hashCode
-
isChanged
Checks whether this row is changed.- Returns:
- true if this row is changed
-
isEdited
Checks whether this row is edited.- Returns:
- true if this row is edited
-
setAliasError
Sets the alias error message.- Parameters:
aliasError- the alias error message
-
setAliasPath
Sets the alias path.- Parameters:
aliasPath- the new alias path
-
setChanged
Sets the 'changed' flag.- Parameters:
isChanged- the new value of the 'changed' flag
-
setEdited
Sets the 'edited' flag.- Parameters:
isEdited- the new value of the 'edited' flag
-
setKey
Sets the internal key.- Parameters:
key- the internal key
-
setOriginalStructureId
Sets the original structure id.- Parameters:
originalStructureId- the original structure id value
-
setPathError
Sets the resource path error message.- Parameters:
pathError- the resource path error message
-
setResourcePath
Sets the resource path.- Parameters:
resourcePath- the resource path
-
setStructureId
Sets the structure id.- Parameters:
structureId- the structure id
-