Package com.any_erp_vendor.moa.jmsobjects.person.v1_0

Examples of com.any_erp_vendor.moa.jmsobjects.person.v1_0.BasicPerson


    String enterpriseID = null;

    try {
      LightweightPerson lightweightPerson = entUser.getLightweightPerson();
      enterpriseID = lightweightPerson.getInstitutionalId();
      BasicPerson basicPerson = getBasicPerson(enterpriseID);
      Name name = basicPerson.getName();
      String firstName = name.getFirstName();
      String lastName = name.getLastName();
      String middleName = name.getMiddleName();
      updateName (principal, firstName, lastName, middleName);
      List eMails = basicPerson.getEmail();
      updateEmail (principal, eMails);
      List phones = basicPerson.getPhone();
      updatePhone (principal, phones);
    } catch (OpenEaiException eaiEx) {
      // Publish the sync error.
      publishError("system", "DirectoryServiceGateway-1004", "Error while retrieving BasicPerson information for enterprise user '" + enterpriseID
              + ".'  The exception is: " + eaiEx.getMessage(), "[" + getServiceName() + ".updateEnterpriseUserInDirectory]", eaiEx);
View Full Code Here


    logger.debug("[" + getServiceName() + "] Got LightweightPerson...");

    lightPerson.setInstitutionalId(instId);
    logger.debug("[" + getServiceName() + "] Set instid on lightweight person...");

    BasicPerson basicPerson = (BasicPerson) getAppConfig().getObject(BASIC_PERSON);
    logger.debug("[" + getServiceName() + "] Got " + BASIC_PERSON + " from AppConfig, performing Query...");


    List a = basicPerson.query(lightPerson, p2p);
    logger.debug("[" + getServiceName() + "] Executed Query...");

    if (a.size() == 0) {
      logger.debug("[" + getServiceName() + "] No rows found matching the query.");
      return null;
    } else {
      BasicPerson bp = (BasicPerson) a.get(0);
      return bp;
    }
  }
