Package org.olat.instantMessaging

Examples of org.olat.instantMessaging.ClientHelper


          identity = (Identity) DBFactory.getInstance().loadObject(identity);
          try {
            ImPrefsManager ipm = ImPrefsManager.getInstance();
            ImPreferences imPrefs = ipm.loadOrCreatePropertiesFor(identity);
            if ( (imPrefs != null) ) {
              ClientHelper clientHelper = new ClientHelper(olatusername, null, null, null);
              entry = new ConnectedUsersListEntry(olatusername, identity.getUser().getPreferences().getLanguage());
              entry.setName(identity.getUser().getProperty(UserConstants.LASTNAME, null));
              entry.setPrename(identity.getUser().getProperty(UserConstants.FIRSTNAME, null));
              entry.setShowAwarenessMessage(imPrefs.isAwarenessVisible());
              entry.setShowOnlineTime(imPrefs.isOnlineTimeVisible());
              entry.setAwarenessMessage(clientHelper.getStatusMsg());
              entry.setInstantMessagingStatus(clientHelper.getStatus());
              entry.setLastActivity(lastActivity.get(olatusername));
              entry.setOnlineTime(clientHelper.getOnlineTime());
              entry.setJabberId(clientHelper.getJid());
              entry.setVisibleToOthers(imPrefs.isVisibleToOthers());
              entries.add(entry);
             
              //put in cache
              sessionItemsCache.put(olatusername, entry);
View Full Code Here


  private Map<String, NewMessageIconInfo> showNewMessageHolder = new HashMap<String, NewMessageIconInfo>(2);
 
  public InstantMessagingMainController(UserRequest ureq, WindowControl wControl) {
    super(ureq, wControl);
    username = getIdentity().getName();
    clientHelper = new ClientHelper(username, this, buddiesListContent, getTranslator());
    this.clientManager = InstantMessagingModule.getAdapter().getClientManager();
    clientManager.registerEventListener(username, this, true);
   
    boolean ajaxOn = getWindowControl().getWindowBackOffice().getWindowManager().isAjaxEnabled();
    chatContent.contextPut("isAjaxMode", Boolean.valueOf(ajaxOn));
View Full Code Here

TOP

Related Classes of org.olat.instantMessaging.ClientHelper

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.