Class CmsUploadPropertyEditorHandler
java.lang.Object
org.opencms.ade.postupload.client.ui.CmsUploadPropertyEditorHandler
- All Implemented Interfaces:
I_CmsPropertyEditorHandler
The property editor handler class for editing properties of uploaded files.
-
Constructor Summary
ConstructorsConstructorDescriptionCmsUploadPropertyEditorHandler(CmsUploadPropertyDialog dialog, org.opencms.ade.postupload.shared.CmsPostUploadDialogPanelBean data) Creates a new instance. -
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.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) Returns an inherited property value.Returns the class name which should be added when displaying resource info boxes.getName()Returns the URL name with which the sitemap entry editor should be initialized.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.Returns a map of beans representing the selectable templates.Gets the warning message.voidhandleSubmit(String newUrlName, String vfsPath, List<org.opencms.gwt.shared.property.CmsPropertyModification> propertyChanges, boolean editedName, CmsReloadMode reloadMode) 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.voidsetDialog(CmsUploadPropertyDialog dialog) Sets the dialog instance.booleanReturns true if the property editor should use only ADE templates.
-
Constructor Details
-
Method Details
-
getAllPropertyNames
Description copied from interface:I_CmsPropertyEditorHandlerGets a list of the names of available properties.- Specified by:
getAllPropertyNamesin interfaceI_CmsPropertyEditorHandler- Returns:
- a list of property names
- See Also:
-
getDefaultFileId
Description copied from interface:I_CmsPropertyEditorHandlerReturns the default file id, if available.- Specified by:
getDefaultFileIdin interfaceI_CmsPropertyEditorHandler- Returns:
- the default file id
- See Also:
-
getDefaultFilePath
Description copied from interface:I_CmsPropertyEditorHandlerGets the default file path, if available.- Specified by:
getDefaultFilePathin interfaceI_CmsPropertyEditorHandler- Returns:
- the default file path
- See Also:
-
getDefaultFileProperties
Description copied from interface:I_CmsPropertyEditorHandlerReturns the default file properties, if available.- Specified by:
getDefaultFilePropertiesin interfaceI_CmsPropertyEditorHandler- 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.- Specified by:
getDialogTitlein interfaceI_CmsPropertyEditorHandler- 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.- Specified by:
getForbiddenUrlNamesin interfaceI_CmsPropertyEditorHandler- Returns:
- a list of forbidden URL names
- See Also:
-
getId
Description copied from interface:I_CmsPropertyEditorHandlerReturns the structure id of the resource being edited.- Specified by:
getIdin interfaceI_CmsPropertyEditorHandler- Returns:
- the structure id of the resource being edited
- See Also:
-
getInheritedProperty
Description copied from interface:I_CmsPropertyEditorHandlerReturns an inherited property value.This is the value that the resource being edited would inherit if it didn't define its own value for that property.
- Specified by:
getInheritedPropertyin interfaceI_CmsPropertyEditorHandler- Parameters:
name- the name of the property- Returns:
- the inherited property
- See Also:
-
getModeClass
Description copied from interface:I_CmsPropertyEditorHandlerReturns the class name which should be added when displaying resource info boxes.- Specified by:
getModeClassin interfaceI_CmsPropertyEditorHandler- Returns:
- the class name to use for displaying resource info boxes
- See Also:
-
getName
Description copied from interface:I_CmsPropertyEditorHandlerReturns the URL name with which the sitemap entry editor should be initialized.- Specified by:
getNamein interfaceI_CmsPropertyEditorHandler- Returns:
- the initial URL name
- See Also:
-
getOwnProperties
Description copied from interface:I_CmsPropertyEditorHandlerReturns the properties of the resource being edited.- Specified by:
getOwnPropertiesin interfaceI_CmsPropertyEditorHandler- Returns:
- the properties of the resource being edited
- See Also:
-
getPageInfo
Description copied from interface:I_CmsPropertyEditorHandlerReturns the page info bean.- Specified by:
getPageInfoin interfaceI_CmsPropertyEditorHandler- Returns:
- the page info bean
- See Also:
-
getPath
Description copied from interface:I_CmsPropertyEditorHandlerGets the path of the resource being edited.- Specified by:
getPathin interfaceI_CmsPropertyEditorHandler- 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.- Specified by:
getPossibleTemplatesin interfaceI_CmsPropertyEditorHandler- Returns:
- a map of selectable templates
- See Also:
-
getWarning
Gets the warning message.- Returns:
- the warning message
-
handleSubmit
public void handleSubmit(String newUrlName, String vfsPath, List<org.opencms.gwt.shared.property.CmsPropertyModification> propertyChanges, boolean editedName, CmsReloadMode reloadMode) Description copied from interface:I_CmsPropertyEditorHandlerHandles the submit action for the sitemap entry editor.- Specified by:
handleSubmitin interfaceI_CmsPropertyEditorHandler- Parameters:
newUrlName- the new url namevfsPath- the new vfs pathpropertyChanges- the property changeseditedName- if true, the URL name has been editedreloadMode- the information about which entry should reloaded- See Also:
-
hasEditableName
Description copied from interface:I_CmsPropertyEditorHandlerReturns if the handled entry has an editable name.- Specified by:
hasEditableNamein interfaceI_CmsPropertyEditorHandler- 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.- Specified by:
isFolderin interfaceI_CmsPropertyEditorHandler- 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.- Specified by:
isHiddenPropertyin interfaceI_CmsPropertyEditorHandler- 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.- Specified by:
isSimpleModein interfaceI_CmsPropertyEditorHandler- Returns:
- true if the sitemap editor is running in simple mode
- See Also:
-
setDialog
Sets the dialog instance.- Parameters:
dialog- the dialog used for editing the properties
-
useAdeTemplates
Description copied from interface:I_CmsPropertyEditorHandlerReturns true if the property editor should use only ADE templates.- Specified by:
useAdeTemplatesin interfaceI_CmsPropertyEditorHandler- Returns:
- true if the property editor should use only ADE templates
- See Also:
-