Package it.eng.spago.base

Examples of it.eng.spago.base.SessionContainer


  public DetBIObjModHelper(RequestContainer reqCont, ResponseContainer respCont, SourceBean request, SourceBean response) {
    this.request = request;
    this.response = response;
    this.reqCont = reqCont;
    this.respCont = respCont;
    SessionContainer session = reqCont.getSessionContainer();
    SessionContainer permanentSession = session.getPermanentContainer();
    profile = (IEngUserProfile) permanentSession.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
  }
View Full Code Here


   *
   * @throws Exception the exception
   */
  public ObjTemplate recoverBIObjTemplateDetails() throws Exception {
    // GET THE USER PROFILE
    SessionContainer session = reqCont.getSessionContainer();
    SessionContainer permanentSession = session.getPermanentContainer();     
    IEngUserProfile profile = (IEngUserProfile) permanentSession.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
    //String userId=(String)profile.getUserUniqueIdentifier();
    String userId=(String)((UserProfile)profile).getUserId();
      ObjTemplate templ = null;
     
    FileItem uploaded = (FileItem) request.getAttribute("UPLOADED_FILE");
View Full Code Here

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

    SessionContainer sessionContainer = requestContainer
        .getSessionContainer();
   
    SourceBean serviceRequest = requestContainer.getServiceRequest();

    ValidatorLocator locator = ValidatorLocator.getInstance();
View Full Code Here

          }
        }
      }

      if (mod.equalsIgnoreCase(AdmintoolsConstants.DETAIL_INS)) {
        SessionContainer permSess = getRequestContainer()
            .getSessionContainer().getPermanentContainer();
        IEngUserProfile profile = (IEngUserProfile) permSess
            .getAttribute(IEngUserProfile.ENG_USER_PROFILE);
        DAOFactory.getLowFunctionalityDAO().insertLowFunctionality(
            lowFunct, profile);
      } else if (mod.equalsIgnoreCase(AdmintoolsConstants.DETAIL_MOD)) {
        DAOFactory.getLowFunctionalityDAO().modifyLowFunctionality(
View Full Code Here

        String path = (String) request.getAttribute(PATH);
        ILowFunctionalityDAO funcdao = DAOFactory
            .getLowFunctionalityDAO();
        LowFunctionality funct = funcdao.loadLowFunctionalityByPath(
            path, false);
        SessionContainer permSess = getRequestContainer()
            .getSessionContainer().getPermanentContainer();
        IEngUserProfile profile = (IEngUserProfile) permSess
            .getAttribute(IEngUserProfile.ENG_USER_PROFILE);
        funcdao.eraseLowFunctionality(funct, profile);
      }
    } catch (EMFUserError eex) {
      EMFErrorHandler errorHandler = getErrorHandler();
View Full Code Here

      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

    ExecutionProxy proxy = new ExecutionProxy();
    proxy.setBiObject(biobj);
   
    IEngUserProfile profile = null;
    RequestContainer reqCont = RequestContainer.getRequestContainer();
    SessionContainer sessCont = reqCont.getSessionContainer();
    SessionContainer permSess = sessCont.getPermanentContainer();
    profile = (IEngUserProfile) permSess.getAttribute(IEngUserProfile.ENG_USER_PROFILE);

    if (profile == null) {
     
      profile=UserUtilities.getUserProfile(req);
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

      currTheme=ThemesManager.getCurrentTheme(requestContainer);
      if(currTheme==null)currTheme=ThemesManager.getDefaultTheme();
   
    RequestContainer aRequestContainer = RequestContainer.getRequestContainer();
        SessionContainer aSessionContainer = aRequestContainer.getSessionContainer();
        SessionContainer permanentSession = aSessionContainer.getPermanentContainer();
    IEngUserProfile userProfile = (IEngUserProfile)permanentSession.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
    boolean isable = false;
    try {
      isable = userProfile.isAbleToExecuteAction(SpagoBIConstants.LOVS_MANAGEMENT);
    } catch (EMFInternalError e) {
      // TODO Auto-generated catch block
View Full Code Here

    logger.debug("Functionalities of the user profile: "+ profile.getFunctionalities());
    logger.debug("Roles of the user profile: "+ profile.getRoles())

    // put user profile into spago session container
    RequestContainer reqCont = getRequestContainer();
    SessionContainer sessionCont = reqCont.getSessionContainer();
    SessionContainer permSession = sessionCont.getPermanentContainer();
    permSession.setAttribute(IEngUserProfile.ENG_USER_PROFILE, profile);
    // updates locale information on permanent container for Spago messages mechanism
    Locale locale = PortletUtilities.getLocaleForMessage();
    if (locale != null) {
      permSession.setAttribute(Constants.USER_LANGUAGE, locale.getLanguage());
      permSession.setAttribute(Constants.USER_COUNTRY, locale.getCountry());
    }
   
    //String username = (String)profile.getUserUniqueIdentifier();
    String username = (String)((UserProfile)profile).getUserId();
    if(!UserUtilities.userFunctionalityRootExists(username)) {
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.