Added method getProfileID
This commit is contained in:
parent
1fd3cae333
commit
eb99899fa4
|
@ -79,13 +79,16 @@ public class UseCaseDescriptorCaller {
|
|||
// LOG.debug("Performing query: {}", queryDoc.toJson());
|
||||
// queryRequest.setFilter(queryDoc);
|
||||
|
||||
Iterator<UseCaseDescriptor> useCaseDescrs = client.query(queryRequest);
|
||||
for (Iterator<UseCaseDescriptor> iterator = useCaseDescrs; useCaseDescrs.hasNext();) {
|
||||
UseCaseDescriptor prg = (UseCaseDescriptor) iterator.next();
|
||||
listUCD.add(prg);
|
||||
|
||||
Iterator<UseCaseDescriptor> useCaseDescrsIt = client.query(queryRequest);
|
||||
|
||||
if(useCaseDescrsIt!=null) {
|
||||
while(useCaseDescrsIt.hasNext()) {
|
||||
UseCaseDescriptor prg = (UseCaseDescriptor) useCaseDescrsIt.next();
|
||||
listUCD.add(prg);
|
||||
|
||||
}
|
||||
}
|
||||
LOG.info("returning {} {}", listUCD.size(), UseCaseDescriptor.class.getName());
|
||||
LOG.info("getListForJSONPath returning {} {}", listUCD.size(), UseCaseDescriptor.class.getName());
|
||||
return listUCD;
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ public class UseCaseDescriptorDV implements Serializable {
|
|||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -2864888245002804887L;
|
||||
private String id;
|
||||
private String id; // this is the ProfileID
|
||||
private String version;
|
||||
private String name;
|
||||
private String description;
|
||||
|
@ -31,6 +31,10 @@ public class UseCaseDescriptorDV implements Serializable {
|
|||
return id;
|
||||
}
|
||||
|
||||
public String getProfileID() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public String getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue