public class CSConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VERSIONCOMPLIANCE_WGA3 |
static java.lang.String |
VERSIONCOMPLIANCE_WGA4 |
static java.lang.String |
VERSIONCOMPLIANCE_WGA41 |
static java.lang.String |
VERSIONCOMPLIANCE_WGA50 |
static java.lang.String |
VERSIONCOMPLIANCE_WGA51 |
static java.lang.String |
VERSIONCOMPLIANCE_WGA52 |
static java.lang.String |
VERSIONCOMPLIANCE_WGA53 |
static java.lang.String |
VERSIONCOMPLIANCE_WGA54 |
static java.lang.String |
VERSIONCOMPLIANCE_WGA55 |
static java.lang.String |
VERSIONCOMPLIANCE_WGA60 |
static java.lang.String |
VERSIONCOMPLIANCE_WGA61 |
static java.lang.String |
VERSIONCOMPLIANCE_WGA62 |
static java.lang.String |
VERSIONCOMPLIANCE_WGA63 |
static java.lang.String |
VERSIONCOMPLIANCE_WGA70 |
static java.lang.String |
VERSIONCOMPLIANCE_WGA71 |
static java.lang.String |
VERSIONCOMPLIANCE_WGA72 |
static java.lang.String |
VERSIONCOMPLIANCE_WGA73 |
static java.lang.String |
VERSIONCOMPLIANCE_WGA74 |
static java.lang.String |
VERSIONCOMPLIANCE_WGA75 |
Constructor and Description |
---|
CSConfig() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
determineMinimumWGAVersion(java.io.InputStream in)
Tries to determine the minimum WGA version of the given csconfig.xml data.
|
PublisherOption |
findPublisherOption(java.lang.String name) |
RemoteAction |
findRemoteAction(java.lang.String moduleName) |
int |
getAnonymousAccessLevel() |
Version |
getComplianceVersion() |
static Version |
getComplianceVersion(java.lang.String complianceString)
Returns the corresponding OpenWGA version for a given version compliance string
|
java.lang.String |
getConnectionScript() |
static java.lang.Class<? extends CSConfig> |
getCSConfigClassForCompliance(java.lang.String versionCompliance) |
static java.lang.Class<? extends CSConfig> |
getCSConfigClassForMinimumWGAVersion(Version version) |
int |
getDefaultAccessLevel() |
java.lang.String |
getDesignDefinitionFileName() |
java.util.List |
getElementMappings() |
java.util.List |
getEncoderMappings() |
java.lang.String |
getInitScript() |
java.util.List |
getJobDefinitions() |
java.util.List |
getMediaKeys() |
static Version |
getMinimumWGAVersion(CSConfig csConfig) |
PluginConfig |
getPluginConfig() |
java.util.List |
getPublisherOptions() |
java.util.List |
getRemoteActions() |
java.util.List |
getRoles() |
java.lang.String |
getVersionCompliance() |
void |
importOverlayConfig(CSConfig overlayConfig) |
void |
init() |
static CSConfig |
instantiateCSConfig(java.lang.Class<? extends CSConfig> clazz) |
static CSConfig |
load(java.io.File file) |
static CSConfig |
load(org.apache.commons.vfs2.FileObject file) |
static CSConfig |
load(java.io.InputStream in) |
static CSConfig |
load(java.io.InputStream in,
boolean forceClose) |
void |
setAnonymousAccessLevel(int anonymousAccessLevel) |
void |
setConnectionScript(java.lang.String connectionScript) |
void |
setDefaultAccessLevel(int defaultAccessLevel) |
void |
setElementMappings(java.util.List elementMappings) |
void |
setEncoderMappings(java.util.List encoderMappings) |
void |
setInitScript(java.lang.String initScript) |
void |
setJobDefinitions(java.util.List jobDefinitions) |
void |
setMediaKeys(java.util.List mediaKeys) |
void |
setPluginConfig(PluginConfig pluginConfig) |
void |
setPublisherOptions(java.util.List publisherOptions) |
void |
setRemoteActions(java.util.List remoteActions) |
void |
setRoles(java.util.List roles) |
void |
setVersionCompliance(java.lang.String versionCompliance) |
void |
write(java.io.File file) |
void |
write(org.apache.commons.vfs2.FileObject file) |
public static final java.lang.String VERSIONCOMPLIANCE_WGA3
public static final java.lang.String VERSIONCOMPLIANCE_WGA4
public static final java.lang.String VERSIONCOMPLIANCE_WGA41
public static final java.lang.String VERSIONCOMPLIANCE_WGA50
public static final java.lang.String VERSIONCOMPLIANCE_WGA51
public static final java.lang.String VERSIONCOMPLIANCE_WGA52
public static final java.lang.String VERSIONCOMPLIANCE_WGA53
public static final java.lang.String VERSIONCOMPLIANCE_WGA54
public static final java.lang.String VERSIONCOMPLIANCE_WGA55
public static final java.lang.String VERSIONCOMPLIANCE_WGA60
public static final java.lang.String VERSIONCOMPLIANCE_WGA61
public static final java.lang.String VERSIONCOMPLIANCE_WGA62
public static final java.lang.String VERSIONCOMPLIANCE_WGA63
public static final java.lang.String VERSIONCOMPLIANCE_WGA70
public static final java.lang.String VERSIONCOMPLIANCE_WGA71
public static final java.lang.String VERSIONCOMPLIANCE_WGA72
public static final java.lang.String VERSIONCOMPLIANCE_WGA73
public static final java.lang.String VERSIONCOMPLIANCE_WGA74
public static final java.lang.String VERSIONCOMPLIANCE_WGA75
public static java.lang.Class<? extends CSConfig> getCSConfigClassForCompliance(java.lang.String versionCompliance)
public static java.lang.Class<? extends CSConfig> getCSConfigClassForMinimumWGAVersion(Version version)
public static CSConfig instantiateCSConfig(java.lang.Class<? extends CSConfig> clazz)
public static CSConfig load(java.io.File file) throws java.io.IOException, InvalidCSConfigVersionException
java.io.IOException
InvalidCSConfigVersionException
public static CSConfig load(java.io.InputStream in) throws java.io.IOException, InvalidCSConfigVersionException
java.io.IOException
InvalidCSConfigVersionException
public static CSConfig load(java.io.InputStream in, boolean forceClose) throws java.io.IOException, InvalidCSConfigVersionException
java.io.IOException
InvalidCSConfigVersionException
public static CSConfig load(org.apache.commons.vfs2.FileObject file) throws java.io.IOException, InvalidCSConfigVersionException
java.io.IOException
InvalidCSConfigVersionException
public void write(java.io.File file) throws java.io.IOException
java.io.IOException
public void write(org.apache.commons.vfs2.FileObject file) throws java.io.IOException
java.io.IOException
public java.util.List getElementMappings()
public void setElementMappings(java.util.List elementMappings)
public java.util.List getEncoderMappings()
public void setEncoderMappings(java.util.List encoderMappings)
public PluginConfig getPluginConfig()
public void setPluginConfig(PluginConfig pluginConfig)
public java.util.List getPublisherOptions()
public void setPublisherOptions(java.util.List publisherOptions)
public java.util.List getRemoteActions()
public void setRemoteActions(java.util.List remoteActions)
public void init()
public java.util.List getMediaKeys()
public void setMediaKeys(java.util.List mediaKeys)
public RemoteAction findRemoteAction(java.lang.String moduleName)
public PublisherOption findPublisherOption(java.lang.String name)
public java.lang.String getInitScript()
public void setInitScript(java.lang.String initScript)
public int getAnonymousAccessLevel()
public void setAnonymousAccessLevel(int anonymousAccessLevel)
public int getDefaultAccessLevel()
public void setDefaultAccessLevel(int defaultAccessLevel)
public java.util.List getJobDefinitions()
public void setJobDefinitions(java.util.List jobDefinitions)
public java.util.List getRoles()
public void setRoles(java.util.List roles)
public java.lang.String getVersionCompliance()
public Version getComplianceVersion()
public void setVersionCompliance(java.lang.String versionCompliance)
public java.lang.String getConnectionScript()
public void setConnectionScript(java.lang.String connectionScript)
public static Version getComplianceVersion(java.lang.String complianceString)
complianceString
- public static java.lang.String determineMinimumWGAVersion(java.io.InputStream in)
in
- The data of the csconfig.xmlpublic java.lang.String getDesignDefinitionFileName()
public void importOverlayConfig(CSConfig overlayConfig)