Package it.eng.spago.base

Examples of it.eng.spago.base.SessionContainer


      throws SourceBeanException {
        String deleteSuspendResumeId = (String)serviceRequest.getAttribute("DELETE_SUSPEND_RESUME_ID");
        if ((deleteSuspendResumeId != null) && (deleteSuspendResumeId.trim().length() > 0)){
          TracerSingleton.log(Constants.NOME_MODULO, TracerSingleton.INFORMATION,
          "AdapterHTTP::service: DELETE_SUSPEND_RESUME_ID ["+deleteSuspendResumeId+"] FOUND IN SERVICE REQUEST : DELETE SUSPEND RESUME CONTAINERS");
          SessionContainer aPermanentContainer = requestContainer.getSessionContainer().getPermanentContainer();
          SourceBean suspendedResumeContainers = (SourceBean)aPermanentContainer.getAttribute(deleteSuspendResumeId);
          /*
          TracerSingleton.log(Constants.NOME_MODULO, TracerSingleton.INFORMATION,
          "AdapterHTTP::service: DELETE_SUSPEND_RESUME_ID Container to delete" + suspendedResumeContainers);
          */
          if (suspendedResumeContainers != null){
            aPermanentContainer.delAttribute(deleteSuspendResumeId);
          }
          /*
          suspendedResumeContainers = (SourceBean)aPermanentContainer.getAttribute(deleteSuspendResumeId);
          TracerSingleton.log(Constants.NOME_MODULO, TracerSingleton.INFORMATION,
          "AdapterHTTP::service: DELETE_SUSPEND_RESUME_ID Container to delete" + suspendedResumeContainers);
          */
       
        // Suspend Service Request
        String suspendResumeId = (String)serviceRequest.getAttribute("SUSPEND_RESUME_ID");
        if ((suspendResumeId != null) && (suspendResumeId.trim().length() > 0)){
          TracerSingleton.log(Constants.NOME_MODULO, TracerSingleton.INFORMATION,
          "AdapterHTTP::service: SUSPEND_RESUME_ID ["+suspendResumeId+"] FOUND IN SERVICE REQUEST SUSPEND CURRENT SERVICE REQUEST");
          SessionContainer aPermanentContainer = requestContainer.getSessionContainer().getPermanentContainer();
          SourceBean suspendedResumeContainers = (SourceBean)aPermanentContainer.getAttribute(suspendResumeId);
           
            if (suspendedResumeContainers == null) {
                TracerSingleton.log(Constants.NOME_MODULO, TracerSingleton.WARNING,
                        "AdapterHTTP::service: SUSPENDED-RESUME-CONTAINER NOT FOUND");
            } else if (suspendedResumeContainers.getAttribute(Constants.SERVICE_REQUEST) != null){
View Full Code Here


        synchronized (session) {
            RequestContainer parentRequestContainer = (RequestContainer) session
                    .getAttribute(Constants.REQUEST_CONTAINER);
            if (!Navigator.isNavigatorEnabled()) {
                if (parentRequestContainer == null)
                    requestContainer.setSessionContainer(new SessionContainer(true));
                else
                    requestContainer.setSessionContainer(parentRequestContainer
                            .getSessionContainer());
            }
            else {
                if (parentRequestContainer == null)
                    requestContainer.setSessionContainer(new SessionContainer(true));
                else {
                    requestContainer.setSessionContainer(new SessionContainer(false));
                    requestContainer.setParent(parentRequestContainer);
                } // if (parentRequestContainer == null) else
            } // if (!Navigator.isNavigatorEnabled())
            session.setAttribute(Constants.REQUEST_CONTAINER, requestContainer);
        } // synchronized (session)
View Full Code Here

    Iterator it = objectsList.iterator();
    while (it.hasNext()) {
      LowFunctionality folder = (LowFunctionality) it.next();
      /* ********* start luca changes *************** */
      RequestContainer reqCont = ChannelUtilities.getRequestContainer(httpRequest);
      SessionContainer sessionContainer = reqCont.getSessionContainer();
      SessionContainer permanentSession = sessionContainer.getPermanentContainer();
      IEngUserProfile profile = (IEngUserProfile)permanentSession.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
      /*boolean isUserFunct = folder.getPath().startsWith("/"+((UserProfile)profile).getUserId());
         if(isUserFunct) {
           continue;
         }*/

 
View Full Code Here

    urlBuilder = UrlBuilderFactory.getUrlBuilder();
    msgBuilder = MessageBuilderFactory.getMessageBuilder();
    TracerSingleton.log(SpagoBIConstants.NAME_MODULE, TracerSingleton.DEBUG,
                    "ScriptWizardTag::doStartTag:: invoked");
    RequestContainer aRequestContainer = RequestContainer.getRequestContainer();
        SessionContainer aSessionContainer = aRequestContainer.getSessionContainer();
        SessionContainer permanentSession = aSessionContainer.getPermanentContainer();
    IEngUserProfile userProfile = (IEngUserProfile)permanentSession.getAttribute(IEngUserProfile.ENG_USER_PROFILE);

      currTheme=ThemesManager.getCurrentTheme(requestContainer);
      if(currTheme==null)currTheme=ThemesManager.getDefaultTheme();
   
    boolean isable = false;
View Full Code Here

      requestContainer = ChannelUtilities.getRequestContainer(httpRequest);
      responseContainer = ChannelUtilities.getResponseContainer(httpRequest);
      urlBuilder = UrlBuilderFactory.getUrlBuilder();
      msgBuilder = MessageBuilderFactory.getMessageBuilder();
      RequestContainer aRequestContainer = RequestContainer.getRequestContainer();
          SessionContainer aSessionContainer = aRequestContainer.getSessionContainer();
          SessionContainer permanentSession = aSessionContainer.getPermanentContainer();
      IEngUserProfile userProfile = (IEngUserProfile)permanentSession.getAttribute(IEngUserProfile.ENG_USER_PROFILE);

        currTheme=ThemesManager.getCurrentTheme(requestContainer);
        if(currTheme==null)currTheme=ThemesManager.getDefaultTheme();
     
      boolean isable = false;
View Full Code Here

   * @throws Exception If any exception occurred
   */
  private boolean validateService(RequestContainer requestContainer,
    ResponseContainer responseContainer)  {

    SessionContainer sessionContainer = requestContainer
        .getSessionContainer()
    SourceBean serviceRequest = requestContainer.getServiceRequest();
    ValidatorLocator locator = ValidatorLocator.getInstance();
    EMFErrorHandler errorHandler = responseContainer.getErrorHandler();
    TracerSingleton.log(Constants.NOME_MODULO, TracerSingleton.INFORMATION,
View Full Code Here

  }

  public static Locale getCurrentLocale(RequestContainer requestContainer) {
    Locale locale=null;
    if(requestContainer!=null){     
      SessionContainer permSession = requestContainer.getSessionContainer().getPermanentContainer();
      if(permSession!=null){     
        String language=(String)permSession.getAttribute(SpagoBIConstants.AF_LANGUAGE);
        String country=(String)permSession.getAttribute(SpagoBIConstants.AF_COUNTRY);
        if(language!=null && country!=null){
          locale=new Locale(language,country,"");
        }
      }
    }
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();
View Full Code Here

      if (publisherName != null &&  !publisherName.trim().equals("")) {
           return publisherName;
      }
     
      //gets the profile
      SessionContainer sessionContainer = requestContainer.getSessionContainer();
      SessionContainer permanentSession = sessionContainer.getPermanentContainer();
      IEngUserProfile profile = (IEngUserProfile)permanentSession.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
     
      try{
        if (profile.isAbleToExecuteAction(SpagoBIConstants.DOCUMENT_MANAGEMENT_ADMIN)){
          String operation = (String)serviceRequest.getAttribute(SpagoBIConstants.OPERATION);
          if( (operation!=null) && (operation.equals(SpagoBIConstants.FUNCTIONALITIES_OPERATION)) ) {
View Full Code Here

    requestIdentity = requestIdentity.replaceAll("-", "");
    httpRequest = httpReq;
    reqCont = ChannelUtilities.getRequestContainer(httpRequest);
    urlBuilder = UrlBuilderFactory.getUrlBuilder();
    msgBuilder = MessageBuilderFactory.getMessageBuilder();
    SessionContainer sessionContainer = reqCont.getSessionContainer();
    SessionContainer permanentSession = sessionContainer.getPermanentContainer();
   
      currTheme=ThemesManager.getCurrentTheme(reqCont);
      if(currTheme==null)currTheme=ThemesManager.getDefaultTheme();
   
    profile = (IEngUserProfile)permanentSession.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
    StringBuffer htmlStream = new StringBuffer();
    htmlStream.append("<LINK rel='StyleSheet' href='"+urlBuilder.getResourceLinkByTheme(httpRequest, "/css/dtree.css", currTheme )+"' type='text/css' />");
    //makeConfigurationDtree(htmlStream);
    String nameTree = msgBuilder.getMessage("tree.objectstree.name" ,"messages", httpRequest);
    htmlStream.append("<SCRIPT language='JavaScript' src='"+urlBuilder.getResourceLinkByTheme(httpRequest, "/js/dtree.js", currTheme )+"'></SCRIPT>");   
View Full Code Here

TOP

Related Classes of it.eng.spago.base.SessionContainer

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.