Examples of UserSession


Examples of jeeves.server.UserSession

            }
        }

        // todo reject if < useradmin ?

        UserSession session = new UserSession();
        session.loginAs(user);
        this.context.setUserSession(session);

        this.context.setIpAddress(null);
    }
View Full Code Here

Examples of modele.UserSession

     * get user login and password values
     */
    String curUserName = request.getParameter("login");
    String curpassword = request.getParameter("password");
    String resultPage = null;
    UserSession session = UserSession.getInstance();
   
    ActionStatus a = Dao.validLogin(curUserName, curpassword);
    if (a.isStatusValue()) {
      Dao.setCurrentUser(curUserName);
      request.setAttribute("ressources", Dao.getUser(curUserName)
View Full Code Here

Examples of oracle.olapi.session.UserSession

   
    try{
      connection.multiDimensional = true;
      connection.openConnection();
     
      UserSession session = connection.openSession();
     
      ArrayList<String> tbls = connection.getAnalyticalWorkspaces();
      for(String table : tbls)logger.info("AWS: "+table);
     
      OracleDataWarehouse dw = new OracleDataWarehouse("owner","NEWJAVA_AW_TEST");
View Full Code Here

Examples of org.apache.wsrp4j.consumer.UserSession

        final String portletInstanceKey = (String)coplet.getTemporaryAttribute(ATTRIBUTE_NAME_PORTLET_INSTANCE_KEY);
        Producer producer = consumerEnvironment.getProducerRegistry().getProducer(portletKey.getProducerId());
       
        // releaseSession()
        try {
            UserSession userSession = consumerEnvironment.getSessionHandler().getUserSession(portletKey.getProducerId(), user.getUserID());
            PortletDescription portletDescription = producer.getPortletDescription(portletKey.getPortletHandle());
            GroupSession groupSession = userSession.getGroupSession(portletDescription.getGroupID());
            PortletSession portletSession = groupSession.getPortletSession(portletInstanceKey);
            SessionContext sessionContext = portletSession.getSessionContext();
            WSRPPortlet wsrpportlet = consumerEnvironment.getPortletRegistry().getPortlet(portletKey);
            PortletDriver portletDriver = consumerEnvironment.getPortletDriverRegistry().getPortletDriver(wsrpportlet);
   
            if (sessionContext != null) {
                String[] sessions = new String[1];
                sessions[0] = new String (sessionContext.getSessionID());
                portletDriver.releaseSessions(sessions, user.getUserID());
            }
           
            userSession.removeGroupSession(portletDescription.getGroupID());
        } catch (WSRPException e) {
            this.getLogger().error("session deregister()", e);
        }
    }
View Full Code Here

Examples of org.bigbluebutton.api.domain.UserSession

    return sessions.get(token);
  }
 
  public UserSession removeUserSession(String token) {
    log.debug("Removing user token [" + token + "]");
    UserSession user = sessions.remove(token);
    if (user != null) {
      log.debug("Found user [" + user.fullname + "] token=[" + token + "] to meeting [" + user.meetingID + "]");
    }
    return user;
  }
View Full Code Here

Examples of org.kuali.rice.krad.UserSession

  /**
   * test that users in the idmgr group have the relevant permissions
   */
  public void testIdMgrPermissions_populateGroup() throws WorkflowException {
    Map<String, Boolean> authUsers = getTestUtils().getAuthUsers();
    GlobalVariables.setUserSession(new UserSession("admin"));
    //Document document = KRADServiceLocatorWeb.getDocumentService().getNewDocument(IdentityManagementPersonDocument.class);
    Document document = mock(IdentityManagementPersonDocument.class);
    DocumentHeader header = mock(DocumentHeader.class);
    WorkflowDocument wd = mock(WorkflowDocument.class);
    when(document.getDocumentHeader()).thenReturn(header);
View Full Code Here

Examples of org.olat.core.util.UserSession

   * sure you call remove18nInfoFromThread() when the thread is finished!
   *
   * @param hreq The http servlet request
   */
  public static void attachI18nInfoToThread(HttpServletRequest hreq) {
    UserSession usess = UserSession.getUserSession(hreq);
    if (threadLocalLocale == null) {
      I18nManager.getInstance().logError("can't attach i18n info to thread: threadLocalLocale is null", null);
    } else {
      if (threadLocalLocale.getThreadLocale() != null) {
        I18nManager.getInstance().logWarn(
            "try to attach i18n info to thread, but threadLocalLocale is not null - a thread forgot to remove it!", new Exception("attachI18nInfoToThread"));
      }
      threadLocalLocale.setThredLocale(usess.getLocale());
    }
    if (threadLocalIsMarkLocalizedStringsEnabled == null) {
      I18nManager.getInstance().logError("can't attach i18n info to thread: threadLocalIsMarkLocalizedStringsEnabled is null", null);
    } else {
      if (threadLocalIsMarkLocalizedStringsEnabled.isMarkLocalizedStringsEnabled() != null) {
        I18nManager.getInstance().logWarn(
            "try to attach i18n info to thread, but threadLocalIsMarkLocalizedStringsEnabled is not null - a thread forgot to remove it!",
            null);
      }
      Boolean isMarkLocalizedStringsEnabled = (Boolean) usess.getEntry(USESS_KEY_I18N_MARK_LOCALIZED_STRINGS);
      if (isMarkLocalizedStringsEnabled != null) {
        threadLocalIsMarkLocalizedStringsEnabled.setMarkLocalizedStringsEnabled(isMarkLocalizedStringsEnabled);
      }
    }
  }
View Full Code Here

Examples of org.olat.core.util.UserSession

  /**
   * @return the usersession
   */
  public UserSession getUserSession() {
    //FIXME:fj:b cache usersession here
    UserSession result = UserSession.getUserSession(getHttpReq());
    if (result==null) {
      Tracing.logWarn("getUserSession: null, this="+this, new RuntimeException("getUserSession"), UserSession.class);
    }
    return result;
  }
View Full Code Here

Examples of org.olat.core.util.UserSession

      //thread local data is not initialized so far if Tracing is called from
      //e.g. a worker thread like in Search or UpdateEfficiency worker
      //TODO:pb:check if this was also a problem with IM threads.
      ureq = tld.getHttpServletRequest();
    }
    UserSession usess = null;
    Identity identity = null;
    String remoteIp = null;
    String userAgent = null;
    String referer = null;
    if (ureq != null) {
      usess = UserSession.getUserSessionIfAlreadySet(ureq);
      if (usess != null) {
        identity = usess.getIdentity();
        remoteIp = ureq.getRemoteAddr();
        userAgent = ureq.getHeader("User-Agent");
        referer = ureq.getHeader("Referer");
      }
    }
View Full Code Here

Examples of org.olat.core.util.UserSession

      //thread local data is not initialized so far if Tracing is called from
      //e.g. a worker thread like in Search or UpdateEfficiency worker
      //TODO:pb:check if this was also a problem with IM threads.
      ureq = tld.getHttpServletRequest();
    }
    UserSession usess = null;
    Identity identity = null;
    String remoteIp = null;
    String userAgent = null;
    String referer = null;
    if (ureq != null) {
      usess = UserSession.getUserSession(ureq);
      identity = usess.getIdentity();
      remoteIp = ureq.getRemoteAddr();
      userAgent = ureq.getHeader("User-Agent");
      referer = ureq.getHeader("Referer");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.