|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.config.ConfigWebUtil
public final class ConfigWebUtil
Constructor Summary | |
---|---|
ConfigWebUtil()
|
Method Summary | |
---|---|
static void |
checkGeneralReadAccess(ConfigImpl config,
String password)
|
static void |
checkGeneralWriteAccess(ConfigImpl config,
String password)
|
static void |
checkPassword(ConfigImpl config,
String type,
String password)
|
static String |
createMD5FromResource(Resource resource)
|
static Resource |
getExistingResource(javax.servlet.ServletContext sc,
String strDir,
String defaultDir,
Resource configDir,
short type,
ConfigImpl config)
get only a existing file, dont create it |
static Resource |
getFile(Config config,
Resource directory,
String path,
short type)
touch a file object by the string definition |
static Resource |
getFile(Resource file,
short type)
|
static Object |
getIdMapping(Mapping m)
|
static LogAndSource |
getLogAndSource(ConfigServer configServer,
Config config,
String strLogger,
boolean hasAccess,
int logLevel)
loads log |
static boolean |
hasAccess(Config config,
int type)
has access checks if config object has access to given type |
static String |
inspectTemplate(short s,
String defaultValue)
|
static short |
inspectTemplate(String str,
short defaultValue)
|
static boolean |
isDirectory(Resource directory)
checks if file is a directory or not, if directory doesn't exist, it will be created |
static boolean |
isFile(Resource file)
checks if file is a file or not, if file doesn't exist, it will be created |
static ApplicationListener |
loadListener(String type,
ApplicationListener defaultValue)
|
static String |
replacePlaceholder(String str,
Config config)
|
static int |
toListenerMode(String strListenerMode,
int defaultValue)
|
static String |
translateOldPath(String path)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigWebUtil()
Method Detail |
---|
public static Resource getFile(Config config, Resource directory, String path, short type)
config
- directory
- path
- type
-
public static String replacePlaceholder(String str, Config config)
public static Resource getExistingResource(javax.servlet.ServletContext sc, String strDir, String defaultDir, Resource configDir, short type, ConfigImpl config)
sc
- strDir
- defaultDir
- configDir
- type
- config
-
public static Resource getFile(Resource file, short type)
file
- type
- (FileUtil.TYPE_X)
public static boolean isDirectory(Resource directory)
directory
-
public static boolean isFile(Resource file)
file
-
public static boolean hasAccess(Config config, int type)
config
- type
-
public static LogAndSource getLogAndSource(ConfigServer configServer, Config config, String strLogger, boolean hasAccess, int logLevel) throws IOException
configServer
- config
- strLogger
- hasAccess
- logLevel
-
IOException
public static String translateOldPath(String path)
public static Object getIdMapping(Mapping m)
public static void checkGeneralReadAccess(ConfigImpl config, String password) throws SecurityException
SecurityException
public static void checkGeneralWriteAccess(ConfigImpl config, String password) throws SecurityException
SecurityException
public static void checkPassword(ConfigImpl config, String type, String password) throws SecurityException
SecurityException
public static String createMD5FromResource(Resource resource) throws IOException
IOException
public static int toListenerMode(String strListenerMode, int defaultValue)
public static ApplicationListener loadListener(String type, ApplicationListener defaultValue)
public static short inspectTemplate(String str, short defaultValue)
public static String inspectTemplate(short s, String defaultValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |