com.pmease.quickbuild.plugin.report.engine.rest
Class BaseReportRest

java.lang.Object
  extended by com.pmease.quickbuild.plugin.report.engine.rest.BaseReportRest

public abstract class BaseReportRest
extends java.lang.Object

Base class for accessing report data via REST.

Since:
4.0

Constructor Summary
BaseReportRest()
           
 
Method Summary
protected static javax.ws.rs.WebApplicationException buildException(int status, java.lang.String msg)
           
protected static javax.ws.rs.WebApplicationException buildException(java.lang.String msg)
           
protected  void checkPermission(Configuration c)
           
protected  java.lang.String getBaseUri()
           
protected  Build getBuild(java.lang.Long id)
           
 java.lang.String getBuildStats(java.lang.Long buildId, java.lang.String reportset)
           
protected  java.lang.String getBuildStatsReportName()
           
protected  ReportCategory getCategory()
           
protected  java.io.File getCategoryDir(ReportGroup group, java.lang.Long id)
           
protected  Configuration getConfiguration(java.lang.Long id)
           
protected  Configuration getConfiguration(java.lang.String configuration)
           
 java.lang.String getMeta(java.lang.String name)
           
protected  java.io.File getReportDir(ReportGroup group, java.lang.Long id, java.lang.String reportset)
           
 java.util.List<java.lang.String> getReportNames()
           
 java.lang.String getReportRecords(java.lang.Long id, java.lang.String reportset, java.lang.String name, javax.ws.rs.core.UriInfo ui)
           
 java.util.List<java.lang.String> getReportSets(ReportGroup group, java.lang.Long id)
           
protected  java.lang.String getUri(javax.ws.rs.Path path)
           
 java.lang.String getVersion()
           
 java.lang.String help(java.lang.Boolean xml)
           
 java.lang.Long size(java.lang.String name, java.lang.Long id, java.lang.String reportset, javax.ws.rs.core.UriInfo ui)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseReportRest

public BaseReportRest()
Method Detail

getCategory

protected ReportCategory getCategory()

getBaseUri

protected java.lang.String getBaseUri()

getUri

protected java.lang.String getUri(javax.ws.rs.Path path)

help

public java.lang.String help(java.lang.Boolean xml)

getVersion

public java.lang.String getVersion()

getReportNames

public java.util.List<java.lang.String> getReportNames()

getMeta

public java.lang.String getMeta(java.lang.String name)

getReportSets

public java.util.List<java.lang.String> getReportSets(ReportGroup group,
                                                      java.lang.Long id)

size

public java.lang.Long size(java.lang.String name,
                           java.lang.Long id,
                           java.lang.String reportset,
                           @Context
                           javax.ws.rs.core.UriInfo ui)

getReportRecords

public java.lang.String getReportRecords(java.lang.Long id,
                                         java.lang.String reportset,
                                         java.lang.String name,
                                         @Context
                                         javax.ws.rs.core.UriInfo ui)

getBuildStats

public java.lang.String getBuildStats(java.lang.Long buildId,
                                      java.lang.String reportset)

getBuildStatsReportName

protected java.lang.String getBuildStatsReportName()

checkPermission

protected void checkPermission(Configuration c)

getBuild

protected Build getBuild(java.lang.Long id)

getConfiguration

protected Configuration getConfiguration(java.lang.String configuration)

getConfiguration

protected Configuration getConfiguration(java.lang.Long id)

getCategoryDir

protected java.io.File getCategoryDir(ReportGroup group,
                                      java.lang.Long id)

getReportDir

protected java.io.File getReportDir(ReportGroup group,
                                    java.lang.Long id,
                                    java.lang.String reportset)

buildException

protected static javax.ws.rs.WebApplicationException buildException(java.lang.String msg)

buildException

protected static javax.ws.rs.WebApplicationException buildException(int status,
                                                                    java.lang.String msg)


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.