Examples of fromXML()


Examples of com.thoughtworks.xstream.XStream.fromXML()

        RegistrationManager rm = RegistrationManager.getInstance();
        String key = this.identity.getUser().getProperty("emchangeKey", null);
        TemporaryKeyImpl tempKey = rm.loadTemporaryKeyByRegistrationKey(key);
        if (tempKey != null) {
          XStream xml = new XStream();
          HashMap<String, String> mails = (HashMap<String, String>) xml.fromXML(tempKey.getEmailAddress());
          formItem.setExampleKey("email.change.form.info", new String[] {mails.get("changedEMail")});
        }
      }
    }
   
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.fromXML()

   */
  private TemporaryKey loadCleanTemporaryKey(String serMailMap) {
    TemporaryKey tk = rm.loadTemporaryKeyByEmail(serMailMap);
    if (tk == null) {
      XStream xml = new XStream();
      HashMap<String, String> mails = (HashMap<String, String>) xml.fromXML(serMailMap);
      String currentEMail = mails.get("currentEMail");
      List<TemporaryKey> tks = rm.loadTemporaryKeyByAction(RegistrationManager.EMAIL_CHANGE);
      if (tks != null) {
        synchronized (tks) {
          tks = rm.loadTemporaryKeyByAction(RegistrationManager.EMAIL_CHANGE);
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.fromXML()

      if (tks != null) {
        synchronized (tks) {
          tks = rm.loadTemporaryKeyByAction(RegistrationManager.EMAIL_CHANGE);
          int countCurrentEMail = 0;
          for (TemporaryKey temporaryKey : tks) {
            HashMap<String, String> tkMails = (HashMap<String, String>) xml.fromXML(temporaryKey.getEmailAddress());
            if (tkMails.get("currentEMail").equals(currentEMail)) {
              if (countCurrentEMail > 0) {
                // clean
                rm.deleteTemporaryKeyWithId(temporaryKey.getRegistrationKey());
              } else {
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.fromXML()

          }
        } else {
          // link time is up
          userRequest.getUserSession().putEntryInNonClearedStore("error.change.email.time", pT.translate("error.change.email.time"));
          XStream xml = new XStream();
          HashMap<String, String> mails = (HashMap<String, String>) xml.fromXML(tempKey.getEmailAddress());
          Identity ident = UserManager.getInstance().findIdentityByEmail(mails.get("currentEMail"));
          if (ident != null) {
            // remove keys
            ident.getUser().setProperty("emchangeKey", null);
          }
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.fromXML()

   * @param wControl
   * @return
   */
  public boolean changeEMail(WindowControl wControl) {
    XStream xml = new XStream();
    HashMap<String, String> mails = (HashMap<String, String>) xml.fromXML(tempKey.getEmailAddress());
    Identity ident = UserManager.getInstance().findIdentityByEmail(mails.get("currentEMail"));
    if (ident != null) {
      // change mail address
      ident.getUser().setProperty("email", mails.get("changedEMail"));
      // if old mail address closed then set the new mail address
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.fromXML()

    RegistrationManager rm = RegistrationManager.getInstance();
    List<TemporaryKey> tk = rm.loadTemporaryKeyByAction(RegistrationManager.EMAIL_CHANGE);
    if (tk != null) {
      for (TemporaryKey temporaryKey : tk) {
        XStream xml = new XStream();
        HashMap<String, String> mails = (HashMap<String, String>) xml.fromXML(temporaryKey.getEmailAddress());
        if (emailAddress.equals(mails.get("changedEMail"))) {
          return false;
        }
      }
    }
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.fromXML()

          XStream xStream_temp = new XStream(new XppDriver());
          xStream_temp.setMode(XStream.NO_REFERENCES);
         
          String roomRecordingInXML = recordingConversionJob.getRecording().getRoomRecording().getInitwhiteboardvarsInXml();
         
          Map initWhiteBoardObjects = (Map) xStream_temp.fromXML(roomRecordingInXML);
         
          this.generateFileAsSVG(initWhiteBoardObjects, roomRecordingInXML, recordingConversionJob);
            
        } else {
         
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.fromXML()

           
            XStream xStream_temp = new XStream(new XppDriver());
            xStream_temp.setMode(XStream.NO_REFERENCES);
           
            String roomRecordingInXML = recordingConversionJob.getCurrentWhiteBoardAsXml();
            Map whiteBoardObjects = (Map) xStream_temp.fromXML(roomRecordingInXML);
             
            //Do simulate Whiteboard Events in Temp Object
           
            for (WhiteBoardEvent whiteBoardEvent : whiteBoardEventList) {
             
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.fromXML()

              log.debug("whiteBoardEvent: "+whiteBoardEvent.getStarttime());
             
              XStream xStream_temp_action = new XStream(new XppDriver());
              xStream_temp_action.setMode(XStream.NO_REFERENCES);
             
              Map actionObj = (Map) xStream_temp_action.fromXML(whiteBoardEvent.getAction());
             
              log.debug("whiteBoardEvent: "+actionObj);
             
              Date dateOfEvent = (Date) actionObj.get(1);
              String action = actionObj.get(2).toString()
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.fromXML()

          XStream xStream_temp = new XStream(new XppDriver());
          xStream_temp.setMode(XStream.NO_REFERENCES);
         
          String roomRecordingInXML = recordingConversionJob.getRecording().getRoomRecording().getInitwhiteboardvarsInXml();
         
          Map initWhiteBoardObjects = (Map) xStream_temp.fromXML(roomRecordingInXML);
         
          this.generateFileAsSVG(initWhiteBoardObjects, roomRecordingInXML, recordingConversionJob);
            
        } else {
         
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.