@UrlBinding(value="/app/{name}/v{version}")
@StrictBinding
public class ApplicationActionBean
extends Object
implements net.sourceforge.stripes.action.ActionBean
| Constructor and Description |
|---|
ApplicationActionBean() |
| Modifier and Type | Method and Description |
|---|---|
static net.sourceforge.stripes.action.Resolution |
checkRestriction(net.sourceforge.stripes.action.ActionBeanContext context,
Application application,
javax.persistence.EntityManager em) |
String |
getAppConfigJSON() |
Application |
getApplication() |
String |
getComponentSourceHTML() |
net.sourceforge.stripes.action.ActionBeanContext |
getContext() |
HashMap |
getGlobalLayout() |
String |
getLoginUrl() |
String |
getName() |
static int |
getRolesCachekey(javax.servlet.http.HttpServletRequest request)
Build a hash key to make the single component source for all components
cacheable but updateable when the roles of the user change.
|
org.json.JSONObject |
getUser() |
String |
getVersion() |
String |
getViewerType() |
boolean |
isDebug() |
boolean |
isUnknown() |
net.sourceforge.stripes.action.Resolution |
retrieveCache() |
net.sourceforge.stripes.action.Resolution |
saveCache() |
void |
setAppConfigJSON(String appConfigJSON) |
void |
setApplication(Application application) |
void |
setComponentSourceHTML(String componentSourceHTML) |
void |
setContext(net.sourceforge.stripes.action.ActionBeanContext context) |
void |
setDebug(boolean debug) |
void |
setGlobalLayout(HashMap globalLayout) |
void |
setLoginUrl(String loginUrl) |
void |
setName(String name) |
void |
setUnknown(boolean unknown) |
void |
setUser(org.json.JSONObject user) |
void |
setVersion(String version) |
void |
setViewerType(String viewerType) |
net.sourceforge.stripes.action.Resolution |
view() |
public String getName()
public void setName(String name)
public String getVersion()
public void setVersion(String version)
public boolean isDebug()
public void setDebug(boolean debug)
public Application getApplication()
public void setApplication(Application application)
public void setContext(net.sourceforge.stripes.action.ActionBeanContext context)
setContext in interface net.sourceforge.stripes.action.ActionBeanpublic net.sourceforge.stripes.action.ActionBeanContext getContext()
getContext in interface net.sourceforge.stripes.action.ActionBeanpublic String getComponentSourceHTML()
public void setComponentSourceHTML(String componentSourceHTML)
public String getAppConfigJSON()
public void setAppConfigJSON(String appConfigJSON)
public String getViewerType()
public void setViewerType(String viewerType)
public org.json.JSONObject getUser()
public void setUser(org.json.JSONObject user)
public String getLoginUrl()
public void setLoginUrl(String loginUrl)
public HashMap getGlobalLayout()
public void setGlobalLayout(HashMap globalLayout)
public boolean isUnknown()
public void setUnknown(boolean unknown)
public net.sourceforge.stripes.action.Resolution saveCache()
throws org.json.JSONException,
IOException
org.json.JSONExceptionIOExceptionpublic net.sourceforge.stripes.action.Resolution retrieveCache()
throws org.json.JSONException,
IOException
org.json.JSONExceptionIOException@DefaultHandler
public net.sourceforge.stripes.action.Resolution view()
throws org.json.JSONException,
IOException
org.json.JSONExceptionIOExceptionpublic static net.sourceforge.stripes.action.Resolution checkRestriction(net.sourceforge.stripes.action.ActionBeanContext context,
Application application,
javax.persistence.EntityManager em)
public static int getRolesCachekey(javax.servlet.http.HttpServletRequest request)
request - servlet request with user credentialCopyright © 2016. All rights reserved.