"This method handles creation of new users in the enterprise directory, but a configuration flag " +
"preventing creation of mising users was set.", "[" + getServiceName() + "handleCreate]");
return;
}
EnterpriseUser newEntUser = null;
try {
newEntUser = (EnterpriseUser)getAppConfig().getObject(ENTERPRISE_USER);
}
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;
}
// Create the input document from the JMS message passed in.
Document inDoc = null;
try {
inDoc = initializeInput(messageNumber, aMessage);
}
catch (JMSException jmse) {
// An error occurred creating the input document from the JMS message
// passed in. Log it and publish a sync error.
publishError ("system", "OpenEAI-2101", "An error occurred creating the input document from the JMS message passed in. The exception is: " +
jmse.getMessage(), "[" + getServiceName() + ".handleCreate]", jmse);
return;
}
// Get the new state of the BasicPerson and build a BasicPerson object.
Element elemNewEnterpriseUser = inDoc.getRootElement().getChild("DataArea").getChild("NewData").getChild(ENTERPRISE_USER);
try {
newEntUser.buildObjectFromInput(elemNewEnterpriseUser);
}
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 EnterpriseUser object from the EnterpriseUser " +
"element contained in the NewData element of the message. The exception is: " +
ele.getMessage(), "[" + getServiceName() + ".handleCreate] ", ele);
return;
}
NetId netID = newEntUser.getNetId(0);
String principal = netID.getPrincipal();
// If the user entry does not exist in the directory, create it
if (!personExists (uidAttr, principal)) {
if (getCreateMissingUsers())