Package com.eaglegenomics.simlims.core

Examples of com.eaglegenomics.simlims.core.User


  //run

  public JSONObject searchRun(HttpSession session, JSONObject json) {
    String searchStr = (String) json.get("str");
    try {
      User user = securityManager.getUserByLoginName(SecurityContextHolder.getContext().getAuthentication().getName());
      if (searchStr != null && !searchStr.equals("")) {
        if (searchStr.length() > 1) {
          String str = searchStr.toLowerCase();

          StringBuilder b = new StringBuilder();
View Full Code Here


  public JSONObject changePlatformType(HttpSession session, JSONObject json) {
    String newContainerType = json.getString("platformtype");
    PlatformType pt = PlatformType.get(newContainerType);
    String cId = json.getString("container_cId");
    try {
      User user = securityManager.getUserByLoginName(SecurityContextHolder.getContext().getAuthentication().getName());

      Map<String, Object> responseMap = new HashMap<String, Object>();
      if (pt != null) {
        SequencerPartitionContainer<SequencerPoolPartition> lf = dataObjectFactory.getSequencerPartitionContainer(pt, user);
        session.setAttribute("container_" + cId, lf);
View Full Code Here

    Long overviewId = json.getLong("overviewId");
    String internalOnly = json.getString("internalOnly");
    String text = json.getString("text");

    try {
      User user = securityManager.getUserByLoginName(SecurityContextHolder.getContext().getAuthentication().getName());
      ProjectOverview overview = requestManager.getProjectOverviewById(overviewId);
      Project project = overview.getProject();

      Note note = new Note();
View Full Code Here

  }

  public JSONObject printAllSampleBarcodes(HttpSession session, JSONObject json) {
    Long projectId = json.getLong("projectId");
    try {
      User user = securityManager.getUserByLoginName(SecurityContextHolder.getContext().getAuthentication().getName());

      String serviceName = null;
      if (json.has("serviceName")) {
        serviceName = json.getString("serviceName");
      }
View Full Code Here

    }
  }

  public JSONObject printSelectedSampleBarcodes(HttpSession session, JSONObject json) {
    try {
      User user = securityManager.getUserByLoginName(SecurityContextHolder.getContext().getAuthentication().getName());
      JSONArray ss = JSONArray.fromObject(json.getString("samples"));

      String serviceName = null;
      if (json.has("serviceName")) {
        serviceName = json.getString("serviceName");
View Full Code Here

  }

  public JSONObject printAllLibraryBarcodes(HttpSession session, JSONObject json) {
    Long projectId = json.getLong("projectId");
    try {
      User user = securityManager.getUserByLoginName(SecurityContextHolder.getContext().getAuthentication().getName());

      String serviceName = null;
      if (json.has("serviceName")) {
        serviceName = json.getString("serviceName");
      }
View Full Code Here

    }
  }

  public JSONObject printSelectedLibraryBarcodes(HttpSession session, JSONObject json) {
    try {
      User user = securityManager.getUserByLoginName(SecurityContextHolder.getContext().getAuthentication().getName());
      JSONArray ss = JSONArray.fromObject(json.getString("libraries"));

      String serviceName = null;
      if (json.has("serviceName")) {
        serviceName = json.getString("serviceName");
View Full Code Here

  }

  public JSONObject printAllLibraryDilutionBarcodes(HttpSession session, JSONObject json) {
    Long projectId = json.getLong("projectId");
    try {
      User user = securityManager.getUserByLoginName(SecurityContextHolder.getContext().getAuthentication().getName());

      String serviceName = null;
      if (json.has("serviceName")) {
        serviceName = json.getString("serviceName");
      }
View Full Code Here

    }
  }

  public JSONObject printSelectedLibraryDilutionBarcodes(HttpSession session, JSONObject json) {
    try {
      User user = securityManager.getUserByLoginName(SecurityContextHolder.getContext().getAuthentication().getName());
      JSONArray ss = JSONArray.fromObject(json.getString("dilutions"));

      String serviceName = null;
      if (json.has("serviceName")) {
        serviceName = json.getString("serviceName");
View Full Code Here

  }

  public JSONObject watchOverview(HttpSession session, JSONObject json) {
    Long overviewId = json.getLong("overviewId");
    try {
      User user = securityManager.getUserByLoginName(SecurityContextHolder.getContext().getAuthentication().getName());
      ProjectOverview overview = requestManager.getProjectOverviewById(overviewId);
      if (!overview.getWatchers().contains(user)) {
        watchManager.watch(overview, user);
        watchManager.watch(overview.getProject(), user);
        requestManager.saveProjectOverview(overview);
View Full Code Here

TOP

Related Classes of com.eaglegenomics.simlims.core.User

Copyright © 2018 www.massapicom. 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.