public class Utils
extends java.lang.Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
checkUpdateURI(java.lang.String updateURI,
java.lang.String info)
Checks the update URI.
|
static int |
getFirstDayOfWeek()
Returns the first day of the week, or -1 if no defined by the application.
|
static int |
getFirstDayOfWeek(Session sess)
Returns the first day of the week of the given session, or -1 if no defined by the application.
|
static void |
updateDebugJS(WebApp wapp,
boolean debug)
Update the status of debug-js.
|
public static void updateDebugJS(WebApp wapp, boolean debug)
Configuration.setDebugJS(boolean)
to change the loading of JavaScript files dynamically.public static final int getFirstDayOfWeek()
getFirstDayOfWeek(Sessions.getCurrent())
.public static final int getFirstDayOfWeek(Session sess)
Calendar.getFirstDayOfWeek()
.
Attributes.PREFERRED_FIRST_DAY_OF_WEEK
Attributes.PREFERRED_FIRST_DAY_OF_WEEK
Attributes.PREFERRED_FIRST_DAY_OF_WEEK
sess
- the session to look at. Ignored if null.public static final java.lang.String checkUpdateURI(java.lang.String updateURI, java.lang.String info) throws javax.servlet.ServletException
updateURI
- the update URI to be checked.info
- the info to show if updateURI is incorrect.javax.servlet.ServletException
- if updateURI is incorrect.Copyright © 2005-2018 Potix Corporation. All Rights Reserved.