View Full Code Here

      "publishErrorsForMissingEntries is: " +
      getPublishErrorsForMissingEntries());

    // Verify that all message objects required are in AppConfig.
    try {
      BasicPerson bPerson = (BasicPerson)getAppConfig()
        .getObject("BasicPerson");
    }
    catch (EnterpriseConfigurationObjectException eoce) {
      // An error occurred retrieving a required object from AppConfig. Log it
      // and throw an exception.
View Full Code Here

      publishSyncError(eControlArea, errors);
      return;
    }

    // Get two configured BasicPerson objects from AppConfig.
    BasicPerson currentBasicPerson = null;
    BasicPerson newBasicPerson = null;
    try {
      currentBasicPerson = (BasicPerson)getAppConfig().getObject("BasicPerson");
      newBasicPerson = (BasicPerson)getAppConfig().getObject("BasicPerson");
    }
    catch (EnterpriseConfigurationObjectException ecoe) {
      // An error occurred getting an object from AppConfig. Log it and
      // publish a sync error message.
      Error error = new Error();
      error.setType("application");
      error.setErrorNumber("OpenEAI-3001");
      error.setErrorDescription("An error occurred getting an object from " +
        "AppConfig. the exception is: " + ecoe.getMessage());
      errors = new ArrayList();
      errors.add(error);
      publishSyncError(eControlArea, errors, ecoe);
      return;
    }
   
    logger.info("[BasicPersonSyncCommand.execute] "+messageAction+" is the requested action.");
   
    // Handle a BasicPerson.Delete-Sync
    if (messageAction.equalsIgnoreCase("Delete")) {
      logger.info("[BasicPersonSyncCommand.execute] Ignoring BasicPerson.Delete-Sync...");
    }

    // Do not handle a BasicPerson.Create-Sync
    if (messageAction.equalsIgnoreCase("Create")) {
      logger.info("[BasicPersonSyncCommand.execute] Ignoring BasicPerson.Create-Sync...");
    }

    // Handle a BasicPerson.Update-Sync
    if (messageAction.equalsIgnoreCase("Update")) {
      // Get the baseline state of the BasicPerson and build a BasicPerson
      // object.
      Element eBaselinePerson = inDoc.getRootElement().getChild("DataArea")
        .getChild("BaselineData").getChild("BasicPerson");
      try
        currentBasicPerson.buildObjectFromInput(eBaselinePerson);
      }
      catch (EnterpriseLayoutException ele) {
        // An error occurred building the BasicPerson object from the
        // BasicPerson element contained in the BaselineData element of the
        // message. Log it and publish a sync error message.
        Error error = new Error();
        error.setType("system");
        error.setErrorNumber("SakaiGateway-1001");
        error.setErrorDescription("An error occurred building the BasicPerson "
          + "object from the BasicPerson element contained in the " +
          "BaselineData element of the message. The exception is: " +
          ele.getMessage());
        errors = new ArrayList();
        errors.add(error);
        publishSyncError(eControlArea, errors, ele);
        return;
      }

      // Get the new state of the BasicPerson and build a BasicPerson
      // object.
      Element eNewPerson = inDoc.getRootElement().getChild("DataArea")
        .getChild("NewData").getChild("BasicPerson");
      try
        newBasicPerson.buildObjectFromInput(eNewPerson);
      }
      catch (EnterpriseLayoutException ele) {
        // An error occurred building the BasicPerson object from thw
        // BasicPerson element contained in the NewData element of
        // the message. Log it and publish a sync error message.
        Error error = new Error();
        error.setType("system");
        error.setErrorNumber("DirectoryServiceGateway-1002");
        error.setErrorDescription("An error occurred building the " +
          "BasicPerson object from the BasicPerson element contained in " +
          "the NewData element of the message. The exception is: " +
          ele.getMessage());
        errors = new ArrayList();
        errors.add(error);
        publishSyncError(eControlArea, errors, ele);
        return;
      }

      // Determine whether the user exists in the portal database.
      String instId = currentBasicPerson.getInstitutionalId();
      PortalPerson portalPerson = null;
      try { portalPerson = retrievePortalPersonByInstId(instId); }
      catch (CommandException ce) {
        // An error occurred querying the portal database to determine whether
        // the user exists. Log it, publish a error message, and return.
        String errMsg = "An error occurred querying the portal database to " +
          "determine whether the user exists.";
        logger.debug("[BasicPersonSyncCommand.execute] " + errMsg);
        Error error = new Error();
        error.setType("system");
        error.setErrorNumber("SakaiGateway-2001");
        error.setErrorDescription(errMsg);
        errors = new ArrayList();
        errors.add(error);
        publishSyncError(eControlArea, errors, ce);
        return;
      }

      // If there are no matching entries and the publishErrorsForMissingEntries
      // property is true, publish a error message indicating that the user does
      // not exist. Otherwise, log the fact that the user does not exist and
      // return.
      if (portalPerson == null) {
        if (getPublishErrorsForMissingEntries() == true) {
          // --- Publish the sync error.
          Error error = new Error();
          error.setType("application");
          error.setErrorNumber("SakaiGateway-1005");
          error.setErrorDescription("No user with user ID " + instId +
            " exists in the portal. Cannot reset the password for this user.");
          logger.fatal("[BasicPersonSyncCommand.execute] " +
            error.getErrorDescription());
          errors = new ArrayList();
          errors.add(error);
          publishSyncError(eControlArea, errors);
          return;
        }
        else {
          // --- Just log it.
          logger.info("[BasicPersonSyncCommand.execute] No user with user ID " +
            instId + " exists in the portal. Cannot reset the password for " +
            "this user.");
          return;
        }
      }

      // Otherwise, the user already exists in the portal, so determine if their
      // name and e-mail have changed and, if so, update them.
      else {
        // Get the new first name, last name, and e-mail address.
        String newFirstName = newBasicPerson.getName().getFirstName();
        String newLastName = newBasicPerson.getName().getLastName();
        String email=getEmailAddress(newBasicPerson.getEmail());


        // Determine whether the name or e-mail address has changed.
        PortalPerson newPortalPerson = new PortalPerson(portalPerson);
        newPortalPerson.setFirstName(newFirstName);
View Full Code Here

    logger.info("[" + getServiceName() + "] The value of " + "publishErrorsForMissingEntries is: " +
      getPublishErrorsForMissingEntries());

    // Verify that all message objects required are in AppConfig.
    try {
      BasicPerson person = (BasicPerson)getAppConfig().getObject("BasicPerson");
    }
    catch (EnterpriseConfigurationObjectException eoce) {
      // An error occurred retrieving a required object from AppConfig. Log it
      // and throw an exception.
      String errMsg = "An error occurred retrieving a required object from " +
View Full Code Here

      publishSyncError(eControlArea, errors);
      return;
    }
   
    // Get two configured BasicPerson objects from AppConfig.
    BasicPerson currentBasicPerson = null;
    BasicPerson newBasicPerson = null;
    try {
      currentBasicPerson = (BasicPerson)getAppConfig().getObject("BasicPerson");
      newBasicPerson = (BasicPerson)getAppConfig().getObject("BasicPerson");
    }
    catch (EnterpriseConfigurationObjectException ecoe) {
      // An error occurred getting an object from AppConfig. Log it and
      // publish a sync error message.
      publishError ("application", "OpenEAI-3001", "An error occurred getting an object from " +
          "AppConfig. the exception is: " + ecoe.getMessage(), "[" + getServiceName() + ".execute] ", ecoe);
      return;
    }
   
    // Handle a BasicPerson.Update-Sync
    if (messageAction.equalsIgnoreCase("Update")) {
      // Get the baseline state of the BasicPerson and build a BasicPerson
      // object.
      Element eBaselinePerson = inDoc.getRootElement().getChild("DataArea")
      .getChild("BaselineData").getChild("BasicPerson");
      try
        currentBasicPerson.buildObjectFromInput(eBaselinePerson);
      }
      catch (EnterpriseLayoutException ele) {
        // An error occurred building the BasicPerson object from the
        // BasicPerson element contained in the BaselineData element of the
        // message. Log it and publish a sync error message.
        publishError ("system", "DirectoryServiceGateway-1001", "An error occurred building the BasicPerson "
            + "object from the BasicPerson element contained in the " +
            "BaselineData element of the message. The exception is: " +
            ele.getMessage(), "[" + getServiceName() + ".execute] ", ele);
        return;
      }
     
      String institutionalID = currentBasicPerson.getInstitutionalId();
      // Find out of the person exists in the directory.  Update can only
      // work on existing persons
     
      if (!personExists ("employeeNumber", institutionalID))
      {
        publishError ("system", "DirectoryServiceGateway-1008", "Person with InstitutionalID \"" +
                      institutionalID + "\" does not exist in the directory.  Update only possible with " +
                      "existing persons.", "[" + getServiceName() + ".execute] ");
        return;
      }

      // Get the new state of the BasicPerson and build a BasicPerson
      // object.
      Element eNewPerson = inDoc.getRootElement().getChild("DataArea").getChild("NewData").getChild("BasicPerson");
      try
        newBasicPerson.buildObjectFromInput(eNewPerson);
      }
      catch (EnterpriseLayoutException ele) {
        // An error occurred building the BasicPerson object from thw
        // BasicPerson element contained in the NewData element of
        // the message. Log it and publish a sync error message.
        publishError ("system", "DirectoryServiceGateway-1002", "An error occurred building the " +
            "BasicPerson object from the BasicPerson element contained in " +
            "the NewData element of the message. The exception is: " +
            ele.getMessage(), "[" + getServiceName() + ".execute] ", ele);
        return;
      }
     
      // Determine whether the user exists is the directory server.
      String userName = "";
      if (currentBasicPerson.getName() != null)
        userName = currentBasicPerson.getName().getFirstName() + " " + currentBasicPerson.getName().getLastName();
     
      logger.debug("[" + getServiceName() + ".execute] Querying the directory to "
          + "see if this person already exists in the directory.");
     
      // Specify the search filter for the directory service query using
      // the uniqueMember and the uniquePermission built above.
      String filter = "employeeNumber=" + institutionalID;
      logger.debug("[" + getServiceName() + ".execute] Search filter is: " + filter);
     
      // Specify the providerUrl.
      String providerUrl = getUserDirectoryTreeBase();
      logger.debug("[" + getServiceName() + ".execute] providerUrl is: " + providerUrl);
     
      // Specify search controls that set the scope of the search.
      SearchControls cons = new SearchControls();
      cons.setSearchScope(SearchControls.ONELEVEL_SCOPE);
      String[] attrs = new String[7];
      attrs[0] = "uid";
      attrs[1] = "cn";
      attrs[2] = "telephoneNumber";
      attrs[3] = "mail";
      attrs[4] = "homePhone";
      attrs[5] = "mobile";
      attrs[6] = "displayName";
     
      cons.setReturningAttributes(attrs);
     
      // Search for user entries that match the employeeNumber, retrieving
      // the uid.
      try {
        logger.debug("[" + getServiceName() + ".execute] Querying the directory "
            + "server.");
        NamingEnumeration results = getDirContext().search(providerUrl, filter,
            cons);
       
        // If there are no matching entries and the
        // publishErrorsForMissingEntries property is true, publish a error
        // message indicating that the user does not exist. Otherwise, log the
        // fact that the user does not exist and return.
        if (results == null || results.hasMore() == false) {
          if (getPublishErrorsForMissingEntries() == true) {
            // --- Publish the sync error.
            publishError ("application", "DirectoryServiceGateway-1003", "No user " + userName + "(" +
                currentBasicPerson.getInstitutionalId() + ") exists in the " +
                "directory. Cannot modify attributes for this user.", "[" + getServiceName() + ".execute] ");
            return;
          }
          else {
            // --- Just log it.
            logger.info("[" + getServiceName() + ".execute] No user " + userName +
                "(" + currentBasicPerson.getInstitutionalId() + ") exists in " +
            "the directory. Cannot modify attributes for this user.");
            return;
          }
        }
       
        // Otherwise, the user already exists in the directory.
        else {
          // Get the uid and cn for the user.
          SearchResult sr = (SearchResult)results.next();
          String uid = (String)sr.getAttributes().get("uid").get();
          String currentName = (String)sr.getAttributes().get("cn").get();
          Attribute dispName = sr.getAttributes().get("displayName");
          String currentDisplayName = "";
         
          if (dispName != null)
            currentDisplayName = (String)dispName.get();
         
          // Determine whether the user's name has changed.
          boolean isNameChanged = false;
          String newName = newBasicPerson.getName().getLastName();
          String newDisplayName = newName;
          if (newBasicPerson.getName().getFirstName() != null)
          {
            newName = newBasicPerson.getName().getFirstName() + " " + newName;
            String newMiddleName = newBasicPerson.getName().getMiddleName();
           
            if (newMiddleName != null && newMiddleName.length() > 0)
            {
              newDisplayName = newBasicPerson.getName().getFirstName() + " " + newBasicPerson.getName().getMiddleName().charAt(0) + ". " + newBasicPerson.getName().getLastName();
            }
            else
              newDisplayName = newName;
          }
          if (currentName.equals(newName) == false || currentDisplayName.equals(newDisplayName) == false)
            isNameChanged = true;
         
          // If the name has changed, update the given name, surname, and
          // common name in the user's directory entry. Otherwise, log the
          // fact that the names are the same and no change is required and
          // return.
          if (isNameChanged == true) {
            logger.info("[" + getServiceName() + ".execute] The current name " +
                "of the user ('" + currentName + "') and the new name ('" + newName +
            "') are not the same.");
           
            updateName (uid, newBasicPerson.getName().getFirstName(), newBasicPerson.getName().getLastName(), newBasicPerson.getName().getMiddleName());
          }
          // (As mentioned above...otherwise, log the fact that the names are
          // the same and no change is required and return.)
          else {
            logger.info("[" + getServiceName() + ".execute] The current name " +
                "of the user ('" + currentName + "') and the new name ('" +
                newName + "') are the same, so no update of the name in the " +
            "directory is required.");
          }
         
          // Determine whether any of the user's phone numbers have changed.
//          boolean isPhoneChanged = false;
          boolean hasHome = false;
          boolean isHomeChanged = false;
          boolean hasOffice = false;
          boolean isOfficeChanged = false;
          boolean hasMobile = false;
          boolean isMobileChanged = false;
          String currentPhone = null;
          String newPhone = null;
          String type = null;
         
          //check to see if data area contains a phone number
          //else delete all phone numbers from directory if none found
          if(newBasicPerson.getPhone().isEmpty() == false){
           
            //Determine what phone types are present in newBasicPerson
            for (int i =0; i < newBasicPerson.getPhone().size(); i++){
              newPhone = newBasicPerson.getPhone(i).getPhoneNumber();
              newPhone = newBasicPerson.getPhone(i).getPhoneArea() + "-" + newPhone;

              if(newBasicPerson.getPhone(i).getType().equalsIgnoreCase("home"))
                hasHome = true;
              if(newBasicPerson.getPhone(i).getType().equalsIgnoreCase("office"))
                hasOffice = true;
              if(newBasicPerson.getPhone(i).getType().equalsIgnoreCase("mobile"))
                hasMobile = true;
            }
           
            //Check each phone type for changes
            for (int i =0; i < newBasicPerson.getPhone().size(); i++){
              currentPhone = null;
//              isPhoneChanged = false;
              newPhone = newBasicPerson.getPhone(i).getPhoneNumber();
              newPhone = newBasicPerson.getPhone(i).getPhoneArea() + "-" + newPhone;
              if(hasHome == true && newBasicPerson.getPhone(i).getType().equalsIgnoreCase("home")){
                type = "homePhone";
                if(sr.getAttributes().get(type) != null)
                  currentPhone = (String) sr.getAttributes().get(type).get();
                if(newPhone.equals(currentPhone) == false){
                  isHomeChanged = true;
                  updatePhone(uid, newPhone, type);
                }
              }
              else {
                type = "homePhone";
                if(hasHome == false && (sr.getAttributes().get(type) != null) && isHomeChanged != true){
                  deletePhone(uid, type);
                  isHomeChanged = true;
                }
              }
             
              if(hasOffice == true && newBasicPerson.getPhone(i).getType().equalsIgnoreCase("office")){
                //compare newPhone to currentPhone
                type = "telephoneNumber";
                if(sr.getAttributes().get(type) != null)
                  currentPhone = (String) sr.getAttributes().get(type).get();
                if(newPhone.equals(currentPhone) == false){
                  isOfficeChanged = true;
                    updatePhone(uid, newPhone, type);
                }
              }
              else {
                type = "telephoneNumber";
                if(hasOffice == false && (sr.getAttributes().get(type) != null) && isOfficeChanged != true){
                  deletePhone(uid, type);
                  isOfficeChanged = true;
                }
              }
              if(hasMobile == true && newBasicPerson.getPhone(i).getType().equalsIgnoreCase("mobile")){
                //compare newPhone to currentPhone
                type = "mobile";
                if(sr.getAttributes().get(type) != null)
                  currentPhone = (String) sr.getAttributes().get(type).get();
                if(newPhone.equals(currentPhone) == false){
                  isMobileChanged = true;
                  updatePhone(uid, newPhone, type);
                }
              }
              else {
                type = "mobile";
                if(hasMobile == false && (sr.getAttributes().get(type) != null) && isMobileChanged != true){
                  deletePhone(uid, type);
                  isMobileChanged = true;
                }
              }
//             create an info message stating which phone number have not changed.
              String outputType = " ";
              if(newBasicPerson.getPhone(i).getType().equalsIgnoreCase("office") && isOfficeChanged == false){
                outputType = "office";
                logger.info("[" + getServiceName() + ".execute] The current " + outputType + " phone " +
                    "has not changed, so no update of the " + outputType + " phone in the directory is required.");
              }
              if(newBasicPerson.getPhone(i).getType().equalsIgnoreCase("home") && isHomeChanged == false){
                outputType = "home";
                logger.info("[" + getServiceName() + ".execute] The current " + outputType + " phone " +
                    "has not changed, so no update of the " + outputType + " phone in the directory is required.");
              }
              if(newBasicPerson.getPhone(i).getType().equalsIgnoreCase("mobile") && isMobileChanged == false){
                outputType = "mobile";
                logger.info("[" + getServiceName() + ".execute] The current " + outputType + " phone " +
                    "has not changed, so no update of the " + outputType + " phone in the directory is required.");
              }
             
            } 
          }
          else{
            // newBasicPerson has no phone numbers
            // if search returns any phone numbers,
            // delete phone number in DSG repository.
            // Assume user intends to delete phone numbers
            String[] checkType = { "homePhone", "telephoneNumber", "mobile" };
            for (int i = 0; i < checkType.length; i++){
              if (sr.getAttributes().get(checkType[i]) != null){
                deletePhone(uid, checkType[i]);
              }
            }
          }
         
         
          /************************************************************************************************************/
         
         
          // Determine whether any of the user's email addresses have changed.
          boolean isPerferred = false;
          String currentEmail = null;
          String newEmail = null;
         
          //check to see if data area contains an email address
          //else delete email address from directory if found
          if(newBasicPerson.getEmail().isEmpty() == false){
           
            //Determine if any of the emails is a perferred email to use to check if update is required
            //directory should store the preferred email if available
            for (int i =0; i < newBasicPerson.getEmail().size(); i++){
              if(newBasicPerson.getEmail(i).getPreferred().equalsIgnoreCase("yes")){
                isPerferred = true;
                newEmail =  newBasicPerson.getEmail(i).getEmailAddress();
              }
            }
            if(isPerferred == true){
              //get currentEmail and compare to perferred newEmail
              //if not the same perform updateEmail()
              if(sr.getAttributes().get("mail") != null) currentEmail = (String) sr.getAttributes().get("mail").get();
              if(newEmail.equals(currentEmail) == false) updateEmail(uid, newEmail);
              else {
                logger.info("[" + getServiceName() + ".execute] The current email address " +
                    "of the user ('" + currentEmail + "') and the new email address ('" + newEmail +
                "') are the same, so no update of the email in the directory is required.");
                }
              }
            if(isPerferred == false){
              newEmail = newBasicPerson.getEmail(0).getEmailAddress();
              if (sr.getAttributes().get("mail") != null) currentEmail = (String)sr.getAttributes().get("mail").get();
              if(newEmail.equals(currentEmail) == falseupdateEmail(uid, newEmail);
              else {
                logger.info("[" + getServiceName() + ".execute] The current email address " +
                    "of the user ('" + currentEmail + "') and the new email address ('" + newEmail +
View Full Code Here

   * @return List containing state names
   */
  private List getStates() {
    ArrayList states = new ArrayList();
      try {
        BasicPerson bPerson =
          (BasicPerson)appConfig.getObject(BASIC_PERSON);

        // state drop downs
        java.util.HashMap hm = bPerson.getEnterpriseFields().getFieldsForObject("Address");
        org.openeai.config.Field stateField = (org.openeai.config.Field)hm.get("StateOrProvince");
        org.openeai.config.EnterpriseTranslator et = stateField.getFormatter().getTranslator();
        java.util.Enumeration keys = et.getMappings().keys();
        while (keys.hasMoreElements()) {
          String fieldName = (String)keys.nextElement();
View Full Code Here

   * Creates a list of email types from the EO doc (See EmailEO.xml)
   * @return List containing email types
   */
  private List getEmailTypes() {
    ArrayList emailTypes = new ArrayList();
        BasicPerson bPerson=null;
    try {
      bPerson = (BasicPerson)appConfig.getObject(BASIC_PERSON);
      java.util.HashMap hm3 = bPerson.getEnterpriseFields().getFieldsForObject("Email");
      org.openeai.config.Field emailTypeField = (org.openeai.config.Field)hm3.get("Type");
      org.openeai.config.EnterpriseTranslator et4 = emailTypeField.getFormatter().getTranslator();
      java.util.Enumeration keys4 = et4.getMappings().keys();
      while (keys4.hasMoreElements()) {
        String fieldName = (String)keys4.nextElement();
View Full Code Here

   * Creates a list of phone types from the EO doc (See PhoneEO.xml).
   * @return List containing phone types
   */
  private List getPhoneTypes() {
    ArrayList phoneTypes = new ArrayList();
        BasicPerson bPerson=null;
    try {
      bPerson = (BasicPerson)appConfig.getObject(BASIC_PERSON);
          java.util.HashMap hm2 = bPerson.getEnterpriseFields().getFieldsForObject("Phone");
          org.openeai.config.Field phoneTypeField = (org.openeai.config.Field)hm2.get("Type");
          org.openeai.config.EnterpriseTranslator et3 = phoneTypeField.getFormatter().getTranslator();
          java.util.Enumeration keys3 = et3.getMappings().keys();
          while (keys3.hasMoreElements()) {
            String fieldName = (String)keys3.nextElement();
View Full Code Here

   * Creates a list of address types from the EO doc (See AddressEO.xml).
   * @return List containing phone types
   */
  private List getAddressTypes() {
    ArrayList addressTypes = new ArrayList();
        BasicPerson bPerson=null;
    try {
      bPerson = (BasicPerson)appConfig.getObject(BASIC_PERSON);
          java.util.HashMap hm = bPerson.getEnterpriseFields().getFieldsForObject("Address");
          org.openeai.config.Field addressTypeField = (org.openeai.config.Field)hm.get("Type");
          org.openeai.config.EnterpriseTranslator et3 = addressTypeField.getFormatter().getTranslator();
          java.util.Enumeration keys3 = et3.getMappings().keys();
          while (keys3.hasMoreElements()) {
            String fieldName = (String)keys3.nextElement();
View Full Code Here

TOP

Related Classes of com.any_erp_vendor.moa.jmsobjects.person.v1_0.BasicPerson

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.