|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.action.Action org.figure8.join.control.JoinAction org.figure8.join.control.action.SetupActions
public class SetupActions
Struts action used for setting up Join application
Field Summary | |
---|---|
protected ApplicationConfig |
appConfiguration
Application configuration manager. |
protected BootstrapManager |
bootstrapManager
Application bootstrap manager. |
protected XmlDatabinder |
dataBinder
Xml databinder for importing default entities from Xml |
protected ObjectDao |
genericDao
Generic object dao for saving default entities |
protected PermissionManager |
permissionManager
Join security permissions manager. |
static java.lang.String |
SETUP_ADMIN_OP
Operation code for setting administrator |
static java.lang.String |
SETUP_DATAB_OP
Operation code for setting database details |
static java.lang.String |
SETUP_DATAS_OP
Operation code for setting datasource details |
static java.lang.String |
SETUP_EMBED_OP
Operation code for setting embedded database |
static java.lang.String |
SETUP_EXTERN_OP
Operation code for setting up external database |
static java.lang.String |
SETUP_FINISH_OP
Operation code for finishing setup process |
static java.lang.String |
SETUP_MODE_OP
Operation code for setting simple or dissociated installation |
static java.lang.String |
SETUP_OTHERSIDE_OP
Operation code for setting application other side properties |
static java.lang.String |
SETUP_SYNCH_OP
Operation code for setting synchronous property of installation |
static java.lang.String |
SETUP_TYPE_OP
Operation code for setting setup type |
protected java.lang.String |
setupType
Choosen setup type (first step of setup) |
protected UserManager |
userManager
Join application user manager. |
Fields inherited from class org.figure8.join.control.JoinAction |
---|
BODY_ATTRIBUTE, BODY_PARAMETER, EXCEPTION_KEY, GUI_KEY, OP_PARAMETER, REND_MAIN, REND_NONE, REND_PARAMETER, REND_POPUP, XHR_PARAMETER |
Fields inherited from class org.apache.struts.action.Action |
---|
defaultLocale, servlet |
Constructor Summary | |
---|---|
SetupActions()
Creates a new instance of SetupActions |
Method Summary | |
---|---|
org.apache.struts.action.ActionForward |
doExecute(java.lang.String operation,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Execute the requested operation within action.s |
protected org.apache.struts.action.ActionForward |
finishSetup(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Finish the setup process by telling the configuration manager that setup is now complete. |
protected boolean |
isCustomSetup()
|
protected boolean |
isStandardSetup()
|
void |
setApplicationConfig(ApplicationConfig config)
|
void |
setBootstrapManager(BootstrapManager manager)
|
void |
setObjectDao(ObjectDao genericDao)
|
void |
setPermissionManager(PermissionManager manager)
|
protected org.apache.struts.action.ActionForward |
setupAdministrator(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Register administrator user into datastore. |
protected org.apache.struts.action.ActionForward |
setupDatabase(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Setup the database access properties and bootstrap Hibernate. |
protected org.apache.struts.action.ActionForward |
setupDatasource(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Setup the database access properties through datasource and bootstrap Hibernate. |
protected org.apache.struts.action.ActionForward |
setupDissociation(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Save the installation dissociation mode : the setup is whether simple or dissociated applications sides (one for synchronous services, one for asynchronous services) |
protected org.apache.struts.action.ActionForward |
setupEmbedded(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Setup the embedded database and bootstrap Hibernate. |
protected org.apache.struts.action.ActionForward |
setupOtherSideAccess(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Save configuration on how to access application other side |
protected org.apache.struts.action.ActionForward |
setupSynchronisation(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Save configuration of synchronous or asynchronous side. |
protected org.apache.struts.action.ActionForward |
setupType(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Save choosen setup type and forward according to this type. |
void |
setUserManager(UserManager manager)
|
void |
setXmlDatabinder(XmlDatabinder dataBinder)
|
Methods inherited from class org.figure8.join.control.JoinAction |
---|
execute, getUserContainer, isLoggedIn, isXhrRequest, removeObsoleteForm |
Methods inherited from class org.apache.struts.action.Action |
---|
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, 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 |
---|
public static final java.lang.String SETUP_TYPE_OP
public static final java.lang.String SETUP_MODE_OP
public static final java.lang.String SETUP_SYNCH_OP
public static final java.lang.String SETUP_OTHERSIDE_OP
public static final java.lang.String SETUP_ADMIN_OP
public static final java.lang.String SETUP_EMBED_OP
public static final java.lang.String SETUP_EXTERN_OP
public static final java.lang.String SETUP_DATAB_OP
public static final java.lang.String SETUP_DATAS_OP
public static final java.lang.String SETUP_FINISH_OP
protected java.lang.String setupType
protected BootstrapManager bootstrapManager
protected ApplicationConfig appConfiguration
protected ObjectDao genericDao
protected XmlDatabinder dataBinder
protected UserManager userManager
protected PermissionManager permissionManager
Constructor Detail |
---|
public SetupActions()
Method Detail |
---|
public void setBootstrapManager(BootstrapManager manager)
manager
- BoostrapManager
instancepublic void setApplicationConfig(ApplicationConfig config)
config
- ApplicationConfig
instancepublic void setObjectDao(ObjectDao genericDao)
genericDao
- ObjectDao
implementation instancepublic void setXmlDatabinder(XmlDatabinder dataBinder)
dataBinder
- XmlDatabinder
implementation instancepublic void setUserManager(UserManager manager)
manager
- UserManager
implementation instancepublic void setPermissionManager(PermissionManager manager)
manager
- PermissionManager
implementation instancepublic org.apache.struts.action.ActionForward doExecute(java.lang.String operation, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
doExecute
in class JoinAction
operation
- String representing the operation to invoke on Actionmapping
- Mapping between forwards name and path for this actionform
- The form object containing request parametersrequest
- The servlet container request wrapperresponse
- The servlet container response wrapper
java.lang.Exception
- is something wrong occursprotected org.apache.struts.action.ActionForward setupType(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exception
protected org.apache.struts.action.ActionForward setupDissociation(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exception
protected org.apache.struts.action.ActionForward setupSynchronisation(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exception
protected org.apache.struts.action.ActionForward setupOtherSideAccess(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exception
protected org.apache.struts.action.ActionForward setupAdministrator(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exception
protected org.apache.struts.action.ActionForward setupEmbedded(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exception
protected org.apache.struts.action.ActionForward setupDatabase(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exception
protected org.apache.struts.action.ActionForward setupDatasource(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exception
protected org.apache.struts.action.ActionForward finishSetup(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exception
protected boolean isCustomSetup()
protected boolean isStandardSetup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |