public class ExtensionImpl extends AbstractModelObject implements Extension
| Modifier and Type | Class and Description |
|---|---|
class |
ExtensionImpl.ModuleObjectAndNode
A basic
Class that allows the ExtensionModule and Node representations of the same
module to be returned together from a method call. |
| Modifier and Type | Field and Description |
|---|---|
static String |
MODULE |
static String |
MODULE_ID_XPATH_QUERY_CLOSE |
static String |
MODULE_ID_XPATH_QUERY_OPEN |
customProperties, description, descriptionId, id, info, modelProperties, modificationTime, resourceContainer, title, titleIdPROP_EXTENSION_TYPE, PROP_MODULES, TYPE_IDPROP_DESCRIPTION, PROP_DESCRIPTION_ID, PROP_ID, PROP_TITLE, PROP_TITLE_ID| Constructor and Description |
|---|
ExtensionImpl(String id,
ModelPersisterInfo key,
org.dom4j.Document document)
Extends the default constructor by extracting the child elements of the <
modules>
element and adds the value of any element with the name <module> to the modules
java.util.List instance variable. |
| Modifier and Type | Method and Description |
|---|---|
ExtensionModule |
addExtensionModule(String xmlFragment)
Adds a new
ExtensionModule based on the supplied XML fragment string. |
ExtensionModule |
deleteExtensionModule(String moduleId)
Deleting an
ExtensionModule is a two stage process. |
List<ExtensionModule> |
getExtensionModules() |
String |
getExtensionType() |
String |
getTypeId()
Returns the type id of the model object.
|
void |
setExtensionType(String extensionType) |
ExtensionModule |
updateExtensionModule(String xmlFragment)
Updates an existing
ExtensionModule based on the supplied XML fragment string. |
addResource, addResource, getBooleanProperty, getCustomProperties, getCustomProperty, getDescription, getDescriptionId, getDocument, getId, getKey, getModelProperties, getModelProperty, getModificationTime, getPersisterId, getProperties, getProperty, getResource, getResourceContainer, getResources, getResourcesMap, getStoragePath, getTitle, getTitleId, isCustomProperty, isModelProperty, isSaved, removeCustomProperty, removeModelProperty, removeProperty, removeResource, setCustomProperty, setDescription, setDescriptionId, setId, setModelProperty, setModificationTime, setProperty, setTitle, setTitleId, toString, touch, toXML, updateResource, updateXMLclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBooleanProperty, getCustomProperties, getCustomProperty, getDescription, getDescriptionId, getDocument, getId, getKey, getModelProperties, getModelProperty, getModificationTime, getPersisterId, getProperties, getProperty, getStoragePath, getTitle, getTitleId, isSaved, removeCustomProperty, removeModelProperty, removeProperty, setCustomProperty, setDescription, setDescriptionId, setModelProperty, setProperty, setTitle, setTitleId, touch, toXMLpublic static final String MODULE
public static final String MODULE_ID_XPATH_QUERY_OPEN
public static final String MODULE_ID_XPATH_QUERY_CLOSE
public ExtensionImpl(String id, ModelPersisterInfo key, org.dom4j.Document document)
Extends the default constructor by extracting the child elements of the <modules>
element and adds the value of any element with the name <module> to the modules
java.util.List instance variable.
The configuration for the extension point arguments should be similar to:
<modules> <module>mod1</module> <module>mod2</module> <module>mod3</module> </modules>
id - Stringkey - ModelPersisterInfodocument - Documentpublic String getTypeId()
ModelObjectgetTypeId in interface ModelObjectgetTypeId in class AbstractModelObjectpublic List<ExtensionModule> getExtensionModules()
getExtensionModules in interface Extensionpublic String getExtensionType()
getExtensionType in interface Extensionpublic void setExtensionType(String extensionType)
setExtensionType in interface Extensionpublic ExtensionModule addExtensionModule(String xmlFragment) throws org.dom4j.DocumentException
Adds a new ExtensionModule based on the supplied XML fragment string. The ExtensionModule will
only be created if it is defined with an "id" attribute that is not already present in the Extension.
addExtensionModule in interface Extensionorg.dom4j.DocumentExceptionpublic ExtensionModule updateExtensionModule(String xmlFragment) throws org.dom4j.DocumentException
Updates an existing ExtensionModule based on the supplied XML fragment string. The ExtensionModule will
only be updated if it is defined with an "id" attribute that is already present in the Extension.
updateExtensionModule in interface Extensionorg.dom4j.DocumentExceptionpublic ExtensionModule deleteExtensionModule(String moduleId)
Deleting an ExtensionModule is a two stage process. First it is necessary to locate the
ExtensionModule in the List and then remove it if it is present. Secondly it is necessary
to update the Document maintained by the ExtensionImpl.
deleteExtensionModule in interface ExtensionmoduleId - StringCopyright © 2005–2016 Alfresco Software. All rights reserved.