|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.struts.action.Action
org.dlese.dpc.schemedit.action.DCSAction
public class DCSAction
Base Action class that sets up access to global structures as instance variables. NOTE: using instance variables this way in an Action is dangerous. We have to at least make sure we don't use any session-specific variables this way, since the Action class is shared by all threads, and the session-specific vars may be re-assigned by another thread.
| Field Summary | |
|---|---|
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
|
| Fields inherited from class org.apache.struts.action.Action |
|---|
defaultLocale, servlet |
| Constructor Summary | |
|---|---|
DCSAction()
|
|
| Method Summary | |
|---|---|
protected MetaDataFramework |
getMetaDataFramework(String xmlFormat)
Gets the MetaDataFramework from the frameworkRegistry for the specified xmlFormat. |
protected Object |
getRequiredContextAttributeValue(String attrName,
ActionErrors errors)
Gets the requiredContextAttributeValue attribute of the DCSAction object |
protected SessionBean |
getSessionBean(HttpServletRequest request)
Gets the sessionBean using the supplied request ojbect |
protected User |
getSessionUser(HttpServletRequest request)
Gets the sessionUser using the supplied Request. |
protected User |
getSessionUser(SessionBean sessionBean)
Gets the sessionUser from the supplied SessionBean object. |
protected String |
getSessionUserName(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. |
ActionErrors |
initializeFromContext(ActionMapping mapping,
HttpServletRequest request)
Processes the specified HTTP request and creates the corresponding HTTP response by forwarding to a JSP that will create it. |
| Methods inherited from class org.apache.struts.action.Action |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public DCSAction()
| Method Detail |
|---|
public ActionErrors initializeFromContext(ActionMapping mapping,
HttpServletRequest request)
throws IOException,
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 processing
IOException - if an input/output error occurs
ServletException - if a servlet exception occurs
protected Object getRequiredContextAttributeValue(String attrName,
ActionErrors errors)
throws Exception
attrName - name of attribute to geterrors - place holder to return error message
Exception - if attribute is not found in ServletContextprotected MetaDataFramework getMetaDataFramework(String xmlFormat)
xmlFormat - format of framework to get
protected SessionBean getSessionBean(HttpServletRequest request)
request - the Request
protected User getSessionUser(SessionBean sessionBean)
sessionBean - the SessionBean
protected User getSessionUser(HttpServletRequest request)
request - the Request
protected String getSessionUserName(HttpServletRequest request)
request - the Request
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||