Example #1
0
 public void writeLink(Writer out) throws Exception {
   out.write("<a href=\"group.jsp?g=");
   UtilityMethods.writeURLEncoded(out, tagName);
   out.write("\">");
   HTMLWriter.writeHtml(out, tagName);
   out.write("</a>");
 }
Example #2
0
 public void assureLaunchingPad(AuthRequest ar) throws Exception {
   File launchFile = new File(containingFolder, ".cogProjectView.htm");
   if (!launchFile.exists()) {
     boolean previousUI = ar.isNewUI();
     ar.setNewUI(true);
     OutputStream os = new FileOutputStream(launchFile);
     Writer w = new OutputStreamWriter(os, "UTF-8");
     w.write("<html><body><script>document.location = \"");
     UtilityMethods.writeHtml(w, ar.baseURL);
     UtilityMethods.writeHtml(w, ar.getResourceURL(this, "public.htm"));
     w.write("\";</script></body></html>");
     w.flush();
     w.close();
     ar.setNewUI(previousUI);
   }
 }
 public List<AddressListEntry> getDirectPlayers() throws Exception {
   List<AddressListEntry> list = new ArrayList<AddressListEntry>();
   String assigneeList = getList();
   if (assigneeList == null) {
     return list;
   }
   String[] assignees = UtilityMethods.splitOnDelimiter(assigneeList, ',');
   if (assignees == null) {
     return list;
   }
   for (String assignee : assignees) {
     if (assignee.length() > 0) {
       list.add(new AddressListEntry(assignee));
     }
   }
   return list;
 }
Example #4
0
 private void setScalarTime(DOMFace oneDoc, String attName, long dateTime) {
   oneDoc.setScalar(attName, UtilityMethods.getXMLDateFormat(dateTime));
 }