public class DCSAction
extends org.apache.struts.action.Action
Modifier and Type | Field and Description |
---|---|
protected AccessManager |
accessManager |
protected CollectionRegistry |
collectionRegistry |
protected DcsDataManager |
dcsDataManager |
protected FrameworkRegistry |
frameworkRegistry |
protected boolean |
ndrServiceEnabled |
protected RepositoryManager |
repositoryManager |
protected RepositoryService |
repositoryService |
protected Roles.Role |
requiredRole |
protected SessionRegistry |
sessionRegistry |
protected UserManager |
userManager |
Constructor and Description |
---|
DCSAction() |
Modifier and Type | Method and Description |
---|---|
protected MetaDataFramework |
getMetaDataFramework(java.lang.String xmlFormat)
Gets the MetaDataFramework from the frameworkRegistry for the specified
xmlFormat.
|
protected java.lang.Object |
getRequiredContextAttributeValue(java.lang.String attrName,
org.apache.struts.action.ActionErrors errors)
Gets the requiredContextAttributeValue attribute of the DCSAction object
|
protected SessionBean |
getSessionBean(javax.servlet.http.HttpServletRequest request)
Gets the sessionBean using the supplied request ojbect
|
protected User |
getSessionUser(javax.servlet.http.HttpServletRequest request)
Gets the sessionUser using the supplied Request.
|
protected User |
getSessionUser(SessionBean sessionBean)
Gets the sessionUser from the supplied SessionBean object.
|
protected java.lang.String |
getSessionUserName(javax.servlet.http.HttpServletRequest request)
Returns the userName of the current sessionUser (as determined from the
supplied Request object) or the UNKNOWN_EDITOR value if a user is not
found.
|
org.apache.struts.action.ActionErrors |
initializeFromContext(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Processes the specified HTTP request and creates the corresponding HTTP
response by forwarding to a JSP that will create it.
|
addErrors, addMessages, execute, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
protected FrameworkRegistry frameworkRegistry
protected CollectionRegistry collectionRegistry
protected SessionRegistry sessionRegistry
protected RepositoryManager repositoryManager
protected RepositoryService repositoryService
protected AccessManager accessManager
protected UserManager userManager
protected DcsDataManager dcsDataManager
protected Roles.Role requiredRole
protected boolean ndrServiceEnabled
public org.apache.struts.action.ActionErrors initializeFromContext(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request) throws java.io.IOException, javax.servlet.ServletException
RepositoryManager
must be available to this class
via a ServletContext attribute under the key "repositoryManager." Returns
an ActionForward
instance which must be
configured in struts-config.xml to forward to the JSP page that will handle
the request.mapping
- The ActionMapping used to select this instancerequest
- The HTTP request we are processingjava.io.IOException
- if an input/output error occursjavax.servlet.ServletException
- if a servlet exception occursprotected java.lang.Object getRequiredContextAttributeValue(java.lang.String attrName, org.apache.struts.action.ActionErrors errors) throws java.lang.Exception
attrName
- name of attribute to geterrors
- place holder to return error messagejava.lang.Exception
- if attribute is not found in ServletContextprotected MetaDataFramework getMetaDataFramework(java.lang.String xmlFormat)
xmlFormat
- format of framework to getprotected SessionBean getSessionBean(javax.servlet.http.HttpServletRequest request)
request
- the Requestprotected User getSessionUser(SessionBean sessionBean)
sessionBean
- the SessionBeanprotected User getSessionUser(javax.servlet.http.HttpServletRequest request)
request
- the Requestprotected java.lang.String getSessionUserName(javax.servlet.http.HttpServletRequest request)
request
- the Request