|
|
|
@ -1,11 +1,14 @@
|
|
|
|
package de.tvo.workplace;
|
|
|
|
package de.tvo.workplace;
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
import org.eclnt.editor.annotations.CCGenClass;
|
|
|
|
import org.eclnt.editor.annotations.CCGenClass;
|
|
|
|
import org.eclnt.jsfserver.util.HttpSessionAccess;
|
|
|
|
import org.eclnt.jsfserver.util.HttpSessionAccess;
|
|
|
|
import org.eclnt.workplace.IWorkpageDispatcher;
|
|
|
|
import org.eclnt.workplace.IWorkpageDispatcher;
|
|
|
|
import org.eclnt.workplace.WorkpageDispatchedPageBean;
|
|
|
|
import org.eclnt.workplace.WorkpageDispatchedPageBean;
|
|
|
|
|
|
|
|
import org.eclnt.workplace.WorkpageStarterFactory;
|
|
|
|
|
|
|
|
|
|
|
|
import de.geis.portal.workplace.layout.DefaultLayout;
|
|
|
|
import de.geis.portal.workplace.layout.DefaultLayout;
|
|
|
|
import jakarta.servlet.http.HttpSession;
|
|
|
|
import jakarta.servlet.http.HttpSession;
|
|
|
|
@ -68,10 +71,58 @@ public class DefaultWorkplaceBean
|
|
|
|
{
|
|
|
|
{
|
|
|
|
super(workpageDispatcher);
|
|
|
|
super(workpageDispatcher);
|
|
|
|
m_layout = defaultLayout;
|
|
|
|
m_layout = defaultLayout;
|
|
|
|
|
|
|
|
init();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getPageName() { return "/workplace/defaultWorkplace.xml"; }
|
|
|
|
private void init() {
|
|
|
|
|
|
|
|
HttpSession hs = HttpSessionAccess.getCurrentHttpSession();
|
|
|
|
|
|
|
|
hs.setAttribute(DefaultWorkplaceBean.class.getName(),this);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// m_menuBean = m_functionsBean;
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// loadTree(true);
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// showNavigation();
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// m_searchBean = new FunctionSearchUI();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if (getTest()) {
|
|
|
|
|
|
|
|
// setRenderTest(true);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//System.out.println(this.getClass().getSimpleName() + " init: " + m_favorits);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//MK: Deaktivieren von Drag n Drop im Workplace selbst
|
|
|
|
|
|
|
|
getWorkpageContainer().setWithWorkpageDragDrop(false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//MK: Hinzufuegen der Home Seite die nicht geschlossen werden kann
|
|
|
|
|
|
|
|
DefaultWorkpageStarterInfo wpsi = new DefaultWorkpageStarterInfo();
|
|
|
|
|
|
|
|
//wpsi.setSessionVars(this.sessionVars);
|
|
|
|
|
|
|
|
wpsi.setCloseSupported(false);
|
|
|
|
|
|
|
|
wpsi.setComment("Home");
|
|
|
|
|
|
|
|
wpsi.setDecorated(false);
|
|
|
|
|
|
|
|
wpsi.setId("HOME");
|
|
|
|
|
|
|
|
//MK: Auskommenteirt weil er sonst die JSP callen möchte, er soll jedoch ueber Klasse callen
|
|
|
|
|
|
|
|
// wpsi.setJspPage("/portal/workplace/favorits.jsp");
|
|
|
|
|
|
|
|
wpsi.setOpenAsPopupByDefault(false);
|
|
|
|
|
|
|
|
wpsi.setOpenMultipleInstances(false);
|
|
|
|
|
|
|
|
wpsi.setPageBeanName("HomeBean");
|
|
|
|
|
|
|
|
wpsi.setPopupSupported(false);
|
|
|
|
|
|
|
|
wpsi.setSelectorTitle("Home");
|
|
|
|
|
|
|
|
wpsi.setText("Home");
|
|
|
|
|
|
|
|
wpsi.setWindowTitle("Home");
|
|
|
|
|
|
|
|
Map<String, String> param = new HashMap<>();
|
|
|
|
|
|
|
|
// param.put(StarterInfoParm.MANDANTID.name(), "0");
|
|
|
|
|
|
|
|
// param.put(StarterInfoParm.NODEKNID.name(), "0");
|
|
|
|
|
|
|
|
// wpsi.setParamMap(param);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WorkpageStarterFactory.getWorkpageStarter().startWorkpage(getOwningDispatcher(), getWorkpageContainer(), wpsi);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public String getPageName() { return "/workplace/defaultWorkplace.xml"; }
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getRootExpressionUsedInPage() { return "#{d.DefaultWorkplaceBean}"; }
|
|
|
|
public String getRootExpressionUsedInPage() { return "#{d.DefaultWorkplaceBean}"; }
|
|
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
|