Package com.any_erp_vendor.moa.objects.resources.v1_0

Examples of com.any_erp_vendor.moa.objects.resources.v1_0.Address


        return null;

      // If there is one e-mail address in the list, that will become the
      // value of the e-mail address.
      case 1:
        Email emailAddress = (Email)li.next();
        return emailAddress.getEmailAddress();

      // If there are multiple e-mail addresses in the list, uPortal can
      // store only one of them, so get any one that has the preferred
      // indicator set or take the first e-mail address in the list if
      // none are preferred.
      default:
        emailAddress = (Email)li.next();
        String email = emailAddress.getEmailAddress();
        while (li.hasNext()) {
          emailAddress = (Email)li.next();
          if (emailAddress.getPreferred() != null &&
              emailAddress.getPreferred().equalsIgnoreCase("Yes")) {

              email = emailAddress.getEmailAddress();
          }
        }
        return email;
    }
}
View Full Code Here


          }
          List emailList = bp.getEmail();
          emailList.clear();
          if (emailType!=null) {
            for (int i=0;i<emailType.length;i++) {
              Email email=bp.newEmail();
              email.setType(emailType[i]);
              email.setEmailAddress(emailAddress[i]);
              email.setStatus(emailStatus[i]);
              email.setPreferred(emailPreferred[i]);
              emailList.add(email);
            }
            bp.setEmail(emailList);
          }
          bp.update(p2p);
View Full Code Here

        aName.setFirstName(firstName);
        aName.setLastName(lastName);
        aeo.setName(aName);
        aeo.setInstitutionalId(instID);
        if (!"".equals(email)) {
          Email e = aeo.newEmail();
          e.setEmailAddress(email);
          e.setStatus("Active");
          e.setType("SMTP");
          e.setPreferred("No");
          aeo.setEmail(0,e);
        logger.info("["+portletName+"] Email address set to " + email + ".");
        }
        logger.info("["+portletName+"] Creating "+ BASIC_PERSON + " for user ("+instID+") "+firstName+" "+lastName+"...");
        aeo.create(p2p)
View Full Code Here

    String instId = Integer.toString(getChannelStaticData().getPerson().getID());
    LogService.log(LogService.INFO, "[basicPersonQueryHandler] instId is " + instId);
    LogService.log(LogService.INFO, "[basicPersonQueryHandler] firstName is " + firstName);
    LogService.log(LogService.INFO, "[basicPersonQueryHandler] lastName is " + lastName);
    try {
      LightweightPerson lPerson =
          (LightweightPerson)getAppConfig().getObject(queryObjectName);
      lPerson.getEnterpriseFields().setIgnoreValidation(true);
      LogService.log(LogService.INFO, "[basicPersonQueryHandler] got LightweightPerson...");

      if (instId != null && instId.length() > 0) {
        lPerson.setInstitutionalId(instId);
        LogService.log(LogService.INFO, "[basicPersonQueryHandler] set instid on lightweight person...");

        JmsEnterpriseObject jeo = (JmsEnterpriseObject)getAppConfig().getObject(messageObjectName);
        LogService.log(LogService.INFO, "[basicPersonQueryHandler] got " + messageObjectName + " from AppConfig, performing Query...");
View Full Code Here

  }
 
    // Make sure all objects needed are configured and available for use.
  // LightweightPerson, BasicPersion, EnterpriseUserPassword
     try {
      LightweightPerson lPerson =
            (LightweightPerson)getAppConfig().getObject("LightweightPerson");
        BasicPerson aeo = (BasicPerson)getAppConfig().getObject("BasicPerson");
        EnterpriseUserPassword newEntUserPassword = (EnterpriseUserPassword)getAppConfig()
          .getObject("EnterpriseUserPassword");
    }
View Full Code Here

    }
  }

  private BasicPerson getBasicPerson(String instId) throws EnterpriseConfigurationObjectException, EnterpriseFieldException, EnterpriseObjectQueryException {
       
    LightweightPerson lPerson =
          (LightweightPerson)getAppConfig().getObject("LightweightPerson");
        logger.info("[PasswordSyncCommand.getBasicPerson] Got LightweightPerson...");
 
        lPerson.setInstitutionalId(instId);
        logger.info("[PasswordSyncCommand.getBasicPerson] Set instid on lightweight person...");
       
        BasicPerson aeo = (BasicPerson)getAppConfig().getObject("BasicPerson");
        logger.info("[PasswordSyncCommand.getBasicPerson] Got BasicPerson from AppConfig, performing Query...");
 
View Full Code Here

        if (returnedJeos.size() == 0) {
          // create the BasicPerson using default values from uPortal (givenName, sn)
          LogService.log(LogService.INFO, "[basicPersonQueryHandler] BasicPerson doesn't exist, creating it.");
          BasicPerson bp = (BasicPerson)getAppConfig().getObject(messageObjectName);
          bp.setInstitutionalId(instId);
          Name name = bp.newName();
          name.setFirstName(firstName);
          name.setLastName(lastName);
          bp.setName(name);
          bp.create((PointToPointProducer)getAppConfig().getObject(producerName));
          LogService.log(LogService.INFO, "[basicPersonQueryHandler] BasicPerson was created.");
          xml += bp.getXmlEnterpriseObject().toXmlString();
        }
View Full Code Here


      // where to get the newdata (the form data)?
      BasicPerson bp = (BasicPerson)getAppConfig().getObject(messageObjectName);
      bp.setInstitutionalId(getChannelRuntimeData().getParameter("InstitutionalId"));
      Name name = bp.newName();
      name.setFirstName(getChannelRuntimeData().getParameter("FirstName"));
      name.setLastName(getChannelRuntimeData().getParameter("LastName"));
      bp.setName(name);

      // address info
      String[] addrTypes = getChannelRuntimeData().getParameterValues("Address@type");
      for (int i=0; i<addrTypes.length; i++) {
View Full Code Here

   * the BasicPerson object.
   **/
  protected void populateBasicPerson(BasicPerson bPerson) throws org.openeai.moa.EnterpriseObjectException {
    try {
      String instId = instIdTextField.getText();
      Name aName = bPerson.newName();
      aName.setLastName(bp_lastNameTextField.getText());
      aName.setFirstName(bp_firstNameTextField.getText());
      aName.setMiddleName(bp_middleNameTextField.getText());
     
      bPerson.setInstitutionalId(instId);
      bPerson.setName(aName);
      bPerson.setGender((String)bp_genderComboBox.getSelectedItem());
     
View Full Code Here

    protected void populateEmergencyContact(EmergencyContact ec) throws org.openeai.moa.EnterpriseObjectException {
      try {
        ec.setOwnerId(instIdTextField.getText());
        ec.setPriority((String)ec_priority.getSelectedItem());
        ec.setRelationship((String)ec_relation.getSelectedItem());
        Name name = ec.newName();
        name.setFirstName(ec_firstName.getText());
        name.setLastName(ec_lastName.getText());
        ec.setName(name);
       
        Address a = ec.newAddress();
        // get the effective date and verify it's format, then populate the
        // address' effective date information with it.
View Full Code Here

TOP

Related Classes of com.any_erp_vendor.moa.objects.resources.v1_0.Address

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.