|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectde.uni_leipzig.wifa.iwi.mr3.service.impl.ModelRepositoryServiceImpl
public class ModelRepositoryServiceImpl
Service implementation for model repository.
This class asks the global configuration (for axis2: axis2.xml) for a configuration parameter "ModelRepository.DatabasePath". Use this parameter to configure the persistence folder. If there is no such folder, we use a static one.
| Constructor Summary | |
|---|---|
ModelRepositoryServiceImpl()
|
|
| Method Summary | |
|---|---|
Comparison |
compare(String leftUri,
String rightUri)
Compare two models. |
void |
delete(String nsUri,
boolean cascading)
Delete model. |
void |
destroy(org.apache.axis2.context.ServiceContext context)
On destroy the service context. |
Match[] |
find(String[] classifiers,
String expression,
boolean isRegEx,
boolean isCaseSensitive)
Find model by conditions. y |
String[] |
getInstanceModels(String metaNsUri)
Find all models. |
void |
init(org.apache.axis2.context.ServiceContext context)
Init of service context. |
org.apache.axiom.om.OMElement |
load(String nsUri)
Load a model by given namespace URI. |
void |
save(org.apache.axiom.om.OMElement model,
String uri)
Store model into model repository. |
void |
shutDown(org.apache.axis2.context.ConfigurationContext configctx,
org.apache.axis2.description.AxisService service)
Service live cycle method. |
void |
startUp(org.apache.axis2.context.ConfigurationContext configctx,
org.apache.axis2.description.AxisService service)
Service live cycle method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelRepositoryServiceImpl()
| Method Detail |
|---|
public void startUp(org.apache.axis2.context.ConfigurationContext configctx,
org.apache.axis2.description.AxisService service)
This (callback) method is called by axis2 when the engine starts, before it is initially used. Therefore the first request need not wait until initialization has finished.
startUp in interface org.apache.axis2.engine.ServiceLifeCycleconfigctx - Service contextservice - ServiceServiceLifeCycle.startUp(org.apache.axis2.context.ConfigurationContext,
org.apache.axis2.description.AxisService)
public void shutDown(org.apache.axis2.context.ConfigurationContext configctx,
org.apache.axis2.description.AxisService service)
shutDown in interface org.apache.axis2.engine.ServiceLifeCycleconfigctx - Service contextservice - ServiceServiceLifeCycle.shutDown(org.apache.axis2.context.ConfigurationContext,
org.apache.axis2.description.AxisService)
public void init(org.apache.axis2.context.ServiceContext context)
throws org.apache.axis2.AxisFault
Each service class may more then once instantiated for some reasons. Each instance get it's own service context. At time the instance is constructed this method get called. We keep the service context in instance variable for further usage.
init in interface org.apache.axis2.service.Lifecyclecontext - Service context
org.apache.axis2.AxisFault - Never happensLifecycle.init(org.apache.axis2.context.ServiceContext)public void destroy(org.apache.axis2.context.ServiceContext context)
destroy in interface org.apache.axis2.service.Lifecyclecontext - Service contextLifecycle.destroy(org.apache.axis2.context.ServiceContext)
public void save(org.apache.axiom.om.OMElement model,
String uri)
throws MRException
If model exists, the parameter override must be
true to override the model, otherwise storing fails.
save in interface ModelRepositorySkeletonInterfacemodel - Model to store into model repositoryuri - uri of the model resource, used as name to tag models without
nsURI
MRException - Service level exceptionModelRepositorySkeletonInterface.save(org.apache.axiom.om.OMElement,
java.lang.String)
public org.apache.axiom.om.OMElement load(String nsUri)
throws MRException
load in interface ModelRepositorySkeletonInterfacensUri - Namespace URI
null if no such
model exists in repository
MRException - Service level exceptionModelRepositorySkeletonInterface.load(java.lang.String)
public void delete(String nsUri,
boolean cascading)
throws MRException
delete in interface ModelRepositorySkeletonInterfacensUri - Namespace URI of model to deletecascading - true, if all instance models should also be deleted
MRException - Service level exceptionModelRepositorySkeletonInterface.delete(java.lang.String,
boolean)public String[] getInstanceModels(String metaNsUri)
Lookup the nsURIs of all model instances in repository beyound the model
with the given nsURI. If the meta nsURI is unkonown (no such model in
repository) or no model is found, the result is empty, not
null.
If the argument is null, the method looks up all models
explicitly without an assigned meta model. Usually these are meta models,
forming the maximum model level in it's context.
getInstanceModels in interface ModelRepositorySkeletonInterfacemetaNsUri - Namespace URI of parent model.
ModelRepositorySkeletonInterface.getInstanceModels(java.lang.String)
public Match[] find(String[] classifiers,
String expression,
boolean isRegEx,
boolean isCaseSensitive)
find in interface ModelRepositorySkeletonInterfaceclassifiers - the classifiers to search inexpression - the string expression to search forisRegEx - RegExp searchisCaseSensitive - Case sensitive search
de.uni_leipzig.wifa.iwi.mr3.service.ModelRepositorySkeletonInterface#find(java.lang.String,
java.lang.String[], boolean, boolean)
public Comparison compare(String leftUri,
String rightUri)
throws MRException
compare in interface ModelRepositorySkeletonInterfaceleftUri - Identificator of left modelrightUri - Identificator of right model
MRException - Service level exceptionde.uni_leipzig.wifa.iwi.mr3.service.ModelRepositorySkeletonInterface#compare(org.apache.axis2.databinding.types.URI,
org.apache.axis2.databinding.types.URI)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||