* service defined by the indicated sDef.
*/
public static Map getDeploymentLabelMap(String sDefPID) throws IOException {
try {
HashMap labelMap = new HashMap();
FieldSearchQuery query = new FieldSearchQuery();
Condition[] conditions = new Condition[2];
conditions[0] = new Condition();
conditions[0].setProperty("fType");
conditions[0].setOperator(ComparisonOperator.fromValue("eq"));
conditions[0].setValue("M");
conditions[1] = new Condition();
conditions[1].setProperty("bDef");
conditions[1].setOperator(ComparisonOperator.fromValue("has"));
conditions[1].setValue(sDefPID);
FieldSearchQuery.Conditions conds =
new FieldSearchQuery.Conditions();
conds.getCondition().addAll(Arrays.asList(conditions));
ObjectFactory factory = new ObjectFactory();
query.setConditions(factory.createFieldSearchQueryConditions(conds));
String[] fields = new String[] {"pid", "label"};
if (true) {
/*
* FIXME: find some other way to do this, if we care. it uses
* fType and bDef, which are no longer in field search,