mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Added new command processor to execute UI Action based commands
For new commands such as 'createwebcontent' - launches the Create Web Content wizard via URL. Some clean up of JSF Bean name constants. Minor fixes to webscript templates for demo. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5595 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -42,6 +42,7 @@ import org.alfresco.service.cmr.security.AccessStatus;
|
||||
import org.alfresco.service.cmr.security.PermissionService;
|
||||
import org.alfresco.web.app.Application;
|
||||
import org.alfresco.web.bean.BrowseBean;
|
||||
import org.alfresco.web.bean.NavigationBean;
|
||||
import org.alfresco.web.bean.dashboard.DashboardManager;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
@@ -242,7 +243,7 @@ public class ExternalAccessServlet extends BaseServlet
|
||||
// setup the Dashboard Manager ready for the page we want to display
|
||||
if (req.getParameter(ARG_PAGE) != null)
|
||||
{
|
||||
DashboardManager manager = (DashboardManager)FacesHelper.getManagedBean(fc, "DashboardManager");
|
||||
DashboardManager manager = (DashboardManager)FacesHelper.getManagedBean(fc, DashboardManager.BEAN_NAME);
|
||||
manager.getPageConfig().setCurrentPage(req.getParameter(ARG_PAGE));
|
||||
}
|
||||
|
||||
@@ -254,6 +255,12 @@ public class ExternalAccessServlet extends BaseServlet
|
||||
{
|
||||
if (args.length != 0)
|
||||
{
|
||||
if (args.length > 1)
|
||||
{
|
||||
// if a GUID was passed, use it to init the NavigationBean current context
|
||||
NavigationBean navigator = (NavigationBean)FacesHelper.getManagedBean(fc, NavigationBean.BEAN_NAME);
|
||||
navigator.setCurrentNodeId(args[1]);
|
||||
}
|
||||
NavigationHandler navigationHandler = fc.getApplication().getNavigationHandler();
|
||||
navigationHandler.handleNavigation(fc, null, outcome + ':' + args[0]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user