コード例 #1
0
 @Override
 public String getReportTypeForAjaxCall(String reportClassCode) throws Exception {
   Collection reportTypes = getReportTypesUsingReportClassCode(reportClassCode);
   String attributeNames = "";
   for (Object aReportCode : reportTypes) {
     Report aReport = businessObjectService.findBySinglePrimaryKey(Report.class, aReportCode);
     if (aReport != null) {
       attributeNames += "," + aReportCode + ";" + aReport.getDescription();
     }
   }
   return attributeNames;
 }
コード例 #2
0
 private boolean isFinalReport(String reportCode) {
   boolean retVal = false;
   if (StringUtils.isNotBlank(reportCode)) {
     Map fieldValues = new HashMap();
     fieldValues.put("REPORT_CODE", reportCode);
     Report report =
         (Report)
             this.getBusinessObjectService()
                 .findMatching(Report.class, fieldValues)
                 .iterator()
                 .next();
     retVal = report.getFinalReportFlag();
   }
   return retVal;
 }
コード例 #3
0
 /** @see java.lang.Object#hashCode() */
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((awardTemplate == null) ? 0 : awardTemplate.hashCode());
   result =
       prime * result
           + ((awardTemplateReportTermRecipients == null)
               ? 0
               : awardTemplateReportTermRecipients.hashCode());
   result = prime * result + ((distribution == null) ? 0 : distribution.hashCode());
   result = prime * result + ((dueDate == null) ? 0 : dueDate.hashCode());
   result = prime * result + ((frequency == null) ? 0 : frequency.hashCode());
   result = prime * result + ((frequencyBase == null) ? 0 : frequencyBase.hashCode());
   result = prime * result + ((frequencyBaseCode == null) ? 0 : frequencyBaseCode.hashCode());
   result = prime * result + ((frequencyCode == null) ? 0 : frequencyCode.hashCode());
   result = prime * result + ((ospDistributionCode == null) ? 0 : ospDistributionCode.hashCode());
   result = prime * result + ((report == null) ? 0 : report.hashCode());
   result = prime * result + ((reportClass == null) ? 0 : reportClass.hashCode());
   result = prime * result + ((reportClassCode == null) ? 0 : reportClassCode.hashCode());
   result = prime * result + ((reportCode == null) ? 0 : reportCode.hashCode());
   result =
       prime * result + ((templateReportTermId == null) ? 0 : templateReportTermId.hashCode());
   return result;
 }
コード例 #4
0
 /** @see java.lang.Object#equals(java.lang.Object) */
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   AwardTemplateReportTerm other = (AwardTemplateReportTerm) obj;
   if (!awardTemplate.equals(other.awardTemplate)) return false;
   if (awardTemplateReportTermRecipients == null) {
     if (other.awardTemplateReportTermRecipients != null) return false;
   } else if (!awardTemplateReportTermRecipients.equals(other.awardTemplateReportTermRecipients))
     return false;
   if (distribution == null) {
     if (other.distribution != null) return false;
   } else if (!distribution.equals(other.distribution)) return false;
   if (dueDate == null) {
     if (other.dueDate != null) return false;
   } else if (!dueDate.equals(other.dueDate)) return false;
   if (frequency == null) {
     if (other.frequency != null) return false;
   } else if (!frequency.equals(other.frequency)) return false;
   if (frequencyBase == null) {
     if (other.frequencyBase != null) return false;
   } else if (!frequencyBase.equals(other.frequencyBase)) return false;
   if (frequencyBaseCode == null) {
     if (other.frequencyBaseCode != null) return false;
   } else if (!frequencyBaseCode.equals(other.frequencyBaseCode)) return false;
   if (frequencyCode == null) {
     if (other.frequencyCode != null) return false;
   } else if (!frequencyCode.equals(other.frequencyCode)) return false;
   if (ospDistributionCode == null) {
     if (other.ospDistributionCode != null) return false;
   } else if (!ospDistributionCode.equals(other.ospDistributionCode)) return false;
   if (report == null) {
     if (other.report != null) return false;
   } else if (!report.equals(other.report)) return false;
   if (reportClass == null) {
     if (other.reportClass != null) return false;
   } else if (!reportClass.equals(other.reportClass)) return false;
   if (reportClassCode == null) {
     if (other.reportClassCode != null) return false;
   } else if (!reportClassCode.equals(other.reportClassCode)) return false;
   if (reportCode == null) {
     if (other.reportCode != null) return false;
   } else if (!reportCode.equals(other.reportCode)) return false;
   if (templateReportTermId == null) {
     if (other.templateReportTermId != null) return false;
   } else if (!templateReportTermId.equals(other.templateReportTermId)) return false;
   return true;
 }