Package it.eng.spago.base

Examples of it.eng.spago.base.RequestContainer


    String queryDefField = msgBuilder.getMessage("SBIDev.queryWiz.queryDefField", "messages", httpRequest);

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


    htmlStream.append("            treeFunct.add(" + dTreeRootId + ",-1,'"+nameTree+"');\n");
    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

    //if (responseContainerName != null)
    //  responseContainer = (ResponseContainer)session.getAttribute(responseContainerName);
    //else
    //  TracerSingleton.log(Constants.NOME_MODULO, TracerSingleton.INFORMATION, "AdapterPortlet::doView: responseContainerName nullo");
    // if request container is not null set into RequestContainer ThreadLocal variable
      RequestContainer requestContainer = (RequestContainer)session.getAttribute(Constants.REQUEST_CONTAINER);
      ResponseContainer responseContainer = (ResponseContainer)session.getAttribute(Constants.RESPONSE_CONTAINER);
      TracerSingleton.log(
                Constants.NOME_MODULO,
                TracerSingleton.DEBUG,
                "AdapterPortlet::doView: request container retrieved from session: " + requestContainer);
View Full Code Here

    // START MODIFICATIONS BY DAVIDE ZERBETTO September 10th 2007
    // This method is here but it shouldn't be!!!
    // Since a portlet loop render is missing, this method was copied here from HTTPLoopRenderer
  private void prepareRender(RequestContextIFace requestContext, PublisherConfiguration publisher) throws Exception {

    RequestContainer requestContainer = requestContext.getRequestContainer();
    ResponseContainer responseContainer = requestContext.getResponseContainer();

    // Prepare service request for loopback management
        try {
            SourceBean loopbackServiceRequest = new SourceBean(Constants.SERVICE_REQUEST);
View Full Code Here

    public static Locale getBrowserLocaleFromSpago()
    {
        logger.debug("IN");
        Locale browserLocale = null;
        RequestContainer reqCont = RequestContainer.getRequestContainer();
        if(reqCont != null)
        {
            Object obj = reqCont.getInternalRequest();
            if(obj != null && (obj instanceof HttpServletRequest))
            {
                HttpServletRequest request = (HttpServletRequest)obj;
                Locale reqLocale = request.getLocale();
                String language = reqLocale.getLanguage();
View Full Code Here

        logger.debug("IN");
        String sbiMode = getSpagoBIMode(request);
        Locale locale = null;
        if(sbiMode.equalsIgnoreCase("WEB"))
        {
            RequestContainer reqCont = RequestContainer.getRequestContainer();
            SessionContainer sessCont = reqCont.getSessionContainer();
            SessionContainer permSess = sessCont.getPermanentContainer();
            String language = (String)permSess.getAttribute("AF_LANGUAGE");
            String country = (String)permSess.getAttribute("AF_COUNTRY");
            if(country == null)
            {
View Full Code Here

    logger.debug("Attributes name of the user profile: "+ profile.getUserAttributeNames());
    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) {
View Full Code Here

    {
        logger.debug("IN");
        String sbiMode = null;
        if(request != null)
        {
            RequestContainer aRequestContainer = null;
            aRequestContainer = RequestContainerPortletAccess.getRequestContainer(request);
            if(aRequestContainer == null)
            {
                aRequestContainer = RequestContainerAccess.getRequestContainer(request);
            }
            String channelType = aRequestContainer.getChannelType();
            if("PORTLET".equalsIgnoreCase(channelType))
            {
                sbiMode = "PORTLET";
            } else
            {
View Full Code Here

    public void service(SourceBean request, SourceBean response) throws Exception {
  logger.debug("IN");

  try {

      RequestContainer reqCont = getRequestContainer();
      SessionContainer sessionCont = reqCont.getSessionContainer();
      SessionContainer permSession = sessionCont.getPermanentContainer();

      IEngUserProfile profile = (IEngUserProfile) permSession.getAttribute(IEngUserProfile.ENG_USER_PROFILE);

      if (profile == null) {
View Full Code Here

  public void service(SourceBean request, SourceBean response) throws Exception {
    logger.debug("IN");
    try {
      this.freezeHttpResponse();
      HttpServletResponse httpResponse = getHttpResponse();
      RequestContainer requestContainer = this.getRequestContainer();
      SessionContainer permanentSession = requestContainer.getSessionContainer().getPermanentContainer();
        IEngUserProfile profile = (IEngUserProfile) permanentSession.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
        String toReturn = null;
        if (profile == null) {
          toReturn = "userProfileNotFound";
        } else {
View Full Code Here

TOP

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

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.