示例#1
0
 private static IUS getParentIUS(Processing processing, Integer parentId) {
   IUS parentIUS = null;
   Set<IUS> ius = processing.getIUS();
   for (IUS i : ius) {
     if (parentId.equals(i.getIusId())) {
       parentIUS = i;
     }
   }
   return parentIUS;
 }
示例#2
0
 /**
  * getAllHtml.
  *
  * @param ius a {@link net.sourceforge.seqware.common.model.IUS} object.
  * @param registration a {@link net.sourceforge.seqware.common.model.Registration} object.
  * @param openingNodeId a {@link java.lang.String} object.
  * @param isOpenProc a boolean.
  * @param isVisibleProc a boolean.
  * @param treeType a {@link java.lang.String} object.
  * @return a {@link java.lang.String} object.
  */
 public static String getAllHtml(
     IUS ius,
     Registration registration,
     String openingNodeId,
     boolean isOpenProc,
     boolean isVisibleProc,
     String treeType) {
   //	Log.info("ius call All html");
   String childHtml =
       NodeHtmlUtil.getIUSHtml(
           ius, registration, TYPE_TREE, openingNodeId, isOpenProc, isVisibleProc, treeType);
   String parentHtml =
       getAllHtml(ius.getLane(), registration, Constant.IUS_PREFIX + ius.getIusId(), treeType);
   String parentId = Constant.IUS_PREFIX + ius.getIusId();
   return NodeHtmlUtil.pasteHtmlIntoParentNode(childHtml, parentHtml, parentId, true);
 }
示例#3
0
文件: Dtos.java 项目: kyocum/seqware
 /**
  * asDto.
  *
  * @param ius a {@link net.sourceforge.seqware.common.model.IUS} object.
  * @return a {@link net.sourceforge.seqware.webservice.dto.IusDto} object.
  */
 public static IusDto asDto(IUS ius) {
   DateTimeFormatter dateTimeFormatter = ISODateTimeFormat.dateTimeNoMillis();
   IusDto dto = new IusDto();
   dto.setSwa(ius.getSwAccession());
   dto.setSkip(ius.getSkip());
   dto.setCreateTimeStamp(dateTimeFormatter.print(ius.getCreateTimestamp().getTime()));
   dto.setUpdateTimeStamp(dateTimeFormatter.print(ius.getUpdateTimestamp().getTime()));
   if (ius.getTag() != null) {
     dto.setBarcode(ius.getTag());
   }
   return dto;
 }