Package it.eng.spagobi.container

Examples of it.eng.spagobi.container.SpagoBISessionContainer


      SourceBean response) throws EMFUserError {
   
    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


    try{
      // 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);
View Full Code Here

      }
     
      // 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);
View Full Code Here

    return getRequestContainer().getSessionContainer();
  }
 
  public IBeanContainer getSpagoBISessionContainer() {
    if(spagoBISessionContainer == null) {
      spagoBISessionContainer = new SpagoBISessionContainer( getSessionContainer() );
    }
   
    return spagoBISessionContainer;
  }
View Full Code Here

      logger.debug("IN");
      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");
View Full Code Here

    if (subMessageExec != null && !subMessageExec.equals(""))
      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 ");
View Full Code Here

  public ListIFace filterListForCorrelatedParam(SourceBean request, ListIFace list, HttpServletRequest httpRequest) throws Exception {
    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
View Full Code Here

    urlBuilder = UrlBuilderFactory.getUrlBuilder(requestContainer.getChannelType());
    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();
   
View Full Code Here

    try {
//      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) {
View Full Code Here

TOP

Related Classes of it.eng.spagobi.container.SpagoBISessionContainer

Copyright © 2018 www.massapicom. 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.