public class ExportManifest extends Object
Constructor and Description |
---|
ExportManifest() |
ExportManifest(ExportManifestDto exportManifestDto) |
Modifier and Type | Method and Description |
---|---|
void |
add(File file,
String userId,
String projectId,
Boolean isFolder,
Boolean isHidden) |
void |
add(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile,
org.pentaho.platform.api.repository2.unified.RepositoryFileAcl repositoryFileAcl) |
void |
addDatasource(org.pentaho.database.model.DatabaseConnection connection) |
void |
addMetadata(ExportManifestMetadata metadata) |
void |
addMondrian(ExportManifestMondrian mondrian) |
void |
addSchedule(JobScheduleRequest schedule) |
ExportManifestEntity |
createExportManifestEntry()
Factory method to deliver one ExportManifestEntity.
|
ExportManifestDto.ExportManifestInformation |
createExportManifestInformation() |
static ExportManifest |
fromXml(ByteArrayInputStream input) |
List<org.pentaho.database.model.DatabaseConnection> |
getDatasourceList() |
HashMap<String,ExportManifestEntity> |
getExportManifestEntities()
Return entire map of export manifest entities
|
ExportManifestEntity |
getExportManifestEntity(String path) |
ExportManifestDto.ExportManifestInformation |
getManifestInformation() |
List<ExportManifestMetadata> |
getMetadataList() |
List<ExportManifestMondrian> |
getMondrianList() |
List<JobScheduleRequest> |
getScheduleList() |
boolean |
isValid() |
void |
setManifestInformation(ExportManifestDto.ExportManifestInformation manifestInformation) |
void |
toXml(OutputStream outputStream)
Marshals the manifest object into xml on the given output stream
|
String |
toXmlString() |
public ExportManifest()
public ExportManifest(ExportManifestDto exportManifestDto)
public void add(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile, org.pentaho.platform.api.repository2.unified.RepositoryFileAcl repositoryFileAcl) throws ExportManifestFormatException
repositoryFile
- repositoryFileAcl
- ExportManifestFormatException
- if the RepositoryFile path does not start with the manifest's rootFolder of manifest ispublic void add(File file, String userId, String projectId, Boolean isFolder, Boolean isHidden) throws ExportManifestFormatException
ExportManifestFormatException
public HashMap<String,ExportManifestEntity> getExportManifestEntities()
public ExportManifestEntity getExportManifestEntity(String path)
public void toXml(OutputStream outputStream) throws JAXBException, ExportManifestFormatException
outputStream
- JAXBException
ExportManifestFormatException
public String toXmlString() throws JAXBException
JAXBException
public static ExportManifest fromXml(ByteArrayInputStream input) throws JAXBException
JAXBException
public ExportManifestEntity createExportManifestEntry()
public boolean isValid()
public ExportManifestDto.ExportManifestInformation getManifestInformation()
public void setManifestInformation(ExportManifestDto.ExportManifestInformation manifestInformation)
manifestInformation
- the manifestInformation to setpublic ExportManifestDto.ExportManifestInformation createExportManifestInformation()
public void addMetadata(ExportManifestMetadata metadata)
public void addMondrian(ExportManifestMondrian mondrian)
public void addSchedule(JobScheduleRequest schedule)
public void addDatasource(org.pentaho.database.model.DatabaseConnection connection)
public List<ExportManifestMetadata> getMetadataList()
public List<ExportManifestMondrian> getMondrianList()
public List<JobScheduleRequest> getScheduleList()
public List<org.pentaho.database.model.DatabaseConnection> getDatasourceList()