001 package railo.runtime.tag; 002 003 import railo.runtime.exp.TagNotSupported; 004 import railo.runtime.ext.tag.BodyTagImpl; 005 006 /** 007 * Runs a predefined Crystal Reports report. 008 * 009 * 010 * 011 **/ 012 public final class Report extends BodyTagImpl { 013 014 private String template; 015 private String format; 016 private String name; 017 private String filename; 018 private String query; 019 private boolean overwrite; 020 private String encryption; 021 private String ownerpassword; 022 private String userpassword; 023 private String permissions; 024 private String datasource; 025 private String type; 026 private double timeout; 027 private String password; 028 private String orderby; 029 private String report; 030 private String username; 031 private String formula; 032 033 034 /** 035 * constructor for the tag class 036 * @throws TagNotSupported 037 **/ 038 public Report() throws TagNotSupported { 039 // TODO implement tag 040 throw new TagNotSupported("report"); 041 } 042 043 /** set the value password 044 * @param password value to set 045 **/ 046 public void setPassword(String password) { 047 this.password=password; 048 } 049 050 /** set the value orderby 051 * Orders results according to your specifications. 052 * @param orderby value to set 053 **/ 054 public void setOrderby(String orderby) { 055 this.orderby=orderby; 056 } 057 058 /** set the value report 059 * @param report value to set 060 **/ 061 public void setReport(String report) { 062 this.report=report; 063 } 064 065 /** set the value username 066 * @param username value to set 067 **/ 068 public void setUsername(String username) { 069 this.username=username; 070 } 071 072 /** set the value formula 073 * Specifies one or more named formulas. Terminate each formula specification with a semicolon. 074 * @param formula value to set 075 **/ 076 public void setFormula(String formula) { 077 this.formula=formula; 078 } 079 080 081 /** 082 * @see javax.servlet.jsp.tagext.Tag#doStartTag() 083 */ 084 public int doStartTag() { 085 return SKIP_BODY; 086 } 087 088 /** 089 * @see javax.servlet.jsp.tagext.Tag#doEndTag() 090 */ 091 public int doEndTag() { 092 return EVAL_PAGE; 093 } 094 095 /** 096 * @see javax.servlet.jsp.tagext.BodyTag#doInitBody() 097 */ 098 public void doInitBody() { 099 100 } 101 102 /** 103 * @see javax.servlet.jsp.tagext.BodyTag#doAfterBody() 104 */ 105 public int doAfterBody() { 106 return SKIP_BODY; 107 } 108 109 /** 110 * @see javax.servlet.jsp.tagext.Tag#release() 111 */ 112 public void release() { 113 super.release(); 114 password=""; 115 orderby=""; 116 report=""; 117 username=""; 118 formula=""; 119 120 template=""; 121 format=""; 122 name=""; 123 filename=""; 124 query=""; 125 overwrite=false; 126 encryption=""; 127 ownerpassword=""; 128 userpassword=""; 129 permissions=""; 130 datasource=""; 131 type=""; 132 timeout=0; 133 } 134 135 public void addReportParam(ReportParamBean param) { 136 // TODO Auto-generated method stub 137 138 } 139 }