public interface ResourceImportHandler
| Modifier and Type | Interface and Description |
|---|---|
static class |
ResourceImportHandler.Status |
| Modifier and Type | Method and Description |
|---|---|
DomainPath |
createResource(String ns,
String itemName,
int version,
Outcome outcome,
boolean reset,
TransactionKey transactionKey)
Create resource Item from its Module definition.
|
CollectionArrayList |
getCollections(String name,
Integer version,
Outcome outcome,
TransactionKey transactionKey)
Returns any collections that this Resource Item stored in the outcome should contain.
|
CollectionArrayList |
getCollections(String name,
String ns,
String location,
Integer version,
TransactionKey transactionKey)
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.
|
String |
getResourceChangeDetails()
Reads the XML string that was created during the createResource() and importResource() methods
|
Outcome |
getResourceOutcome(String name,
String ns,
String location,
Integer version)
Generate the outcome 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.
|
DomainPath |
importResource(String ns,
String itemName,
int version,
ItemPath itemPath,
Outcome outcome,
boolean reset,
TransactionKey transactionKey)
Verify a resource Item against a Module version, but supplies the resource outcomes directly
instead of through a location lookup.
|
DomainPath |
importResource(String ns,
String itemName,
int version,
ItemPath itemPath,
String dataLocation,
boolean reset,
TransactionKey transactionKey)
Creates or updates resource Item against a Module version, using a ResourceImportHandler configured
finding the outcome at the given dataLocation.
|
DomainPath getPath(String name, String ns)
ns - - module namespacename - - resource nameOutcome getResourceOutcome(String name, String ns, String location, Integer version) throws InvalidDataException, ObjectNotFoundException
name - the name of the resourcens - the namespace defined in the modulelocation - the location of the resource fileversion - the specified versionInvalidDataException - - if the supplied resources are not validObjectNotFoundException - - data was not found to handle requestString getWorkflowName()
PropertyDescriptionList getPropDesc()
DomainPath getTypeRoot()
CollectionArrayList getCollections(String name, String ns, String location, Integer version, TransactionKey transactionKey) throws Exception
name - 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 wrongCollectionArrayList getCollections(String name, Integer version, Outcome outcome, TransactionKey transactionKey) throws Exception
name - the name of the Resource Itemversion - the version of the Resource Itemoutcome - Outcome containing the XML representing the Resource ItemException - something went wrongString getName()
DomainPath createResource(String ns, String itemName, int version, Outcome outcome, boolean reset, TransactionKey transactionKey) throws Exception
ns - the NameSpace of the ModuleitemName - name of the resource Itemversion - version of the resource Itemoutcome - the Outcome to be used to create the resourcereset - whether the resources shall be updated even if the current version was modified
by someone other than the bootstrapper. Use system property 'Module.reset' or 'Module.${namespace}.reset'
to control if bootstrap should overwrite the resourceException - errors that are raised during the processDomainPath importResource(String ns, String itemName, int version, ItemPath itemPath, String dataLocation, boolean reset, TransactionKey transactionKey) throws Exception
ns - the NameSpace of the ModuleitemName - name of the resource Itemversion - version of the resource ItemitemPath - the fixed UUID of the ItemdataLocation - the location of the resource xml available from the classpath to be used as Outcomereset - whether the resources shall be updated even if the current version was modified
by someone other than the bootstrapper. Use system property 'Module.reset' or 'Module.${namespace}.reset'
to control if bootstrap should overwrite the resourceException - errors that are raised during the processDomainPath importResource(String ns, String itemName, int version, ItemPath itemPath, Outcome outcome, boolean reset, TransactionKey transactionKey) throws Exception
ns - the NameSpace of the ModuleitemName - name of the resource Itemversion - version of the resource ItemitemPath - the fixed UUID of the Itemthe - Outcome to be used to import thereset - whether the resources shall be updated even if the current version was modified
by someone other than the bootstrapper. Use system property 'Module.reset' or 'Module.${namespace}.reset'
to control if bootstrap should overwrite the resourceException - errors that are raised during the processString getResourceChangeDetails()
Copyright © 1997–2022 CRISTAL-iSE. All rights reserved.