Commit 6247a6a8 authored by Pietro Braghieri's avatar Pietro Braghieri
Browse files

Update OSLC_README.md

parent 034d43a8
......@@ -85,7 +85,9 @@ if( behaviourModel != null)
parameters.add(new ToolFunctionParameter(ToolParameterConstants.PARAM_BEHAVIOUR_MODEL, behaviourModel.toString(), true));
}
```
and the fragment to insert in the `setParameters(ToolFunctionParameter parameter)` method will be:
```
case ToolParameterConstants.PARAM_BEHAVIOUR_MODEL:
try
......@@ -99,9 +101,10 @@ case ToolParameterConstants.PARAM_BEHAVIOUR_MODEL:
break;
```
##### Server Side
In this case, we have to modify the plugin [eu.fbk.tools.oslc.provider](/bundles/eu.fbk.tools.oslc.provider) as follow:
We have to modify the plugin [eu.fbk.tools.oslc.provider](/bundles/eu.fbk.tools.oslc.provider) as follow:
* add the following method in the class `eu.fbk.tools.oslc.automation.resources.PlanCatalog.java`
```
private static Property getWholeArchitectureProperty()
{
......@@ -116,7 +119,7 @@ private static Property getWholeArchitectureProperty()
}
```
and add the invocation of such method in the `getContractPropertyValidationPlan()` method:
* add the invocation of such method in the `getContractPropertyValidationPlan()` method:
```
public static AutomationPlan getContractPropertyValidationPlan()
......@@ -242,9 +245,9 @@ protected void setParameter(ToolFunctionParameter parameter)
}
```
##### Server Side
In this case, we have to modify the plugin [eu.fbk.tools.oslc.provider](/bundles/eu.fbk.tools.oslc.provider)
Also here, we have to modify the plugin [eu.fbk.tools.oslc.provider](/bundles/eu.fbk.tools.oslc.provider)
###### New AutomationPlan definition
_New AutomationPlan definition_
* add the following methods in the class `eu.fbk.tools.oslc.automation.resources.PlanCatalog.java`
```
......@@ -281,6 +284,27 @@ public static AutomationPlan getContractPropertyValidationPlan()
}
```
* add the `getXXX()` methods if missing (i.e. `getPropertyValidationType()` and `getPossibilityProperty()`)
_New AutomationPlan registration_
* add the new plan in the `eu.fbk.tools.oslc.automation.servlet.ServletListener.java` class
```
Persistence.addResource(PlanCatalog.getContractPropertyValidationPlan());
```
_New AutomationPlan invocation_
* add the invocation of the corresponding function and runner in the `eu.fbk.tools.oslc.automation.resources.AutomationResultResource.java` class
```
switch( autoPlan.getTitle() )
{
case CheckValidationProperty.FUNCTION_NAME:
runner = new OcraRunner(RunnerUtils.getOcraExecutable());
toolFunction = new CheckValidationProperty();
break;
```
#### Web Server Installation
The OSLC Service Provider is tested on [Tomcat](https://tomcat.apache.org/) Web Application Server version 9. There are newer versions but we don't think there are any problems using them.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment