|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ginp.config.Configuration
public class Configuration
Represents a parsed ginp.xml configuration
Field Summary | |
---|---|
static java.lang.String |
PATH_TO_CONFIG_FROM_WEBROOT
|
Constructor Summary | |
---|---|
Configuration()
Constructor |
Method Summary | |
---|---|
static java.lang.Boolean |
accessCheck(java.lang.String userName,
java.lang.String userPass)
Validate a user |
static boolean |
configOK()
|
static java.lang.String |
getCharacterEncoding()
|
static java.util.List |
getCollectionForUser(java.lang.String user)
Gets the configurations available to a particular user |
static java.lang.String |
getCollectionPageName()
This is the name of the page where the selected set of pictures are are to be displayed, as a collection of pictures. |
static java.lang.String |
getConfigfilelocation()
Returns the value of configfilelocation (path and filename) |
static java.lang.String |
getConfigfilelocationPath()
Returns the file system path of configfilelocation. |
static int |
getFilmStripThumbSize()
Get the maximum dimension of the film strip navigator thumbnail images. |
static java.lang.String |
getForcelocale()
|
static java.lang.String |
getPicturePageName()
This is the name of the page where the individial picture is to be displayed. |
static int |
getThumbSize()
Get the maximum dimension of thumbnail images. |
static void |
setAdminpassword(java.lang.String newAdminpassword)
|
static void |
setCharacterEncoding(java.lang.String newCharacterEncoding)
Sets the value of "UTF-8". |
static void |
setCollectionPageName(java.lang.String newCollectionPageName)
Sets the value of collectionPageName. |
static void |
setConfigfilelocation(javax.servlet.http.HttpServletRequest req)
Sets the value of configfilelocation. |
static void |
setConfigfilelocation(java.lang.String newConfigFile)
Sets the value of configfilelocation. |
static void |
setFilmStripThumbSize(java.lang.String newFilmStripThumbSize)
Sets the value of filmStripThumbSize. |
static void |
setForcelocale(java.lang.String newForcelocale)
Sets the value of forcelocale. |
static void |
setPicturePageName(java.lang.String newPicturePageName)
Sets the value of picturePageName. |
static void |
setThumbSize(java.lang.String newThumbSize)
Sets the value of thumbSize. |
static boolean |
useDataBase()
|
static void |
writeConfig()
Saves current settings to Disk. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PATH_TO_CONFIG_FROM_WEBROOT
Constructor Detail |
---|
public Configuration()
Method Detail |
---|
public static java.util.List getCollectionForUser(java.lang.String user)
user
- the name of the user
public static boolean useDataBase()
public static java.lang.Boolean accessCheck(java.lang.String userName, java.lang.String userPass)
userName
- usernameuserPass
- password
public static java.lang.String getForcelocale()
public static int getThumbSize()
public static int getFilmStripThumbSize()
public static java.lang.String getPicturePageName()
public static java.lang.String getCollectionPageName()
public static java.lang.String getCharacterEncoding()
public static boolean configOK()
public static java.lang.String getConfigfilelocation()
public static java.lang.String getConfigfilelocationPath()
public static void setConfigfilelocation(javax.servlet.http.HttpServletRequest req)
configfilelocation
- The value to assign configfilelocation.public static void setConfigfilelocation(java.lang.String newConfigFile)
configfilelocation
- The value to assign configfilelocation.public static void setThumbSize(java.lang.String newThumbSize)
thumbSize
- The value to assign thumbSize.public static void setFilmStripThumbSize(java.lang.String newFilmStripThumbSize)
filmStripThumbSize
- The value to assign filmStripThumbSize.public static void setPicturePageName(java.lang.String newPicturePageName)
picturePageName
- The value to assign picturePageName.public static void setCollectionPageName(java.lang.String newCollectionPageName)
collectionPageName
- The value to assign collectionPageName.public static void setForcelocale(java.lang.String newForcelocale)
forcelocale
- The value to assign forcelocale.public static void setCharacterEncoding(java.lang.String newCharacterEncoding)
"UTF-8"
- The value to assign "UTF-8".public static void setAdminpassword(java.lang.String newAdminpassword)
public static void writeConfig()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |