{
return;
}
// FIXME -- Do we need any special authorization here?
Entry taskEntry = getTaskEntry();
AttributeType typeDomainBase;
AttributeType typeSourceScope;
typeDomainBase =
getAttributeType(ATTR_TASK_INITIALIZE_DOMAIN_DN, true);
typeSourceScope =
getAttributeType(ATTR_TASK_INITIALIZE_SOURCE, true);
List<Attribute> attrList;
attrList = taskEntry.getAttribute(typeDomainBase);
domainString = TaskUtils.getSingleValueString(attrList);
try
{
DN dn = DN.decode(domainString);
// We can assume that this is an LDAP replication domain
domain = LDAPReplicationDomain.retrievesReplicationDomain(dn);
}
catch(DirectoryException e)
{
MessageBuilder mb = new MessageBuilder();
mb.append(TaskMessages.ERR_TASK_INITIALIZE_INVALID_DN.get());
mb.append(e.getMessage());
throw new DirectoryException(ResultCode.INVALID_DN_SYNTAX, e);
}
attrList = taskEntry.getAttribute(typeSourceScope);
String sourceString = TaskUtils.getSingleValueString(attrList);
source = domain.decodeSource(sourceString);
replaceAttributeValue(ATTR_TASK_INITIALIZE_LEFT, String.valueOf(0));
replaceAttributeValue(ATTR_TASK_INITIALIZE_DONE, String.valueOf(0));