Package org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0

Examples of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.EnterpriseUserPassword


    try {
      NetId netId = (NetId)getAppConfig().getObject("NetId");

      EnterpriseUser entUser = (EnterpriseUser)getAppConfig()
        .getObject("EnterpriseUser");
      EnterpriseUserPassword entUserPassword =
        (EnterpriseUserPassword)getAppConfig()
        .getObject("EnterpriseUserPassword");
    }
    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 " +
        "AppConfig. The exception is: " + eoce.getMessage();
      logger.fatal("[PasswordSyncCommand] " + errMsg);
      throw new InstantiationException(errMsg);
    }
   
    // Get the producer from AppConfig.
  try {
    p2p4BpQuery = (PointToPointProducer) getAppConfig().getObject("BasicPersonQuery");
    logger.info("p2p4BpQuery is "+p2p4BpQuery.getClass());
  } catch (EnterpriseConfigurationObjectException e) {
        String errMsg = "[PasswordSyncCommand] Error configuring producer for BasicPersonQuery. The exception is: " + e.getMessage();
        logger.error(errMsg);
        throw new InstantiationException(errMsg);       
  }
 
    // 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");
    }
    catch (EnterpriseConfigurationObjectException ecoe) {
      String errMsg = "[PasswordSyncCommand] An error occurred getting an  object from " +
          "AppConfig. the exception is: " + ecoe.getMessage();
View Full Code Here


      publishSyncError(eControlArea, errors);
      return;
    }

    // Get two configured EnterpriseUserPassword from AppConfig.
    EnterpriseUserPassword currentEntUserPassword = null;
    EnterpriseUserPassword newEntUserPassword = null;
    try {
      currentEntUserPassword = (EnterpriseUserPassword)getAppConfig()
        .getObject("EnterpriseUserPassword");
      newEntUserPassword = (EnterpriseUserPassword)getAppConfig()
        .getObject("EnterpriseUserPassword");
    }
    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;
    }

    // Handle an EnterpriseUserPassword.CreateSync
    if (messageAction.equalsIgnoreCase("Create")) {
     
      // Get the new state of the EnterpriseUserPassword and build an
      // EnterpriseUserPassword object.
      Element eNewPassword = inDoc.getRootElement().getChild("DataArea")
        .getChild("NewData").getChild("EnterpriseUserPassword");
      try
        newEntUserPassword.buildObjectFromInput(eNewPassword);
      }
      catch (EnterpriseLayoutException ele) {
        // An error occurred building the EnterpriseUserPassword object from the
        // EnterpriseUserPassword 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("SakaiGateway-1002");
        error.setErrorDescription("An error occurred building the " +
          "EnterpriseUserPassword object from the EnterpriseUserPassword " +
          "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 database.
      String userId = getUserId(newEntUserPassword);
      String instId = newEntUserPassword.getEnterpriseUser()
        .getLightweightPerson().getInstitutionalId();
      BasicPerson bp=null;
      try {
        logger.info("[PasswordSyncCommand.execute] Querying for BasicPerson.");
        bp = getBasicPerson(instId);
        logger.info("[PasswordSyncCommand.execute] Queried for BasicPerson.");
    } catch (EnterpriseConfigurationObjectException e) {
        // Log it, publish a error message, and return.
        String errMsg = "EnterpriseConfigurationObjectException: " + e.getMessage();
        logger.error("[PasswordSyncCommand.execute] " + errMsg);
        Error error = new Error();
        error.setType("system");
        error.setErrorNumber("SakaiGateway-1014");
        error.setErrorDescription(errMsg);
        errors = new ArrayList();
        errors.add(error);
        logger.info("[PasswordSyncCommand.execute] Publishing Sync.Error-Sync.");
        publishSyncError(eControlArea, errors);
        return
     } catch (EnterpriseFieldException e) {
        // Log it, publish a error message, and return.
        String errMsg = "EnterpriseFieldException: " + e.getMessage();
        logger.error("[PasswordSyncCommand.execute] " + errMsg);
        Error error = new Error();
        error.setType("system");
        error.setErrorNumber("SakaiGateway-1014");
        error.setErrorDescription(errMsg);
        errors = new ArrayList();
        errors.add(error);
       logger.info("[PasswordSyncCommand.execute] Publishing Sync.Error-Sync.");
        publishSyncError(eControlArea, errors);
        return
     } catch (EnterpriseObjectQueryException e) {
        // Log it, publish a error message, and return.
        String errMsg = "EnterpriseObjectQueryException: " + e.getMessage();
        logger.error("[PasswordSyncCommand.execute] " + errMsg);
        Error error = new Error();
        error.setType("system");
        error.setErrorNumber("SakaiGateway-1014");
        error.setErrorDescription(errMsg);
        errors = new ArrayList();
        errors.add(error);
        logger.info("[PasswordSyncCommand.execute] Publishing Sync.Error-Sync.");
        publishSyncError(eControlArea, errors);
        return
     }
  if (bp==null) {
        // No BasicPerson exists for this instId.
        // Log it, publish a error message, and return.
        String errMsg = "No BasicPerson exists for " + instId;
        logger.debug("[PasswordSyncCommand.execute] " + errMsg);
        Error error = new Error();
        error.setType("application");
        error.setErrorNumber("SakaiGateway-1012");
        error.setErrorDescription(errMsg);
        errors = new ArrayList();
        errors.add(error);
        publishSyncError(eControlArea, errors);
        return
      }
      PortalPerson portalPerson = null
      try { portalPerson = retrievePortalPersonByUserId(userId); }
      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("[PasswordSyncCommand.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 the user does exist, publish a error message indicating
      // that the user already exists.
      if (portalPerson != null) {
        Error error = new Error();
        error.setType("application");
        error.setErrorNumber("SakaiGateway-1011");
        error.setErrorDescription("User with user ID " + userId +
          ") exists in the portal. Cannot reset the password for this user.");
        logger.fatal("[PasswordSyncCommand.execute] " +
          error.getErrorDescription());
        errors = new ArrayList();
        errors.add(error);
        publishSyncError(eControlArea, errors);
        return;
      }

      // Create the portal user with info from BasicPerson and the
      // user's password to be the new value indicated in the message.
      else {
        logger.info("[PasswordSyncCommand.execute] BasicPerson="+bp);
        portalPerson = new PortalPerson();
        portalPerson.setEmailAddress(getEmailAddress(bp.getEmail()));
        portalPerson.setUserId(userId);
        portalPerson.setInstId(instId);
        portalPerson.setFirstName(bp.getName().getFirstName());
        portalPerson.setLastName(bp.getName().getLastName());
       
        // Encypt the password.
        String encryptedPassword=null;
        String cleartextPassword = newEntUserPassword.getPassword().getValue();
        try {
          encryptedPassword = hashPassword(cleartextPassword);
          logger.info("[PasswordSyncCommand.execute] cleartext password is: " +
                  cleartextPassword);
          logger.info("[PasswordSyncCommand.execute] excrypted password is: " +
                  encryptedPassword);
        } catch (NoSuchAlgorithmException nsae) {
          Error error = new Error();
          error.setType("application");
          error.setErrorNumber("SakaiGateway-1002");
          error.setErrorDescription("A NoSuchAlgorithmException occurred encrypting the user " +
            "password. The exception is: " + nsae.getMessage());
          logger.fatal("[PasswordSyncCommand.execute] " +
            error.getErrorDescription());
          errors = new ArrayList();
          errors.add(error);
          publishSyncError(eControlArea, errors, nsae);
          return;
        } catch (MessagingException nsae) {
            Error error = new Error();
            error.setType("application");
            error.setErrorNumber("SakaiGateway-1002");
            error.setErrorDescription("A MessagingException occurred encrypting the user " +
              "password. The exception is: " + nsae.getMessage());
            logger.fatal("[PasswordSyncCommand.execute] " +
              error.getErrorDescription());
            errors = new ArrayList();
            errors.add(error);
            publishSyncError(eControlArea, errors, nsae);
            return;
    } catch (IOException nsae) {
            Error error = new Error();
            error.setType("application");
            error.setErrorNumber("SakaiGateway-2022");
            error.setErrorDescription("An IOException occurred encrypting the user " +
              "password. The exception is: " + nsae.getMessage());
            logger.fatal("[PasswordSyncCommand.execute] " +
              error.getErrorDescription());
            errors = new ArrayList();
            errors.add(error);
            publishSyncError(eControlArea, errors, nsae);
            return;
    }       
       
        portalPerson.setPassword(encryptedPassword);
        try {
      createPortalPerson(portalPerson);
    } catch (CommandException e) {
          Error error = new Error();
          error.setType("system");
          error.setErrorNumber("SakaiGateway-1020");
          String errmsg = "An error occurred building the portal person. The exception is: " +
              e.getMessage();
          error.setErrorDescription(errmsg);
          errors = new ArrayList();
          errors.add(error);
          publishSyncError(eControlArea, errors, e);
          logger.error("[PasswordSyncCommand.execute] Can't create portal person. \n"+errmsg);
          return;
    }
      }
    }

   
    // Handle an EnterpriseUserPassword.Update-Sync.
    if (messageAction.equalsIgnoreCase("Update")) {
     
      // Get the new state of the EnterpriseUserPassword and build an
      // EnterpriseUserPassword object.
      Element eNewPassword = inDoc.getRootElement().getChild("DataArea")
        .getChild("NewData").getChild("EnterpriseUserPassword");
      try
        newEntUserPassword.buildObjectFromInput(eNewPassword);
      }
      catch (EnterpriseLayoutException ele) {
        // An error occurred building the EnterpriseUserPassword object from the
        // EnterpriseUserPassword 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("SakaiGateway-1002");
        error.setErrorDescription("An error occurred building the " +
          "EnterpriseUserPassword object from the EnterpriseUserPassword " +
          "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 database.
      String userId = getUserId(newEntUserPassword);
      PortalPerson portalPerson = null
      try {
        portalPerson = retrievePortalPersonByUserId(userId);
      }
      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("[PasswordSyncCommand.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 the user does not exist, publish a error message indicating
      // that the user does not exist.
      if (portalPerson == null) {
        Error error = new Error();
        error.setType("application");
        error.setErrorNumber("SakaiGateway-1001");
        error.setErrorDescription("No user with user ID " + userId +
          ") exists in the portal. Cannot reset the password for this user.");
        logger.fatal("[PasswordSyncCommand.execute] " +
          error.getErrorDescription());
        errors = new ArrayList();
        errors.add(error);
        publishSyncError(eControlArea, errors);
        return;
      }

      // Otherwise, the user already exists in the portal, so reset the
      // user's password to be the new value indicated in the message.
      else {
        // Encypt the password.
        String encryptedPassword=null;
        String cleartextPassword = newEntUserPassword.getPassword().getValue();
        try {
          encryptedPassword = hashPassword(cleartextPassword);
          logger.info("[PasswordSyncCommand.execute] cleartext password is: " +
                  cleartextPassword);
          logger.info("[PasswordSyncCommand.execute] excrypted password is: " +
View Full Code Here

      } else {
        eu = (EnterpriseUser) euQueryList.get(0);
        logger.info("["+portletName+"] Found EnterpriseUser: " + eu);
      }
     
      EnterpriseUserPassword eup=(EnterpriseUserPassword)appConfig.getObject(ENTERPRISE_USER_PASSWORD);
      eup.setEnterpriseUser(eu);
      Password p = eup.newPassword();
      p.setValue(newPassword);
      p.setType("secure credential");
      p.setEncryption("cleartext");
     
      java.util.List returnedEup = eup.query(eu, p2p);
      if (returnedEup.size() == 0) {
        //create the password
        eup.setPassword(p);
        eup.create(p2p);
      logger.info("["+portletName+"] Created the EntepriseUserPassword");               
        return eup;
      } else {
        //update the password
        EnterpriseUserPassword baselineEup = (EnterpriseUserPassword) returnedEup.get(0);
      logger.info("["+portletName+"] baseline="+baselineEup);       
        eup.setBaseline(baselineEup);
        eup.setPassword(p);
        eup.update(p2p);
        return eup;
View Full Code Here

      logger.debug("[ProcessInputLine] Processing line " + m_lineNumber + ": " +
        m_line);
     
      // Get a greeting and a greetee object from AppConfig to use in
      // processing this line.
      Greeting greeting = null;
      Greetee greetee = null;
      try {
        greeting = (Greeting)getAppConfig().getObject("Greeting");
        greetee = (Greetee)getAppConfig().getObject("Greetee");
      }
      catch (EnterpriseConfigurationObjectException ecoe) {
        // An error occurred retrieving an object from AppConfig. Log it,
        // increment the error count, and return.
        String errMsg = "An error occurred retrieving an object from " +
          "AppConfig. The exception is: " + ecoe.getMessage();
        logger.fatal("[ProcessInputLine.run] An error occurred processing " +
          "line number " + m_lineNumber + ": " + errMsg);
        incrementErrorCount();
        return;
      }

      // Set the full name of the greetee.
      try { greetee.setFullName(m_line.trim()); }
      catch (EnterpriseFieldException efe) {
        // An error occurred setting the value of the full name for the
        // greetee. Log it, increment the error count, and return.
        String errMsg = "An error occurred setting the value of the full name "
          + "of the greetee. The exception is: " + efe.getMessage();
        logger.fatal("[ProcessInputLine.run] An error occurred processing " +
          "line number " + m_lineNumber + ": " + errMsg);
        incrementErrorCount();
        return
      }

      // Generate the greeting.
      List results = null;
      try {
        logger.info("[ProcessInputLine.run] Sending a Greeting.Generate-" +
          "Request for: " + greetee.getFullName());
        results = greeting.generate(greetee, m_p2p);
      }    
      catch (EnterpriseObjectGenerateException eoge) {
        if (eoge.getMessage().toLowerCase().indexOf("time") != -1) {
          // The error was a timeout error. Log it.
          String errMsg = "Timed out waiting for reply.";
          logger.fatal("[ProcessInputLine.run] " + errMsg);
        }
        else {
          // An error occurred generating the greeting. Log it.
          String errMsg = "An error occurred generating the greeting. The " +
            "exception is: " + eoge.getMessage();
          logger.fatal("[ProcessInputLine.run] " + errMsg);
          eoge.printStackTrace();
        }
        // Increment the error count and return.
        incrementErrorCount();
        return;
      }

      // Display the greeting that was generated by EGS.
      for (int i=0; i < results.size(); i++) {
        greeting = (Greeting)results.get(i);
        logger.info("[ProcessInputLine.run] Greeting returned for '" +
          greetee.getFullName() + "' is: " + greeting.getText());
      }
     
      logger.debug("[ProcessInputLine.run] Completed processing line " +
        m_lineNumber + ": " + m_line);
View Full Code Here

        buildReplyDocumentWithErrors(eControlArea, localResponseDoc, errors);
      return getMessage(msg, replyContents);
    }

    // Get a configured Greeting and Greetee from AppConfig.
    Greeting greeting = new Greeting();
    try {
    greeting = (Greeting)getAppConfig().getObjectByType(greeting.getClass()
      .getName());
    }
    catch (EnterpriseConfigurationObjectException eoce) {
      logger.fatal("[GreetingRequestCommand] Error retrieving a Greeting " +
        "object from AppConfig: The exception is: " + eoce.getMessage());
   
    Greetee greetee = new Greetee();
    try {
      greetee = (Greetee)getAppConfig().getObjectByType(greetee.getClass()
        .getName());
    }
    catch (EnterpriseConfigurationObjectException eoce) {
      logger.fatal("[GreetingRequestCommand] Error retrieving a Greeting " +
        "object from AppConfig: The exception is: " + eoce.getMessage());
    }

    // Handle a Generate-Request.
    if (msgAction.equalsIgnoreCase("Generate")) {
      logger.info("[GreetingRequestCommand] Handling an " +
        "org.any-openeai-enterprise.CoreApplication.Greeting.Generate-Request" +
        " message.");
      Element eGreetee = inDoc.getRootElement().getChild("DataArea")
        .getChild("Greetee");

      // Verify that Greetee element is not null; if it is, reply with an error.
      if (eGreetee == null) {     
        String errType = "application";
        String errCode = "OpenEAI-1015";
        String errDesc = "Invalid generate element found in the Generate-" +
          "Request message. This command expects a Greetee.";
        logger.fatal("[GreetingRequestCommand] " + errDesc);
        logger.fatal("Message sent in is: \n" + getMessageBody(inDoc));
        ArrayList errors = new ArrayList();
        errors.add(buildError(errType, errCode, errDesc));
        String replyContents =
          buildReplyDocumentWithErrors(eControlArea, localResponseDoc, errors);
        return getMessage(msg, replyContents);
      }
     
      // Now build a Greetee object from the Greetee element in the message.
      try {
        greetee.buildObjectFromInput(eGreetee);
      }
      catch (EnterpriseLayoutException ele) {
        // There was an error building the Greetee object from a Greetee
        // element.
        String errType = "application";
        String errCode = "EnterpriseGreetingService-1001";
        String errDesc = "An error occurred building Greetee object from the " +
          "Greetee element in the Generate-Request message. The exception " +
          "is: " + ele.getMessage();
        logger.fatal("[GreeteeRequestCommand] " + errDesc);
        logger.fatal("Message sent in is: \n" + getMessageBody(inDoc));
        ArrayList errors = new ArrayList();
        errors.add(buildError(errType, errCode, errDesc));
        String replyContents =
        buildReplyDocumentWithErrors(eControlArea, localResponseDoc, errors);
        return getMessage(msg, replyContents);
      }

      // Generate the greeting.
      try {
        if (greetee.getFullName() != null && greetee.getFullName() != "") {
          // There is a greetee with a name to greet. Prepare the greeting text.
          greeting.setText("Hello, " + greetee.getFullName() + "!");
        }
        else {
          // There is no greetee with a name to greet. Use the default greeting
          // text.
          greeting.setText(getDefaultGreetingText());
        }
      }
      catch (EnterpriseFieldException efe) {
        // An error occurred setting the value of the greeting text. Log it and
        // reply with an error.
        String errType = "application";
        String errCode = "EnterpriseGreetingService-1002";
        String errDesc = "An error occurred setting the value of the " +
          "greeting text. The exception is: " + efe.getMessage();
        logger.fatal("[GreetingRequestCommand " + errDesc);
        ArrayList errors = new ArrayList();
        errors.add(buildError(errType, errCode, errDesc));
        String replyContents =
        buildReplyDocumentWithErrors(eControlArea, localResponseDoc, errors);
        return getMessage(msg, replyContents);
      }

      // Set the TestId.
      greeting.setTestId(greetee.getTestId());

      // Get pub/sub producer to use in this transaction.
      PubSubProducer pub = null;
      try {
        pub = (PubSubProducer)m_pubSubProducerPool.getProducer();
      }
      catch (JMSException jmse) {
        // An error occurred retrieving a pub/sub producer to use to publish
        // the Greeting.Create-Sync. Log it and reply with an error.
        String errType = "application";
        String errCode = "EnterpriseGreetingService-1003";
        String errDesc = "An error occurred retrieving a pub/sub producer to " +
          "use to publish the Greeting.Create-Sync. The exception is: " +
          jmse.getMessage();
        logger.fatal("[GreetingRequestCommand " + errDesc);
        ArrayList errors = new ArrayList();
        errors.add(buildError(errType, errCode, errDesc));
        String replyContents =
        buildReplyDocumentWithErrors(eControlArea, localResponseDoc, errors);
        return getMessage(msg, replyContents);
      }
   
      // Serialize the greeting and place it into the reply.
      String replyContents = null;
      try {
        localResponseDoc.getRootElement().getChild("DataArea").removeContent();
    localResponseDoc.getRootElement().getChild("DataArea").
        addContent((Element)greeting.buildOutputFromObject());
        replyContents = buildReplyDocument(eControlArea, localResponseDoc);
      }
      catch (EnterpriseLayoutException ele) {
        // There was an error building the Greeting element from the Greeting
        // object.
        String errType = "application";
        String errCode = "EnterpriseGreetingService-1004";
        String errDesc = "Error building Greeting element from the Greeting " +
          "object.  The exception is: " + ele.getMessage();
        logger.fatal("[GreetingRequestCommand " + errDesc);
        ArrayList errors = new ArrayList();
        errors.add(buildError(errType, errCode, errDesc));
        replyContents = buildReplyDocumentWithErrors(eControlArea,
          localResponseDoc, errors);
        return getMessage(msg, replyContents);
      }

      // Publish the create sync message.
      try { greeting.createSync(pub); }
      catch (EnterpriseObjectSyncException eose) {
        // An error occurred publishing the Greeting.Create-Sync message.
        // Log it and reply with an error.
        String errType = "application";
        String errCode = "EnterpriseGreetingService-1005";
View Full Code Here

    }

    // Verify that all message objects required are in AppConfig.
    // Get a configured NetId object out of AppConfig.
    try {
      InstitutionalIdentity instIdent = (InstitutionalIdentity)getAppConfig()
        .getObject("InstitutionalIdentity");
      UnknownPerson uPerson = (UnknownPerson)getAppConfig()
        .getObject("UnknownPerson");  
      Name aName = (Name)getAppConfig().getObject("Name");
    }
View Full Code Here

      epc = m_connPool.getExclusiveConnection();
      conn = epc.getConnection();
      conn.setAutoCommit(true);

      // Retrieve the InstitutionalIdentity.
      InstitutionalIdentity instIdent = new InstitutionalIdentity();
      instIdent = retrieveInstitutionalIdentity(conn, uPerson);
      return instIdent;
    }
    catch (SQLException se) {
      // There was an error retrieving a database connection from the pool to
View Full Code Here

  private final InstitutionalIdentity retrieveInstitutionalIdentity
    (java.sql.Connection conn, UnknownPerson uPerson) throws
    I2sRepositoryException {
    // If a social security number is provided, retrieve the
    // InstitutionalIdentity using that identifier.
    InstitutionalIdentity instIdent = new InstitutionalIdentity();
    if (uPerson.getSocialSecurityNumber() != null) {
      Identifier id = new Identifier();
      try {
        id.setType("SocialSecurityNumber");
        id.setValue(uPerson.getSocialSecurityNumber());
View Full Code Here

      epc = m_connPool.getExclusiveConnection();
      conn = epc.getConnection();
      conn.setAutoCommit(true);

      // Retrieve the InstitutionalIdentity.
      InstitutionalIdentity instIdent = new InstitutionalIdentity();
      instIdent = retrieveInstitutionalIdentity(conn, id);
      return instIdent;
    }
    catch (SQLException se) {
      // There was an error retrieving a database connection from the pool to
View Full Code Here

    boolean foundSupportedIdentifierType = false;

    // If the Identifier type is SocialSecurityNumber, retrieve the
    // InstitutionalIdentity by SSN.
    InstitutionalIdentity instIdent = new InstitutionalIdentity();
    if (id.getType().equalsIgnoreCase("SocialSecurityNumber")) {
      foundSupportedIdentifierType = true;
      instIdent = retrieveInstitutionalIdentityBySsn(conn, id.getValue());
    }
View Full Code Here

TOP

Related Classes of org.any_openeai_enterprise.moa.jmsobjects.coreapplication.v1_0.EnterpriseUserPassword

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.