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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears validation errors.copy()
Copies this object.void
editAliasPath
(String newPath) Changes the alias path.void
editResourcePath
(String newPath) Changes the resource path.boolean
Gets 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.boolean
Checks whether any validation errors have been set.int
hashCode()
boolean
Checks whether this row is changed.boolean
isEdited()
Checks whether this row is edited.void
setAliasError
(String aliasError) Sets the alias error message.void
setAliasPath
(String aliasPath) Sets the alias path.void
setChanged
(boolean isChanged) Sets the 'changed' flag.void
setEdited
(boolean isEdited) Sets the 'edited' flag.void
Sets the internal key.void
setMode
(CmsAliasMode mode) Sets the alias mode.void
setOriginalStructureId
(CmsUUID originalStructureId) Sets the original structure id.void
setPathError
(String pathError) Sets the resource path error message.void
setResourcePath
(String resourcePath) Sets the resource path.void
setStructureId
(CmsUUID structureId) Sets the structure id.void
update
(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
-