use of org.bimserver.interfaces.objects.SServiceMethod in project BIMserver by opensourceBIM.
the class MetaServiceImpl method getServiceMethods.
@Override
public List<SServiceMethod> getServiceMethods(String serviceInterfaceName) throws ServerException, UserException {
List<SServiceMethod> sServiceMethods = new ArrayList<SServiceMethod>();
SService sService = getBimServer().getServicesMap().getByName(serviceInterfaceName);
if (sService == null) {
throw new UserException("Service \"" + serviceInterfaceName + "\" not found");
}
for (SMethod sMethod : sService.getMethods()) {
SServiceMethod sServiceMethod = convertMethod(sMethod);
sServiceMethods.add(sServiceMethod);
}
return sServiceMethods;
}
use of org.bimserver.interfaces.objects.SServiceMethod in project BIMserver by opensourceBIM.
the class MetaServiceImpl method convertMethod.
private SServiceMethod convertMethod(SMethod sMethod) {
SServiceMethod sServiceMethod = new SServiceMethod();
sServiceMethod.setName(sMethod.getName());
sServiceMethod.setDoc(sMethod.getDoc());
sServiceMethod.setReturnDoc(sMethod.getReturnDoc());
// sServiceMethod.setReturnType(sMethod.getReturnType().getName());
return sServiceMethod;
}
Aggregations