public class TemplateProject extends ProjectReference<Void>
CONFIG_FILE_NAME, REPORT_FILE_NAME
Constructor and Description |
---|
TemplateProject(File projectFolder,
String overrideProjectFile,
String projectId,
Properties defaultSettings) |
Modifier and Type | Method and Description |
---|---|
int |
getDefinedRelations() |
String |
getNotValidMessage() |
com.google.common.collect.Multimap<String,Resource> |
getResources() |
boolean |
isValid()
States if the template is valid.
|
protected void |
onFailure(Void context,
String projectId)
Called when the project failed to load in
ProjectReference.update(Object) . |
protected void |
onNotAvailable(Void context,
String projectId)
Called when the project file is not available in
ProjectReference.update(Object) . |
protected void |
onSuccess(Void context,
String projectId,
File projectFile,
Project project,
ReportFile reportFile)
Called when the project was successfully loaded in
ProjectReference.update(Object) . |
forceUpdate, getConfig, getLoadReportFile, getProject, getProjectFile, getProjectFolder, getProjectInfo, getSupportedExtensions, isForceClearReports, loadProjectInfo, setProject, update
public TemplateProject(File projectFolder, String overrideProjectFile, String projectId, Properties defaultSettings) throws IOException
public com.google.common.collect.Multimap<String,Resource> getResources()
public boolean isValid()
true
if the template is valid, false
otherwisepublic String getNotValidMessage()
public int getDefinedRelations()
protected void onSuccess(Void context, String projectId, File projectFile, Project project, ReportFile reportFile)
ProjectReference
ProjectReference.update(Object)
.onSuccess
in class ProjectReference<Void>
context
- the update contextprojectId
- the project identifierprojectFile
- the project fileproject
- the loaded projectreportFile
- the report file to publish any additional reports toprotected void onFailure(Void context, String projectId)
ProjectReference
ProjectReference.update(Object)
.onFailure
in class ProjectReference<Void>
context
- the update contextprojectId
- the project identifierprotected void onNotAvailable(Void context, String projectId)
ProjectReference
ProjectReference.update(Object)
.onNotAvailable
in class ProjectReference<Void>
context
- the update contextprojectId
- the project identifierBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a