org.gcube.vremanagement.softwarerepository.report
Class ReportGenerator
java.lang.Object
org.gcube.vremanagement.softwarerepository.report.ReportGenerator
- Direct Known Subclasses:
- GCUBEKXMLReportGenerator
public abstract class ReportGenerator
- extends java.lang.Object
- Author:
- Luca Frosini (ISTI-CNR)
|
Method Summary |
void |
addDescription(java.lang.String description,
Status status)
|
abstract void |
addElement(Status status,
java.lang.String content)
|
abstract void |
addElement(java.lang.String xPath,
Status status,
java.lang.String content)
|
abstract void |
addElement(java.lang.String name,
java.lang.String content,
Status status)
|
abstract void |
addElement(java.lang.String name,
java.lang.String xPath,
Status status,
java.lang.String content)
|
abstract void |
addElement(java.lang.String name,
java.lang.String xPath,
java.lang.String content)
|
abstract void |
addEndTime(long endtime)
|
void |
addGroupID(java.lang.String groupID,
Status status,
GroupIDManager... groupIDManager)
|
abstract void |
addOperation(Operation operation)
|
void |
addServiceID(java.lang.String serviceID,
GroupIDManager... groupIDManager)
|
abstract void |
addStartTime(long startime)
|
abstract void |
addTimeStamp(long timestamp)
|
abstract void |
addURL(java.lang.String url)
|
void |
generateMinimalReport(java.lang.String archiveURL,
java.lang.String message,
Status status)
|
java.lang.String |
getReportSummary()
|
Status |
getValidationStatus()
|
abstract void |
publishReport()
Publish Report on HTTP server |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getValidationStatus
public Status getValidationStatus()
- Returns:
- status of validation
generateMinimalReport
public void generateMinimalReport(java.lang.String archiveURL,
java.lang.String message,
Status status)
throws java.lang.Exception
- Parameters:
archiveURL - Software Archive URLmessage - messagestatus - Status
- Throws:
java.lang.Exception - if fails to create the Report
addURL
public abstract void addURL(java.lang.String url)
throws java.lang.IllegalArgumentException
- Parameters:
url - URL
- Throws:
java.lang.IllegalArgumentException - if the arguments is not valid
addStartTime
public abstract void addStartTime(long startime)
throws java.lang.Exception
- Parameters:
startime - Start Time
- Throws:
java.lang.Exception - if fails
addEndTime
public abstract void addEndTime(long endtime)
throws java.lang.Exception
- Parameters:
endtime - END Time
- Throws:
java.lang.Exception - if fails
addTimeStamp
public abstract void addTimeStamp(long timestamp)
throws java.lang.Exception
- Parameters:
timestamp - TimeStamp
- Throws:
java.lang.Exception - if fails
addGroupID
public void addGroupID(java.lang.String groupID,
Status status,
GroupIDManager... groupIDManager)
throws java.lang.IllegalArgumentException
- Parameters:
groupID - Group IDstatus - status informationgroupIDManager - GroupIDManager
- Throws:
java.lang.IllegalArgumentException - if the arguments is not valid
addServiceID
public void addServiceID(java.lang.String serviceID,
GroupIDManager... groupIDManager)
throws java.lang.IllegalArgumentException
- Parameters:
serviceID - ServiceIDgroupIDManager - GroupIDManager
- Throws:
java.lang.IllegalArgumentException - if the arguments is not valid
addDescription
public void addDescription(java.lang.String description,
Status status)
throws java.lang.IllegalArgumentException
- Parameters:
description - Descriptionstatus - status information
- Throws:
java.lang.IllegalArgumentException - if the arguments is not valid
addOperation
public abstract void addOperation(Operation operation)
throws java.lang.IllegalArgumentException
- Parameters:
operation - Operation
- Throws:
java.lang.IllegalArgumentException - if the arguments is not valid
addElement
public abstract void addElement(java.lang.String name,
java.lang.String xPath,
Status status,
java.lang.String content)
throws java.lang.IllegalArgumentException
- Parameters:
name - tagNamexPath - Source tag for creating this Sectionstatus - status informationcontent - content
- Throws:
java.lang.IllegalArgumentException - if the arguments is not valid
addElement
public abstract void addElement(java.lang.String name,
java.lang.String xPath,
java.lang.String content)
throws java.lang.IllegalArgumentException
- Parameters:
name - tagNamexPath - Source tag for creating this Sectioncontent - content
- Throws:
java.lang.IllegalArgumentException - if the arguments is not valid
addElement
public abstract void addElement(java.lang.String xPath,
Status status,
java.lang.String content)
throws java.lang.IllegalArgumentException
- Parameters:
xPath - Source tag for creating this Sectionstatus - status informationcontent - content
- Throws:
java.lang.IllegalArgumentException - if the arguments is not valid
addElement
public abstract void addElement(java.lang.String name,
java.lang.String content,
Status status)
throws java.lang.IllegalArgumentException
- Parameters:
name - tagNamestatus - status informationcontent - content
- Throws:
java.lang.IllegalArgumentException - if the arguments is not valid
addElement
public abstract void addElement(Status status,
java.lang.String content)
throws java.lang.IllegalArgumentException
- Parameters:
status - status informationcontent - content
- Throws:
java.lang.IllegalArgumentException - if the arguments is not valid
getReportSummary
public java.lang.String getReportSummary()
throws java.lang.Exception
- Returns:
- the report summary
- Throws:
java.lang.Exception - if fails
publishReport
public abstract void publishReport()
throws java.lang.Exception
- Publish Report on HTTP server
- Throws:
java.lang.Exception - if fails