Package it.eng.spago.base

Examples of it.eng.spago.base.RequestContainer


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


      aSession = getSession();
      tx = aSession.beginTransaction();

      Collection roles = null;
      try {
        RequestContainer reqCont = RequestContainer.getRequestContainer();
        roles  = ((UserProfile)profile).getRolesForUse();
        logger.debug("Profile roles: " + roles);

      } catch (Exception e) {
        logger.error("Error while recovering user profile", e);
View Full Code Here

   * @param prefs
   *            Portlet Preferences
   */
  private void singleObjectModalityHandler(SourceBean request, SourceBean response) throws Exception {
    logger.debug("enter singleObjectModalityHandler");
    RequestContainer requestContainer = this.getRequestContainer();
    // get from preferences the label of the object
    String label = ChannelUtilities.getPreferenceValue(requestContainer, LABEL_SINGLE_OBJECT, "");
    logger.debug("using object label " + label);
    // if label is not set then throw an exception
    if (label == null || label.trim().equals("")) {
View Full Code Here

   */
  public SpagoBIEngineServiceException getWrappedException(String serviceName,  Throwable e) {
    SpagoBIServiceException serviceException = null;
    MessageBuilder msgBuild = new MessageBuilder();
    Locale locale = null
    RequestContainer requestContainer=RequestContainer.getRequestContainer();
    if(requestContainer!=null){
      SessionContainer permSess=requestContainer.getSessionContainer().getPermanentContainer();
      String lang=(String)permSess.getAttribute(SpagoBIConstants.AF_LANGUAGE);
      String country=(String)permSess.getAttribute(SpagoBIConstants.AF_COUNTRY);
      if(lang!=null && country!=null){
        locale=new Locale(lang,country,"");
      }
View Full Code Here

     * @see it.eng.spago.dispatching.service.list.basic.IFaceBasicListService#getList(it.eng.spago.base.SourceBean,
     *      it.eng.spago.base.SourceBean)
     */
    public ListIFace getList(SourceBean request, SourceBean response) throws Exception {
  logger.debug("IN");
  RequestContainer requestContainer = this.getRequestContainer();
  SessionContainer sessionContainer = requestContainer.getSessionContainer();
  SessionContainer permanentSession = sessionContainer.getPermanentContainer();
  profile = (IEngUserProfile) permanentSession.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
  initialPath = (String) request.getAttribute(TreeObjectsModule.PATH_SUBTREE);

  String language=(String)permanentSession.getAttribute(SpagoBIConstants.AF_LANGUAGE);
View Full Code Here

   * @throws exception If an exception occurs
   * @throws Exception the exception
   */
  public void service(SourceBean request, SourceBean response) throws Exception {
    // RECOVER REQUEST CONTAINER, SESSION CONTAINER, USER PROFILE AND ERROR HANDLER
    RequestContainer requestContainer = this.getRequestContainer()
    ResponseContainer responseContainer = this.getResponseContainer()
    session = requestContainer.getSessionContainer();
    SessionContainer permanentSession = session.getPermanentContainer();
    profile = (IEngUserProfile) permanentSession.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
    biobjDAO = DAOFactory.getBIObjectDAO();
    biobjDAO.setUserProfile(profile);
    errorHandler = getErrorHandler();
View Full Code Here

 
  /* (non-Javadoc)
   * @see it.eng.spago.dispatching.service.ServiceIFace#service(it.eng.spago.base.SourceBean, it.eng.spago.base.SourceBean)
   */
  public void service(SourceBean request, SourceBean response) throws Exception {
    RequestContainer reqCont = getRequestContainer();
    SessionContainer sessCont = reqCont.getSessionContainer();
    SessionContainer permSess = sessCont.getPermanentContainer();
    IEngUserProfile profile = (IEngUserProfile)permSess.getAttribute(IEngUserProfile.ENG_USER_PROFILE);

    String idMenu = (String) request.getAttribute(DetailMenuModule.MENU_ID);
    Integer id = new Integer(idMenu);
View Full Code Here

   * @see it.eng.spagobi.commons.services.AbstractBasicCheckListModule#save()
   */
  public void save() throws Exception {
    logger.debug( "IN" );
    super.save();
    RequestContainer requestContainer = this.getRequestContainer()
    SessionContainer sessionContainer = requestContainer.getSessionContainer();
    SessionContainer permanentSession = sessionContainer.getPermanentContainer();
    profile = (IEngUserProfile)permanentSession.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
    String subjectIdName = (String)((SourceBean) config.getAttribute("KEYS.SUBJECT")).getAttribute("key");
    String masterReportIdStr = (String)getAttribute(subjectIdName, _request);
    Integer masterReportId = new Integer(masterReportIdStr);   
View Full Code Here

  /* (non-Javadoc)
   * @see it.eng.spagobi.commons.services.AbstractHibernateConnectionCheckListModule#getList(it.eng.spago.base.SourceBean, it.eng.spago.base.SourceBean)
   */
  public ListIFace getList(SourceBean request, SourceBean response) throws Exception {
    logger.debug( "IN" );
    RequestContainer requestContainer = this.getRequestContainer()
    SessionContainer sessionContainer = requestContainer.getSessionContainer();
    SessionContainer permanentSession = sessionContainer.getPermanentContainer();
    profile = (IEngUserProfile)permanentSession.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
    //String actor = (String) sessionContainer.getAttribute(SpagoBIConstants.ACTOR);
    //String filterOrder = (request.getAttribute("FIELD_ORDER") == null || ((String)request.getAttribute("FIELD_ORDER")).equals(""))?
        //    "label":(String)request.getAttribute("FIELD_ORDER");
View Full Code Here

 
  /* (non-Javadoc)
   * @see it.eng.spago.dispatching.service.ServiceIFace#service(it.eng.spago.base.SourceBean, it.eng.spago.base.SourceBean)
   */
  public void service(SourceBean request, SourceBean response) throws Exception {
    RequestContainer requestContainer = this.getRequestContainer()
    session = requestContainer.getSessionContainer()
    String message = (String) request.getAttribute("MESSAGEDET");
    SpagoBITracer.debug(SpagoBIConstants.NAME_MODULE, this.getClass().getName(),
                    "service", "begin of ListObjParuseModule modify/visualization " +
                    "service with message =" +message);
    errorHandler = getErrorHandler();
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.