public class FileSystemDesignProvider extends FileSystemDesignManager implements WGADesignProvider
FileSystemDesignManager.DesignInformation, FileSystemDesignManager.FileSystemResources, FileSystemDesignManager.ModuleFile
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPTION_NO_BACKGROUND_CHANGES |
static java.lang.String |
OPTION_SYNC |
_designTypes, DIRECTORY_DIVIDER, LOGGER_DESIGNSYNC, MODE_DIRECT, MODE_FULL, MODE_VIRTUAL, OPTION_DESIGNKEY, SYNCSTATUS_MODULE
OPTION_DESIGNVARIANTS
Constructor and Description |
---|
FileSystemDesignProvider(de.innovationgate.wga.config.DesignReference ref,
WGACore core,
de.innovationgate.webgate.api.WGDatabase db,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> options) |
Modifier and Type | Method and Description |
---|---|
void |
addDesignChangeListener(de.innovationgate.webgate.api.WGDesignChangeListener changeListener) |
void |
clearCache()
Clears all design caches
|
void |
closeSession() |
de.innovationgate.webgate.api.WGDocumentCore |
createDesignDocument(int type,
java.lang.String name,
java.lang.String mediaKey) |
static void |
createDowngradeFiles(FileSystemDesignProvider originalDesignProvider,
OverlayData data,
org.apache.commons.vfs2.FileObject targetFolder,
java.lang.String targetEncoding,
org.apache.log4j.Logger log) |
void |
createDowngradeFiles(PluginDesignProvider originalDesignProvider,
OverlayData data) |
int |
designHashCode() |
static OverlayStatus |
determineOverlayStatus(FileSystemDesignProvider sourceDesignProvider,
de.innovationgate.wga.common.beans.csconfig.v1.PluginID baseId,
org.apache.commons.vfs2.FileObject targetDirectory,
java.lang.String targetEncoding,
org.apache.log4j.Logger log,
DesignFileValidator validator) |
OverlayStatus |
determineOverlayStatus(PluginDesignProvider originalDesignProvider) |
void |
dispose() |
de.innovationgate.webgate.api.WGDatabase |
getConsumerDatabase()
Returns the database that consumes the designs of this provider
|
de.innovationgate.webgate.api.WGDocumentCore |
getDesignObject(int type,
java.lang.String name,
java.lang.String strMediaKey) |
java.util.List<de.innovationgate.webgate.api.WGDocumentCore> |
getDesignObjects(int type) |
de.innovationgate.wga.config.DesignReference |
getDesignReference() |
java.lang.String |
getName() |
boolean |
isLookupVariants()
Returns if the provider is configured to lookup design variants
|
boolean |
isNoBackgroundChanges() |
boolean |
isNotifying() |
boolean |
isProviderCore(de.innovationgate.webgate.api.WGDocumentCore core) |
boolean |
isReady()
A design provider may notify via this method if the design backend is currently ready
|
boolean |
isSynchronizeAccess() |
void |
openSession(de.innovationgate.webgate.api.WGSessionContext context) |
boolean |
providesType(int type) |
void |
removeDesignChangeListener(de.innovationgate.webgate.api.WGDesignChangeListener changeListener) |
static boolean |
upgradeOverlay(FileSystemDesignProvider originalDesignProvider,
de.innovationgate.wga.common.beans.csconfig.v1.PluginID baseId,
OverlayStatus status,
org.apache.commons.vfs2.FileObject targetFolder,
java.lang.String targetEncoding,
org.apache.log4j.Logger log,
DesignFileValidator validator) |
boolean |
upgradeOverlay(PluginDesignProvider originalDesignProvider,
OverlayStatus status) |
de.innovationgate.webgate.api.WGDocumentCore |
wrapVariantCore(de.innovationgate.webgate.api.WGDocumentCore core) |
close, databaseConnected, databaseConnectionError, determineDesignEncoding, getBaseFolder, getDB, getDesignInformation, getDesignPath, getFileEncoding, getFileStandardSuffix, getJavaClassesPath, getLog, getSyncedDoctypes, getSyncInfo, getTmlFolder, getWGACore, isDirectAccessDefault, isEditable, isValidDesignFile, isValidDesignFile
public static final java.lang.String OPTION_NO_BACKGROUND_CHANGES
public static final java.lang.String OPTION_SYNC
public FileSystemDesignProvider(de.innovationgate.wga.config.DesignReference ref, WGACore core, de.innovationgate.webgate.api.WGDatabase db, java.lang.String path, java.util.Map<java.lang.String,java.lang.String> options) throws WGDesignSyncException, java.io.IOException, de.innovationgate.webgate.api.WGAPIException, java.lang.InstantiationException, java.lang.IllegalAccessException, de.innovationgate.wga.common.beans.csconfig.v1.InvalidCSConfigVersionException
WGDesignSyncException
java.io.IOException
de.innovationgate.webgate.api.WGAPIException
java.lang.InstantiationException
java.lang.IllegalAccessException
de.innovationgate.wga.common.beans.csconfig.v1.InvalidCSConfigVersionException
public boolean providesType(int type)
providesType
in interface de.innovationgate.webgate.api.WGDesignProvider
public void addDesignChangeListener(de.innovationgate.webgate.api.WGDesignChangeListener changeListener)
addDesignChangeListener
in interface de.innovationgate.webgate.api.WGDesignProvider
public de.innovationgate.webgate.api.WGDocumentCore createDesignDocument(int type, java.lang.String name, java.lang.String mediaKey) throws de.innovationgate.webgate.api.WGAuthorisationException, de.innovationgate.webgate.api.WGCreationException
createDesignDocument
in interface de.innovationgate.webgate.api.WGDesignProvider
de.innovationgate.webgate.api.WGAuthorisationException
de.innovationgate.webgate.api.WGCreationException
public void dispose()
dispose
in interface de.innovationgate.webgate.api.WGDesignProvider
public de.innovationgate.webgate.api.WGDocumentCore getDesignObject(int type, java.lang.String name, java.lang.String strMediaKey) throws de.innovationgate.webgate.api.WGBackendException
getDesignObject
in interface de.innovationgate.webgate.api.WGDesignProvider
de.innovationgate.webgate.api.WGBackendException
public void clearCache() throws de.innovationgate.webgate.api.WGException
WGADesignProvider
clearCache
in interface WGADesignProvider
de.innovationgate.webgate.api.WGException
public de.innovationgate.webgate.api.WGDocumentCore wrapVariantCore(de.innovationgate.webgate.api.WGDocumentCore core) throws de.innovationgate.webgate.api.WGAPIException
de.innovationgate.webgate.api.WGAPIException
public java.util.List<de.innovationgate.webgate.api.WGDocumentCore> getDesignObjects(int type) throws de.innovationgate.webgate.api.WGBackendException
getDesignObjects
in interface de.innovationgate.webgate.api.WGDesignProvider
de.innovationgate.webgate.api.WGBackendException
public java.lang.String getName()
getName
in interface de.innovationgate.webgate.api.WGDesignProvider
public boolean isNotifying()
isNotifying
in interface de.innovationgate.webgate.api.WGDesignProvider
public boolean isProviderCore(de.innovationgate.webgate.api.WGDocumentCore core)
isProviderCore
in interface de.innovationgate.webgate.api.WGDesignProvider
public void removeDesignChangeListener(de.innovationgate.webgate.api.WGDesignChangeListener changeListener)
removeDesignChangeListener
in interface de.innovationgate.webgate.api.WGDesignProvider
public de.innovationgate.webgate.api.WGDatabase getConsumerDatabase()
WGADesignProvider
getConsumerDatabase
in interface WGADesignProvider
public boolean isLookupVariants()
WGADesignProvider
isLookupVariants
in interface WGADesignProvider
public void closeSession()
closeSession
in interface de.innovationgate.webgate.api.WGDesignProvider
public void openSession(de.innovationgate.webgate.api.WGSessionContext context)
openSession
in interface de.innovationgate.webgate.api.WGDesignProvider
public int designHashCode()
designHashCode
in interface de.innovationgate.webgate.api.WGDesignProvider
designHashCode
in class FileSystemDesignManager
public de.innovationgate.wga.config.DesignReference getDesignReference()
public static OverlayStatus determineOverlayStatus(FileSystemDesignProvider sourceDesignProvider, de.innovationgate.wga.common.beans.csconfig.v1.PluginID baseId, org.apache.commons.vfs2.FileObject targetDirectory, java.lang.String targetEncoding, org.apache.log4j.Logger log, DesignFileValidator validator) throws java.lang.Exception
java.lang.Exception
public OverlayStatus determineOverlayStatus(PluginDesignProvider originalDesignProvider) throws java.lang.Exception
java.lang.Exception
public static void createDowngradeFiles(FileSystemDesignProvider originalDesignProvider, OverlayData data, org.apache.commons.vfs2.FileObject targetFolder, java.lang.String targetEncoding, org.apache.log4j.Logger log) throws java.lang.Exception
java.lang.Exception
public static boolean upgradeOverlay(FileSystemDesignProvider originalDesignProvider, de.innovationgate.wga.common.beans.csconfig.v1.PluginID baseId, OverlayStatus status, org.apache.commons.vfs2.FileObject targetFolder, java.lang.String targetEncoding, org.apache.log4j.Logger log, DesignFileValidator validator) throws java.lang.Exception
java.lang.Exception
public boolean upgradeOverlay(PluginDesignProvider originalDesignProvider, OverlayStatus status) throws java.lang.Exception
java.lang.Exception
public void createDowngradeFiles(PluginDesignProvider originalDesignProvider, OverlayData data) throws java.lang.Exception
java.lang.Exception
public boolean isReady()
WGADesignProvider
isReady
in interface WGADesignProvider
public boolean isSynchronizeAccess()
isSynchronizeAccess
in interface de.innovationgate.webgate.api.WGDesignProvider
public boolean isNoBackgroundChanges()