|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.gwt.CmsAliasHelper
public class CmsAliasHelper
This class contains the real implementations of service methods related to aliases.
| Constructor Summary | |
|---|---|
CmsAliasHelper()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
checkValidAliasPath(java.lang.String path,
java.util.Locale locale)
Checks whether a given string is a valid alias path. |
protected CmsAliasBean |
convertAliasToBean(CmsAlias alias)
Converts a server-side alias object to an alias bean. |
java.lang.String |
exportAliasesAsCsv(CmsObject cms)
Returns the comma separated alias data. |
protected java.util.List<CmsAliasBean> |
getAliasesForPage(CmsUUID uuid)
Implementation of the getAliasesForPage method. |
void |
saveAliases(CmsUUID structureId,
java.util.List<CmsAliasBean> aliasBeans)
Saves aliases. |
void |
setCms(CmsObject cms)
Sets the CMS object. |
protected java.util.Map<java.lang.String,java.lang.String> |
validateAliases(CmsUUID uuid,
java.util.Map<java.lang.String,java.lang.String> aliasPaths)
The internal method used for validating aliases. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsAliasHelper()
| Method Detail |
|---|
public java.lang.String exportAliasesAsCsv(CmsObject cms)
throws CmsException
cms - the OpenCms context
CmsException - if something goes wrong reading the alias data
public void saveAliases(CmsUUID structureId,
java.util.List<CmsAliasBean> aliasBeans)
throws CmsException
structureId - the structure idaliasBeans - the alias beans
CmsException - if something goes wrongpublic void setCms(CmsObject cms)
cms - the CMS object
protected java.lang.String checkValidAliasPath(java.lang.String path,
java.util.Locale locale)
path - the path to checklocale - the locale to use for validation messages
protected CmsAliasBean convertAliasToBean(CmsAlias alias)
alias - the server-side alias object
protected java.util.List<CmsAliasBean> getAliasesForPage(CmsUUID uuid)
throws CmsException
uuid - the structure id of the page
CmsException - if something goes wrong
protected java.util.Map<java.lang.String,java.lang.String> validateAliases(CmsUUID uuid,
java.util.Map<java.lang.String,java.lang.String> aliasPaths)
throws CmsException
uuid - the structure id of the resource whose aliases are being validatedaliasPaths - a map from (arbitrary) ids to alias paths
CmsException - if something goes wrong
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||