use of org.bimserver.interfaces.objects.SServiceInterface in project BIMserver by opensourceBIM.
the class MetaServiceImpl method getServiceInterfaces.
@Override
public List<SServiceInterface> getServiceInterfaces() throws ServerException, UserException {
List<SServiceInterface> sServiceInterfaces = new ArrayList<SServiceInterface>();
for (String name : getBimServer().getServicesMap().keySetName()) {
SServiceInterface sServiceInterface = convertServiceInterface(name);
sServiceInterfaces.add(sServiceInterface);
}
Collections.sort(sServiceInterfaces, new Comparator<SServiceInterface>() {
@Override
public int compare(SServiceInterface o1, SServiceInterface o2) {
return o1.getName().compareTo(o2.getName());
}
});
return sServiceInterfaces;
}
use of org.bimserver.interfaces.objects.SServiceInterface in project BIMserver by opensourceBIM.
the class MetaServiceImpl method convertServiceInterface.
private SServiceInterface convertServiceInterface(String name) {
SServiceInterface sServiceInterface = new SServiceInterface();
SService byName = getBimServer().getServicesMap().getByName(name);
sServiceInterface.setName(name);
sServiceInterface.setNameSpace(byName.getNameSpace());
sServiceInterface.setSimpleName(byName.getSimpleName());
return sServiceInterface;
}
Aggregations