Class CmsEditEntryHandler
java.lang.Object
org.opencms.ade.sitemap.client.edit.A_CmsSitemapEntryEditorHandler
org.opencms.ade.sitemap.client.edit.CmsEditEntryHandler
- All Implemented Interfaces:
I_CmsPropertyEditorHandler
The mode handler for the 'edit entry' mode of the sitemap entry editor.
- Since:
- 8.0.0
-
Field Summary
Fields inherited from class org.opencms.ade.sitemap.client.edit.A_CmsSitemapEntryEditorHandler
m_controller, m_entry -
Constructor Summary
ConstructorsConstructorDescriptionCmsEditEntryHandler(CmsSitemapController controller, org.opencms.ade.sitemap.shared.CmsClientSitemapEntry entry, boolean isSimpleMode) Creates a new instance of this class. -
Method Summary
Modifier and TypeMethodDescriptionGets a list of the names of available properties.org.opencms.util.CmsUUIDReturns the default file id, if available.Gets the default file path, if available.Returns the default file properties, if available.Returns the text which should be used for the title of the sitemap entry editor dialog.protected org.opencms.ade.sitemap.shared.CmsClientSitemapEntrygetEntry()Gets the edited sitemap entry.Returns the URL names which the new URL name of the entry must not be equal to.org.opencms.util.CmsUUIDgetId()Returns the structure id of the resource being edited.org.opencms.gwt.shared.property.CmsClientPropertygetInheritedProperty(String name) Gets the property object which would be inherited by a sitemap entry.Returns the class name which should be added when displaying resource info boxes.Returns the properties of the resource being edited.org.opencms.gwt.shared.CmsListInfoBeanReturns the page info bean.getPath()Gets the path of the resource being edited.protected StringReturns the path for the given URL name.Returns a map of beans representing the selectable templates.voidhandleSubmit(String newUrlName, String vfsPath, List<org.opencms.gwt.shared.property.CmsPropertyModification> propertyChanges, boolean editedName, CmsReloadMode reloadStatus) Handles the submit action for the sitemap entry editor.booleanReturns if the handled entry has an editable name.booleanisFolder()Checks if the resource being edited is a folder.booleanisHiddenProperty(String key) Checks whether the property with the given name should be hidden.booleanShould return true if the sitemap editor is running in simple mode.voidsetDefaultFilePath(String defaultFilePath) Sets the default file pathvoidsetPageInfo(org.opencms.gwt.shared.CmsListInfoBean pageInfo) Sets the page info bean.booleanReturns true if the property editor should use only ADE templates.Methods inherited from class org.opencms.ade.sitemap.client.edit.A_CmsSitemapEntryEditorHandler
getName
-
Constructor Details
-
Method Details
-
getAllPropertyNames
Description copied from interface:I_CmsPropertyEditorHandlerGets a list of the names of available properties.- Returns:
- a list of property names
- See Also:
-
getDefaultFileId
Description copied from interface:I_CmsPropertyEditorHandlerReturns the default file id, if available.- Returns:
- the default file id
- See Also:
-
getDefaultFilePath
Description copied from interface:I_CmsPropertyEditorHandlerGets the default file path, if available.- Returns:
- the default file path
- See Also:
-
getDefaultFileProperties
Description copied from interface:I_CmsPropertyEditorHandlerReturns the default file properties, if available.- Returns:
- the default file properties
- See Also:
-
getDialogTitle
Description copied from interface:I_CmsPropertyEditorHandlerReturns the text which should be used for the title of the sitemap entry editor dialog.- Returns:
- the dialog title for the sitemap entry editor
- See Also:
-
getForbiddenUrlNames
Description copied from interface:I_CmsPropertyEditorHandlerReturns the URL names which the new URL name of the entry must not be equal to.- Returns:
- a list of forbidden URL names
- See Also:
-
getId
Description copied from interface:I_CmsPropertyEditorHandlerReturns the structure id of the resource being edited.- Returns:
- the structure id of the resource being edited
- See Also:
-
getInheritedProperty
Gets the property object which would be inherited by a sitemap entry.- Parameters:
name- the name of the property- Returns:
- the property object which would be inherited
-
getModeClass
Description copied from interface:I_CmsPropertyEditorHandlerReturns the class name which should be added when displaying resource info boxes.- Returns:
- the class name to use for displaying resource info boxes
- See Also:
-
getOwnProperties
Description copied from interface:I_CmsPropertyEditorHandlerReturns the properties of the resource being edited.- Returns:
- the properties of the resource being edited
- See Also:
-
getPageInfo
Description copied from interface:I_CmsPropertyEditorHandlerReturns the page info bean.- Returns:
- the page info bean
- See Also:
-
getPath
Description copied from interface:I_CmsPropertyEditorHandlerGets the path of the resource being edited.- Returns:
- the path of the resource being edited
- See Also:
-
getPossibleTemplates
Description copied from interface:I_CmsPropertyEditorHandlerReturns a map of beans representing the selectable templates.- Returns:
- a map of selectable templates
- See Also:
-
handleSubmit
public void handleSubmit(String newUrlName, String vfsPath, List<org.opencms.gwt.shared.property.CmsPropertyModification> propertyChanges, boolean editedName, CmsReloadMode reloadStatus) Description copied from interface:I_CmsPropertyEditorHandlerHandles the submit action for the sitemap entry editor.- Parameters:
newUrlName- the new url namevfsPath- the new vfs pathpropertyChanges- the property changeseditedName- if true, the URL name has been editedreloadStatus- the information about which entry should reloaded- See Also:
-
hasEditableName
Description copied from interface:I_CmsPropertyEditorHandlerReturns if the handled entry has an editable name.- Returns:
trueif the handled entry has an editable name- See Also:
-
isFolder
Description copied from interface:I_CmsPropertyEditorHandlerChecks if the resource being edited is a folder.- Returns:
- true if the resource being edited is a folder
- See Also:
-
isHiddenProperty
Description copied from interface:I_CmsPropertyEditorHandlerChecks whether the property with the given name should be hidden.- Parameters:
key- the property name- Returns:
- true if the property should be hidden
- See Also:
-
isSimpleMode
Description copied from interface:I_CmsPropertyEditorHandlerShould return true if the sitemap editor is running in simple mode.- Returns:
- true if the sitemap editor is running in simple mode
- See Also:
-
setDefaultFilePath
Sets the default file path- Parameters:
defaultFilePath- the new default file path
-
useAdeTemplates
Description copied from interface:I_CmsPropertyEditorHandlerReturns true if the property editor should use only ADE templates.- Returns:
- true if the property editor should use only ADE templates
- See Also:
-
getEntry
Gets the edited sitemap entry.- Returns:
- the edited sitemap entry
-
getPath
Returns the path for the given URL name.- Parameters:
urlName- the URL name to create the path for- Returns:
- the new path for the given URL name
-