org.gcube.vremanagement.softwaregateway.answer
Class AnswerBuild

java.lang.Object
  extended by org.gcube.vremanagement.softwaregateway.answer.AnswerBuild

public class AnswerBuild
extends Object

Class that build a String response

Author:
Roberto Cirillo (ISTI - CNR)

Constructor Summary
AnswerBuild()
           
 
Method Summary
 void buildDependencies(List<GCubeCoordinates> resolved, List<GCubeCoordinates> missing)
          Build answer that contains a list of dependencies: solved and missing
 void buildPackages(List<GCubeCoordinates> packageList)
          build answer that contains a list of packages
 void buildPlugin(List<GCubeCoordinates> packageList)
          Build answer that contains a list of package
 String constructAnswer(List<GCubeCoordinates> dependenciesResolved, List<GCubeCoordinates> dependenciesMissing, List<GCubeCoordinates> pluginList, List<GCubeCoordinates> packageList)
          build a xml answer
 String constructReportAnswer(List<ReportObject> reportEntryList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnswerBuild

public AnswerBuild()
Method Detail

buildDependencies

public void buildDependencies(List<GCubeCoordinates> resolved,
                              List<GCubeCoordinates> missing)
Build answer that contains a list of dependencies: solved and missing

Parameters:
resolved -
missing -

buildPackages

public void buildPackages(List<GCubeCoordinates> packageList)
build answer that contains a list of packages

Parameters:
packageList -

buildPlugin

public void buildPlugin(List<GCubeCoordinates> packageList)
Build answer that contains a list of package

Parameters:
packageList -

constructAnswer

public String constructAnswer(List<GCubeCoordinates> dependenciesResolved,
                              List<GCubeCoordinates> dependenciesMissing,
                              List<GCubeCoordinates> pluginList,
                              List<GCubeCoordinates> packageList)
build a xml answer

Parameters:
dependenciesResolved: - list of resolved dependencies
dependenciesMissing: - list of missing dependencies
pluginList: - list of packages
packageList - list of packages
Returns:
xml string

constructReportAnswer

public String constructReportAnswer(List<ReportObject> reportEntryList)


Copyright © 2013. All Rights Reserved.