Package org.openmrs.module.webservices.rest.web.resource.impl

Examples of org.openmrs.module.webservices.rest.web.resource.impl.DelegatingResourceDescription.addProperty()


    } else if (rep instanceof FullRepresentation) {
      DelegatingResourceDescription description = new DelegatingResourceDescription();
      description.addProperty("uuid");
      description.addProperty("display", findMethod("getDisplayString"));
      description.addProperty("name");
      description.addProperty("description");
      description.addProperty("price");
      description.addProperty("cost");
      description.addProperty("retired");
      description.addProperty("auditInfo", findMethod("getAuditInfo"));
      description.addSelfLink();
View Full Code Here


      DelegatingResourceDescription description = new DelegatingResourceDescription();
      description.addProperty("uuid");
      description.addProperty("display", findMethod("getDisplayString"));
      description.addProperty("name");
      description.addProperty("description");
      description.addProperty("price");
      description.addProperty("cost");
      description.addProperty("retired");
      description.addProperty("auditInfo", findMethod("getAuditInfo"));
      description.addSelfLink();
      return description;
View Full Code Here

      description.addProperty("uuid");
      description.addProperty("display", findMethod("getDisplayString"));
      description.addProperty("name");
      description.addProperty("description");
      description.addProperty("price");
      description.addProperty("cost");
      description.addProperty("retired");
      description.addProperty("auditInfo", findMethod("getAuditInfo"));
      description.addSelfLink();
      return description;
    }
View Full Code Here

      description.addProperty("display", findMethod("getDisplayString"));
      description.addProperty("name");
      description.addProperty("description");
      description.addProperty("price");
      description.addProperty("cost");
      description.addProperty("retired");
      description.addProperty("auditInfo", findMethod("getAuditInfo"));
      description.addSelfLink();
      return description;
    }
    return null;
View Full Code Here

      description.addProperty("name");
      description.addProperty("description");
      description.addProperty("price");
      description.addProperty("cost");
      description.addProperty("retired");
      description.addProperty("auditInfo", findMethod("getAuditInfo"));
      description.addSelfLink();
      return description;
    }
    return null;
  }
View Full Code Here

  }
 
  @Override
  public DelegatingResourceDescription getUpdatableProperties() throws ResourceDoesNotSupportOperationException {
    DelegatingResourceDescription description = new DelegatingResourceDescription();
    description.addProperty("description");
    return description;
  }
 
  @Override
  public Drug getByUniqueId(String uuid) {
View Full Code Here

  @Override
  public DelegatingResourceDescription getRepresentationDescription(Representation rep) {
    // TODO Auto-generated method stub
    if (rep instanceof DefaultRepresentation) {
      DelegatingResourceDescription description = new DelegatingResourceDescription();
      description.addProperty("uuid");
      description.addProperty("druId");
      description.addProperty("quantity");
      description.addLink("full", ".?v=" + RestConstants.REPRESENTATION_FULL);
      return description;
    } else if (rep instanceof FullRepresentation) {
View Full Code Here

  public DelegatingResourceDescription getRepresentationDescription(Representation rep) {
    // TODO Auto-generated method stub
    if (rep instanceof DefaultRepresentation) {
      DelegatingResourceDescription description = new DelegatingResourceDescription();
      description.addProperty("uuid");
      description.addProperty("druId");
      description.addProperty("quantity");
      description.addLink("full", ".?v=" + RestConstants.REPRESENTATION_FULL);
      return description;
    } else if (rep instanceof FullRepresentation) {
      DelegatingResourceDescription description = new DelegatingResourceDescription();
View Full Code Here

    // TODO Auto-generated method stub
    if (rep instanceof DefaultRepresentation) {
      DelegatingResourceDescription description = new DelegatingResourceDescription();
      description.addProperty("uuid");
      description.addProperty("druId");
      description.addProperty("quantity");
      description.addLink("full", ".?v=" + RestConstants.REPRESENTATION_FULL);
      return description;
    } else if (rep instanceof FullRepresentation) {
      DelegatingResourceDescription description = new DelegatingResourceDescription();
      description.addProperty("uuid");
View Full Code Here

      description.addProperty("quantity");
      description.addLink("full", ".?v=" + RestConstants.REPRESENTATION_FULL);
      return description;
    } else if (rep instanceof FullRepresentation) {
      DelegatingResourceDescription description = new DelegatingResourceDescription();
      description.addProperty("uuid");
      description.addProperty("drugId");
      description.addProperty("quantity");
     
      return description;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.