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            @Override
082            public int doStartTag() {
083                    return SKIP_BODY;
084            }
085    
086            @Override
087            public int doEndTag()   {
088                    return EVAL_PAGE;
089            }
090    
091            @Override
092            public void doInitBody()        {
093                    
094            }
095    
096            @Override
097            public int doAfterBody()        {
098                    return SKIP_BODY;
099            }
100    
101            @Override
102            public void release()   {
103                    super.release();
104                    password="";
105                    orderby="";
106                    report="";
107                    username="";
108                    formula="";
109                    
110                    template="";
111                    format="";
112                    name="";
113                    filename="";
114                    query="";
115                    overwrite=false;
116                    encryption="";
117                    ownerpassword="";
118                    userpassword="";
119                    permissions="";
120                    datasource="";
121                    type="";
122                    timeout=0;
123            }
124    
125            public void addReportParam(ReportParamBean param) {
126                    // TODO Auto-generated method stub
127                    
128            }
129    }