public class DesignFileDocument extends AbstractDesignFile implements de.innovationgate.webgate.api.WGDocumentCore
Modifier and Type | Class and Description |
---|---|
static class |
DesignFileDocument.Data |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXTDATA_POSTPROCESSOR |
FILECONTAINER_METADATA_FILENAME, LOG
Constructor and Description |
---|
DesignFileDocument(FileSystemDesignProvider fileSystemDesignProvider,
DesignFileDocument.Data cacheData) |
Modifier and Type | Method and Description |
---|---|
boolean |
attachFile(java.io.File file) |
de.innovationgate.webgate.api.WGFileDerivateMetaData |
createFileDerivate(java.lang.String originalFileName,
java.lang.String creator,
java.lang.String derivateName,
java.io.InputStream in,
java.util.Map<java.lang.String,java.lang.Object> customMdFields) |
void |
dispose() |
java.lang.Object |
evaluateExpression(java.lang.String expression) |
java.util.Date |
getCreated() |
java.lang.Object |
getExtensionData(java.lang.String strName) |
java.util.List |
getExtensionDataNames() |
java.lang.Object |
getFastAccessKey() |
java.io.InputStream |
getFileData(java.lang.String strFile) |
java.io.InputStream |
getFileDerivateData(java.lang.String id) |
de.innovationgate.webgate.api.WGFileDerivateMetaData |
getFileDerivateMetaData(java.lang.String id) |
java.util.List<de.innovationgate.webgate.api.WGFileDerivateMetaData> |
getFileDerivates(java.lang.String strFile) |
de.innovationgate.webgate.api.WGFileMetaData |
getFileMetaData(java.lang.String strFile) |
java.util.List |
getFileNames() |
int |
getFileSize(java.lang.String strFile) |
java.util.List |
getItemNames() |
java.lang.Object |
getItemValue(java.lang.String strName) |
java.util.Date |
getLastModified() |
java.util.Iterator<de.innovationgate.webgate.api.WGUpdateLog> |
getLastUpdates() |
java.lang.Object |
getMetaData(java.lang.String type) |
java.lang.Object |
getNativeObject() |
java.lang.String |
getOriginDatabase() |
de.innovationgate.webgate.api.WGDocumentCore |
getRelation(java.lang.String name) |
de.innovationgate.webgate.api.WGRelationData |
getRelationData(java.lang.String name) |
java.util.List |
getRelationNames() |
java.util.List<java.lang.String> |
getRelationNamesOfGroup(java.lang.String group,
de.innovationgate.webgate.api.WGColumnSet order) |
boolean |
hasFile(java.lang.String file) |
boolean |
hasFileMetadata() |
boolean |
hasItem(java.lang.String strName) |
boolean |
isDataCacheable() |
boolean |
isDeleted() |
boolean |
isSaved() |
boolean |
isTemporary() |
void |
markFileMetaDataModified(de.innovationgate.webgate.api.WGFileMetaData md) |
java.lang.String |
performDesignConversionPreProcessing(java.lang.String code,
java.util.Map<java.lang.String,java.lang.Object> extData) |
de.innovationgate.webgate.api.WGDatabaseRevision |
remove() |
void |
removeExtensionData(java.lang.String strName) |
boolean |
removeFile(java.lang.String name) |
void |
removeFileDerivate(java.lang.String id) |
boolean |
removeItem(java.lang.String Name) |
de.innovationgate.webgate.api.WGDocumentCore |
removeRelation(java.lang.String name) |
void |
renameFile(java.lang.String oldFileName,
java.lang.String newFileName) |
de.innovationgate.webgate.api.WGExtensionDataContainer |
retrieveFileExtensionDataHandler(java.lang.String strFile) |
de.innovationgate.webgate.api.WGDatabaseRevision |
save(java.util.Date lastModified) |
boolean |
setItemValue(java.lang.String strName,
java.lang.Object value) |
boolean |
setMetaData(java.lang.String name,
java.lang.Object value) |
de.innovationgate.webgate.api.WGDocumentCore |
setRelation(java.lang.String name,
de.innovationgate.webgate.api.WGDocumentCore target) |
de.innovationgate.webgate.api.WGDocumentCore |
setRelation(de.innovationgate.webgate.api.WGRelationData relAddress) |
void |
setWGDocument(de.innovationgate.webgate.api.WGDocument doc) |
void |
writeExtensionData(java.lang.String strName,
java.lang.Object value) |
void |
writeFileDerivateMetaData(de.innovationgate.webgate.api.WGFileDerivateMetaData md) |
getCodeFile, getCodeFilePath, getMetadataFile, getSuffix, getType, processDesignHeader
public static final java.lang.String EXTDATA_POSTPROCESSOR
public DesignFileDocument(FileSystemDesignProvider fileSystemDesignProvider, DesignFileDocument.Data cacheData) throws org.apache.commons.vfs2.FileSystemException, WGDesignSyncException
org.apache.commons.vfs2.FileSystemException
WGDesignSyncException
public boolean attachFile(java.io.File file) throws de.innovationgate.webgate.api.WGAPIException
attachFile
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public void dispose()
dispose
in interface de.innovationgate.webgate.api.WGDocumentCore
public java.lang.Object evaluateExpression(java.lang.String expression) throws de.innovationgate.webgate.api.WGExpressionException, de.innovationgate.webgate.api.WGBackendException
evaluateExpression
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGExpressionException
de.innovationgate.webgate.api.WGBackendException
public java.util.Date getCreated() throws de.innovationgate.webgate.api.WGAPIException
getCreated
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public java.lang.Object getFastAccessKey() throws de.innovationgate.webgate.api.WGBackendException
getFastAccessKey
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGBackendException
public java.io.InputStream getFileData(java.lang.String strFile) throws de.innovationgate.webgate.api.WGAPIException
getFileData
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public de.innovationgate.webgate.api.WGFileMetaData getFileMetaData(java.lang.String strFile) throws de.innovationgate.webgate.api.WGAPIException
getFileMetaData
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public java.util.List getFileNames() throws de.innovationgate.webgate.api.WGBackendException
getFileNames
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGBackendException
public int getFileSize(java.lang.String strFile) throws de.innovationgate.webgate.api.WGAPIException
getFileSize
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public java.util.List getItemNames() throws de.innovationgate.webgate.api.WGBackendException
getItemNames
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGBackendException
public java.lang.Object getItemValue(java.lang.String strName) throws de.innovationgate.webgate.api.WGAPIException
getItemValue
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public java.util.Date getLastModified() throws de.innovationgate.webgate.api.WGAPIException
getLastModified
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public java.lang.Object getMetaData(java.lang.String type) throws de.innovationgate.webgate.api.WGAPIException
getMetaData
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public java.lang.String performDesignConversionPreProcessing(java.lang.String code, java.util.Map<java.lang.String,java.lang.Object> extData) throws de.innovationgate.wga.modules.ModuleDependencyException, de.innovationgate.wga.modules.ModuleInstantiationException, de.innovationgate.webgate.api.WGException, org.apache.commons.vfs2.FileSystemException
de.innovationgate.wga.modules.ModuleDependencyException
de.innovationgate.wga.modules.ModuleInstantiationException
de.innovationgate.webgate.api.WGException
org.apache.commons.vfs2.FileSystemException
public java.lang.Object getNativeObject() throws de.innovationgate.webgate.api.WGBackendException
getNativeObject
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGBackendException
public java.lang.String getOriginDatabase()
getOriginDatabase
in interface de.innovationgate.webgate.api.WGDocumentCore
public de.innovationgate.webgate.api.WGDocumentCore getRelation(java.lang.String name) throws de.innovationgate.webgate.api.WGAPIException
getRelation
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public java.util.List getRelationNames() throws de.innovationgate.webgate.api.WGAPIException
getRelationNames
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public boolean hasItem(java.lang.String strName) throws de.innovationgate.webgate.api.WGBackendException
hasItem
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGBackendException
public boolean isDataCacheable()
isDataCacheable
in interface de.innovationgate.webgate.api.WGDocumentCore
public boolean isDeleted() throws de.innovationgate.webgate.api.WGAPIException
isDeleted
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public boolean isSaved() throws de.innovationgate.webgate.api.WGAPIException
isSaved
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public boolean isTemporary() throws de.innovationgate.webgate.api.WGAPIException
isTemporary
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public de.innovationgate.webgate.api.WGDatabaseRevision remove() throws de.innovationgate.webgate.api.WGAPIException
remove
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public boolean removeFile(java.lang.String name) throws de.innovationgate.webgate.api.WGAPIException
removeFile
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public boolean removeItem(java.lang.String Name) throws de.innovationgate.webgate.api.WGAPIException
removeItem
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public de.innovationgate.webgate.api.WGDocumentCore removeRelation(java.lang.String name) throws de.innovationgate.webgate.api.WGAPIException
removeRelation
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public void renameFile(java.lang.String oldFileName, java.lang.String newFileName) throws de.innovationgate.webgate.api.WGAPIException
renameFile
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public de.innovationgate.webgate.api.WGDatabaseRevision save(java.util.Date lastModified) throws de.innovationgate.webgate.api.WGAPIException
save
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public boolean setItemValue(java.lang.String strName, java.lang.Object value) throws de.innovationgate.webgate.api.WGAPIException
setItemValue
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public boolean setMetaData(java.lang.String name, java.lang.Object value) throws de.innovationgate.webgate.api.WGAPIException
setMetaData
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public de.innovationgate.webgate.api.WGDocumentCore setRelation(java.lang.String name, de.innovationgate.webgate.api.WGDocumentCore target) throws de.innovationgate.webgate.api.WGAPIException
de.innovationgate.webgate.api.WGAPIException
public void setWGDocument(de.innovationgate.webgate.api.WGDocument doc)
setWGDocument
in interface de.innovationgate.webgate.api.WGDocumentCore
public boolean hasFileMetadata() throws de.innovationgate.webgate.api.WGAPIException
hasFileMetadata
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public boolean hasFile(java.lang.String file) throws de.innovationgate.webgate.api.WGBackendException
hasFile
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGBackendException
public de.innovationgate.webgate.api.WGRelationData getRelationData(java.lang.String name) throws de.innovationgate.webgate.api.WGAPIException
getRelationData
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public de.innovationgate.webgate.api.WGDocumentCore setRelation(de.innovationgate.webgate.api.WGRelationData relAddress) throws de.innovationgate.webgate.api.WGAPIException
setRelation
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public java.lang.Object getExtensionData(java.lang.String strName) throws de.innovationgate.webgate.api.WGAPIException
getExtensionData
in interface de.innovationgate.webgate.api.WGExtensionDataContainer
de.innovationgate.webgate.api.WGAPIException
public java.util.List getExtensionDataNames() throws de.innovationgate.webgate.api.WGAPIException
getExtensionDataNames
in interface de.innovationgate.webgate.api.WGExtensionDataContainer
de.innovationgate.webgate.api.WGAPIException
public void removeExtensionData(java.lang.String strName) throws de.innovationgate.webgate.api.WGAPIException
removeExtensionData
in interface de.innovationgate.webgate.api.WGExtensionDataContainer
de.innovationgate.webgate.api.WGAPIException
public void writeExtensionData(java.lang.String strName, java.lang.Object value) throws de.innovationgate.webgate.api.WGAPIException
writeExtensionData
in interface de.innovationgate.webgate.api.WGExtensionDataContainer
de.innovationgate.webgate.api.WGAPIException
public java.util.List<java.lang.String> getRelationNamesOfGroup(java.lang.String group, de.innovationgate.webgate.api.WGColumnSet order) throws de.innovationgate.webgate.api.WGBackendException
getRelationNamesOfGroup
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGBackendException
public de.innovationgate.webgate.api.WGExtensionDataContainer retrieveFileExtensionDataHandler(java.lang.String strFile) throws de.innovationgate.webgate.api.WGAPIException
retrieveFileExtensionDataHandler
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public java.util.List<de.innovationgate.webgate.api.WGFileDerivateMetaData> getFileDerivates(java.lang.String strFile) throws de.innovationgate.webgate.api.WGAPIException
getFileDerivates
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public void markFileMetaDataModified(de.innovationgate.webgate.api.WGFileMetaData md) throws de.innovationgate.webgate.api.WGAPIException
markFileMetaDataModified
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public de.innovationgate.webgate.api.WGFileDerivateMetaData createFileDerivate(java.lang.String originalFileName, java.lang.String creator, java.lang.String derivateName, java.io.InputStream in, java.util.Map<java.lang.String,java.lang.Object> customMdFields) throws de.innovationgate.webgate.api.WGAPIException, de.innovationgate.webgate.api.WGNotSupportedException
createFileDerivate
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
de.innovationgate.webgate.api.WGNotSupportedException
public void removeFileDerivate(java.lang.String id) throws de.innovationgate.webgate.api.WGAPIException
removeFileDerivate
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public de.innovationgate.webgate.api.WGFileDerivateMetaData getFileDerivateMetaData(java.lang.String id) throws de.innovationgate.webgate.api.WGAPIException
getFileDerivateMetaData
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public void writeFileDerivateMetaData(de.innovationgate.webgate.api.WGFileDerivateMetaData md) throws de.innovationgate.webgate.api.WGAPIException, de.innovationgate.webgate.api.WGNotSupportedException
writeFileDerivateMetaData
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
de.innovationgate.webgate.api.WGNotSupportedException
public java.io.InputStream getFileDerivateData(java.lang.String id) throws de.innovationgate.webgate.api.WGAPIException
getFileDerivateData
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException
public java.util.Iterator<de.innovationgate.webgate.api.WGUpdateLog> getLastUpdates() throws de.innovationgate.webgate.api.WGAPIException
getLastUpdates
in interface de.innovationgate.webgate.api.WGDocumentCore
de.innovationgate.webgate.api.WGAPIException