public class DefaultResourceImportHandler extends Object implements ResourceImportHandler
| Constructor and Description |
|---|
DefaultResourceImportHandler(BuiltInResources resType) |
DefaultResourceImportHandler(String resType)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
CollectionArrayList |
getCollections(String name,
Integer version,
Outcome outcome)
Returns any collections that this Resource Item stored in the outcome should contain.
|
CollectionArrayList |
getCollections(String name,
String ns,
String location,
Integer version)
Returns any collections that this Resource Item should contain.
|
String |
getName()
The name of the imported resource managed by the handler
|
DomainPath |
getPath(String name,
String ns)
Returns the DomainPath for a specific resource
|
PropertyDescriptionList |
getPropDesc()
Should return all of the Properties the resource Item will have on creation.
|
Set<Outcome> |
getResourceOutcomes(String name,
String ns,
String location,
Integer version)
Generates the outcomes that the resource should contain.
|
DomainPath |
getTypeRoot()
The directory context to search for existing resources.
|
String |
getWorkflowName()
Gives the CompActDef name to instantiate to provide the workflow for this type of resource.
|
public DefaultResourceImportHandler(BuiltInResources resType) throws Exception
Exception@Deprecated public DefaultResourceImportHandler(String resType) throws Exception
Exceptionpublic CollectionArrayList getCollections(String name, String ns, String location, Integer version) throws Exception
ResourceImportHandlergetCollections in interface ResourceImportHandlername - the name of the Resource Itemns - the namaspace of the module declaring the Resource Itemlocation - the location of the XML file on the boot directoryversion - the version of the Resource ItemException - something went wrongpublic CollectionArrayList getCollections(String name, Integer version, Outcome outcome) throws Exception
ResourceImportHandlergetCollections in interface ResourceImportHandlername - the name of the Resource Itemversion - the version of the Resource Itemoutcome - Outcome containing the XML representing the Resource ItemException - something went wrongpublic DomainPath getTypeRoot()
ResourceImportHandlergetTypeRoot in interface ResourceImportHandlerpublic String getName()
ResourceImportHandlergetName in interface ResourceImportHandlerpublic DomainPath getPath(String name, String ns) throws Exception
ResourceImportHandlergetPath in interface ResourceImportHandlername - - resource namens - - module namespaceExceptionpublic Set<Outcome> getResourceOutcomes(String name, String ns, String location, Integer version) throws Exception
ResourceImportHandlergetResourceOutcomes in interface ResourceImportHandlername - the name of the resourcens - the namespace defined in the modulelocation - the location of the resource fileversion - the specified versionException - - if the supplied resources are not validpublic PropertyDescriptionList getPropDesc() throws Exception
ResourceImportHandlergetPropDesc in interface ResourceImportHandlerExceptionpublic String getWorkflowName() throws Exception
ResourceImportHandlergetWorkflowName in interface ResourceImportHandlerExceptionCopyright © 1997–2019 CRISTAL-iSE. All rights reserved.