|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.bejug.javacareers.jobs.view.jsf.util.Utils
| Field Summary | |
static java.lang.String |
ROLE_ADMIN
String representing administrator role. |
static java.lang.String |
ROLE_USER
String representing user role. |
static java.lang.String |
RSSFEEDER
the organisation and username used by the RSS feeder. |
| Fields inherited from interface org.bejug.javacareers.common.view.jsf.constants.JSFConstants |
COLLAPSE_COMMENTS, CURRENT_ITEM, ERROR_CONTROL_FLOW, GO_ERROR, GO_HOME, GO_ITEMS, GO_JOB_DETAILS, GO_JOBS |
| Constructor Summary | |
Utils()
|
|
| Method Summary | |
static void |
createValueBinding(org.bejug.javacareers.jobs.model.Item item)
Bind a item instance to a variable name |
org.bejug.javacareers.jobs.service.AdminService |
getAdminService()
|
static javax.faces.application.Application |
getApplication()
Retrieve the current Faces application. |
static java.lang.Object |
getBinding(java.lang.String scope,
java.lang.String key)
Get the value of a binding on a certain scope e.g. |
java.util.List |
getCountryItems()
Retrieve the list of countries for display in a popup. |
protected static java.lang.ClassLoader |
getCurrentClassLoader(java.lang.Object defaultObject)
|
static javax.faces.context.ExternalContext |
getExternalContext()
|
static javax.faces.context.FacesContext |
getFacesContext()
Retrieve the current Faces context. |
static java.lang.String |
getLocale()
Retrieve the locale as string for the current view. |
static java.util.Locale |
getLocaleByName(java.lang.String name)
Retrieve the locale object by specifying the 2-letter ISO language code or the combination of the 2-letter ISO language code + 3-letter country code. |
java.util.List |
getLocations()
|
static java.lang.String |
getMessage(java.lang.String id)
|
java.util.ResourceBundle |
getMessageBundle()
Get the bundle as configured in the Faces configuration. |
java.util.List |
getRegionItems()
Retrieve the list of region types for display in a popup. |
java.util.List |
getRoleItems()
|
java.util.List |
getSalutationItems()
Retrieve the list of salutations to use for this region of the world. |
static java.lang.String |
getServletContextRoot()
|
static javax.servlet.http.HttpSession |
getSession()
|
java.util.List |
getSupportedLocaleItems()
Retrieve the list of locales supported by the Faces application. |
java.util.List |
getUserTypes()
|
static javax.faces.el.VariableResolver |
getVariableResolver()
|
static void |
redirectToLogin()
redirect to the login page |
static java.lang.Object |
resolveVariable(java.lang.String variable)
|
static void |
saveBinding(java.lang.String scope,
java.lang.String key,
java.lang.Object value)
Store an object in a binding on a certain scope. |
void |
setAdminService(org.bejug.javacareers.jobs.service.AdminService adminService)
|
static void |
setDefaultTargetUrl(java.lang.String url)
Change the default target url. |
| 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 ROLE_ADMIN
public static final java.lang.String ROLE_USER
public static final java.lang.String RSSFEEDER
| Constructor Detail |
public Utils()
| Method Detail |
public java.util.ResourceBundle getMessageBundle()
public java.util.List getLocations()
public java.util.List getRegionItems()
public java.util.List getCountryItems()
public java.util.List getUserTypes()
public java.util.List getSalutationItems()
public java.util.List getSupportedLocaleItems()
public static java.util.Locale getLocaleByName(java.lang.String name)
name - the locale name
protected static java.lang.ClassLoader getCurrentClassLoader(java.lang.Object defaultObject)
defaultObject - Object.
public static javax.servlet.http.HttpSession getSession()
public static javax.faces.context.FacesContext getFacesContext()
public static javax.faces.context.ExternalContext getExternalContext()
public static javax.faces.application.Application getApplication()
public static java.lang.String getLocale()
public static java.lang.String getServletContextRoot()
public static java.lang.String getMessage(java.lang.String id)
id - String
public java.util.List getRoleItems()
public static void createValueBinding(org.bejug.javacareers.jobs.model.Item item)
item - The Item to bindpublic static java.lang.Object resolveVariable(java.lang.String variable)
variable - The variable to resolve
public static void setDefaultTargetUrl(java.lang.String url)
url - The default target urlpublic static void redirectToLogin()
public static javax.faces.el.VariableResolver getVariableResolver()
public org.bejug.javacareers.jobs.service.AdminService getAdminService()
public void setAdminService(org.bejug.javacareers.jobs.service.AdminService adminService)
adminService - The adminservice to set.
public static void saveBinding(java.lang.String scope,
java.lang.String key,
java.lang.Object value)
scope - the scope for the binding.key - the key for the binding.value - the object to store in the binding.
public static java.lang.Object getBinding(java.lang.String scope,
java.lang.String key)
scope - the scope of the binding.key - the key of the binding.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||