de.hs_rm.cs.lecturenotes.server.configuration
Class ServerConfigModel

java.lang.Object
  extended by de.hs_rm.cs.lecturenotes.server.configuration.ServerConfigModel

public final class ServerConfigModel
extends java.lang.Object

Server Config Model. Contains methods to access the flexible configuration for system settings in the web.xml file that is in the folder /WEB-INF.

Version:
$LastChangedRevision: 256 $
Author:
Enrico Homann

Field Summary
static java.lang.String WORKDIR_RELATIVE
          Relative work directory to store generated files.
 
Method Summary
static java.lang.String getWebXMLConfigValue(javax.servlet.ServletContext cntxt, ServerConfigKeyEnum key)
          Will return the the stored web.xml value for the given key.
static boolean hasPolicyMediaUploadForOwnerOnly(javax.servlet.ServletContext cntxt)
          Will return false if the policy WEBXML_CONTEXTPARAM_ALLOW_LECTURE_MEDIAUPLOAD_FOR_OWNERONLY in web.xml was set to false.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WORKDIR_RELATIVE

public static final java.lang.String WORKDIR_RELATIVE
Relative work directory to store generated files.

See Also:
Constant Field Values
Method Detail

getWebXMLConfigValue

public static java.lang.String getWebXMLConfigValue(javax.servlet.ServletContext cntxt,
                                                    ServerConfigKeyEnum key)
Will return the the stored web.xml value for the given key.

Parameters:
cntxt - ServletContext
key - ServerConfigKeyEnum
Returns:
String

hasPolicyMediaUploadForOwnerOnly

public static boolean hasPolicyMediaUploadForOwnerOnly(javax.servlet.ServletContext cntxt)
Will return false if the policy WEBXML_CONTEXTPARAM_ALLOW_LECTURE_MEDIAUPLOAD_FOR_OWNERONLY in web.xml was set to false.

Parameters:
cntxt - ServletContext
Returns:
boolean