Package org.efs.openreports.objects

Examples of org.efs.openreports.objects.ReportGroup


      {
        reportGroup = groupProvider.getReportGroup(new Integer(id));
      }
      else
      {
        reportGroup = new ReportGroup();
      }

      if (command.equals("edit") && !submitOk && !submitDuplicate)
      {
        name = reportGroup.getName();
View Full Code Here


            Report report = (Report)object;
            return "<a href=\"editReport.action?command=edit&amp;id=" + report.getId() + "\">Edit Report</a>";
        }
        else if (object instanceof ReportGroup)
        {
            ReportGroup reportGroup = (ReportGroup)object;
            return "<a href=\"editGroup.action?command=edit&amp;id=" + reportGroup.getId() + "\">Edit Group</a>";
        }
        else if (object instanceof ReportUser)
        {
            ReportUser reportUser = (ReportUser)object;
            return "<a href=\"editUser.action?command=edit&amp;id=" + reportUser.getId() + "\">Edit User</a>";
View Full Code Here

    try
    {
      for (int i = 0; i < ids.length; i++)
      {
        ReportGroup group = groupProvider.getReportGroup(new Integer(ids[i]));
        groups.add(group);
      }
    }
    catch (Exception e)
    {
View Full Code Here

  public String execute()
  { 
    try
    {
      ReportGroup reportGroup =
        groupProvider.getReportGroup(new Integer(id));
     
      name = reportGroup.getName();
      description = reportGroup.getDescription();
     
      if (!submitDelete && !submitCancel)
      {
        return INPUT;
      }
View Full Code Here

        .createQuery(
            "from org.efs.openreports.objects.ReportGroup reportGroup").iterate();
           
       while(iterator.hasNext())
       {
         ReportGroup reportGroup = (ReportGroup) iterator.next();
        
         List<Report> reports = reportGroup.getReports();        
         if (reports.contains(report))
         {
           reports.remove(report);
         }
       } 
View Full Code Here

  public String execute()
  {
    try
    {
      ReportGroup reportGroup = null;

      if (groupId == Integer.MIN_VALUE)
      {
        reportGroup =
          (ReportGroup) ActionContext.getContext().getSession().get(
            ORStatics.REPORT_GROUP);
      }
      else
      {
        ReportUser reportUser =
          (ReportUser) ActionContext.getContext().getSession().get(
            ORStatics.REPORT_USER);

        reportGroup =
          groupProvider.getReportGroup(new Integer(groupId));

        if (reportUser.isValidGroup(reportGroup))
        {
          session.put(ORStatics.REPORT_GROUP,  reportGroup);
        }
        else
        {
          addActionError(LocalStrings.ERROR_REPORTGROUP_NOTAUTHORIZED);
          return ERROR;
        }
      }

      if (reportGroup != null)
      {
        reports = reportGroup.getReportsForDisplay();
        Collections.sort(reports);
      }

      return SUCCESS;
    }
View Full Code Here

TOP

Related Classes of org.efs.openreports.objects.ReportGroup

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.