Examples of LightNavigatorContextRetrieverStrategy


Examples of it.eng.spagobi.container.strategy.LightNavigatorContextRetrieverStrategy

   
    logger.debug("IN");
   
    SessionContainer session = requestContainer.getSessionContainer();
    ContextManager contextManager = new ContextManager(new SpagoBISessionContainer(session),
        new LightNavigatorContextRetrieverStrategy(requestContainer.getServiceRequest()));
   
    if (obj == null) {
      logger.error("The input object is null");
      throw new EMFUserError(EMFErrorSeverity.ERROR, "100", messageBundle);
    }
View Full Code Here

Examples of it.eng.spagobi.container.strategy.LightNavigatorContextRetrieverStrategy

      // get the user profile from session
      SessionContainer permSession = sessionContainer.getPermanentContainer();
      IEngUserProfile profile = (IEngUserProfile)permSession.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
      // get the execution role
      CoreContextManager contextManager = new CoreContextManager(new SpagoBISessionContainer(sessionContainer),
          new LightNavigatorContextRetrieverStrategy(requestSB));
      ExecutionInstance instance = contextManager.getExecutionInstance(ExecutionInstance.class.getName());
      String executionRole = instance.getExecutionRole();
      Integer objId = DAOFactory.getBIObjectDAO().loadBIObjectByLabel(objLabel).getId();
      BIObject obj = DAOFactory.getBIObjectDAO().loadBIObjectForExecutionByIdAndRole(objId, executionRole);
      if (obj == null){
View Full Code Here

Examples of it.eng.spagobi.container.strategy.LightNavigatorContextRetrieverStrategy

     
      // read the configuration and set relative object into session
      DocumentCompositionConfiguration docConf = new DocumentCompositionConfiguration(content);
      SessionContainer session = requestContainer.getSessionContainer();
      ContextManager contextManager = new ContextManager(new SpagoBISessionContainer(session),
          new LightNavigatorContextRetrieverStrategy(requestContainer.getServiceRequest()));
      contextManager.set("docConfig", docConf);
        
      // set information into response
      response.setAttribute(ObjectsTreeConstants.SESSION_OBJ_ATTR, obj);
      response.setAttribute(content);
View Full Code Here

Examples of it.eng.spagobi.container.strategy.LightNavigatorContextRetrieverStrategy

      errorHandler = getErrorHandler();
      logger.debug("error handler retrived");
      RequestContainer requestContainer = getRequestContainer();
      SessionContainer sessionContainer = requestContainer.getSessionContainer();
      contextManager = new ContextManager(new SpagoBISessionContainer(sessionContainer),
          new LightNavigatorContextRetrieverStrategy(request));
      logger.debug("sessionContainer and permanentContainer retrived");
            logger.debug("user profile retrived");
            String modality = ChannelUtilities.getPreferenceValue(requestContainer, MODALITY, "");
            logger.debug("using "+modality+" modality");
            if (modality != null) {
View Full Code Here

Examples of it.eng.spagobi.container.strategy.LightNavigatorContextRetrieverStrategy

      messageExec = subMessageExec;
    errorHandler = getErrorHandler();
    requestContainer = this.getRequestContainer();
    SessionContainer session = requestContainer.getSessionContainer();
    contextManager = new CoreContextManager(new SpagoBISessionContainer(session),
        new LightNavigatorContextRetrieverStrategy(request));

    permanentSession = session.getPermanentContainer();
    logger.debug("errorHanlder, requestContainer, session, permanentSession retrived ");

    try {
View Full Code Here

Examples of it.eng.spagobi.container.strategy.LightNavigatorContextRetrieverStrategy

    RequestContainer reqCont = ChannelUtilities.getRequestContainer(httpRequest);
    ResponseContainer respCont = ChannelUtilities.getResponseContainer(httpRequest);
    errorHand = respCont.getErrorHandler();
    SessionContainer sessionCont = reqCont.getSessionContainer();
    contextManager = new CoreContextManager(new SpagoBISessionContainer(sessionCont),
        new LightNavigatorContextRetrieverStrategy(request));
    // get biobject from the session
    ExecutionInstance instance = contextManager.getExecutionInstance(ExecutionInstance.class.getName());
    BIObject obj = instance.getBIObject();
    // get the id of the lookup parameter
    String objParIdStr = (String) request.getAttribute("LOOKUP_PARAMETER_ID");
View Full Code Here

Examples of it.eng.spagobi.container.strategy.LightNavigatorContextRetrieverStrategy

    msgBuilder = MessageBuilderFactory.getMessageBuilder();
    if (requestIdentity == null)
      requestIdentity = "";
    SessionContainer session = requestContainer.getSessionContainer();
    contextManager = new CoreContextManager(new SpagoBISessionContainer(session),
        new LightNavigatorContextRetrieverStrategy(request));

    String currTheme=ThemesManager.getCurrentTheme(requestContainer);
    if(currTheme==null)currTheme=ThemesManager.getDefaultTheme();
   
    ExecutionInstance instance = null;
View Full Code Here

Examples of it.eng.spagobi.container.strategy.LightNavigatorContextRetrieverStrategy

//      try {
//        dossier = DAOFactory.getBIObjectDAO().loadBIObjectById(dossierId);
        RequestContainer requestContainer = this.getRequestContainer();
        SessionContainer session = requestContainer.getSessionContainer();
        CoreContextManager contextManager = new CoreContextManager(new SpagoBISessionContainer(session),
          new LightNavigatorContextRetrieverStrategy(request));
        ExecutionInstance executionInstance = contextManager.getExecutionInstance( ExecutionInstance.class.getName() );
        dossier = executionInstance.getBIObject();
        pathTempFolder = dossierDAO.init(dossier);
//      } catch (EMFUserError e) {
//        logger.error("Error while recovering dossier information: " + e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.