| | |
| | | import static com.forgerock.opendj.ldap.tools.ToolsMessages.*; |
| | | import static com.forgerock.opendj.ldap.tools.ToolConstants.*; |
| | | import static com.forgerock.opendj.ldap.tools.Utils.filterExitCode; |
| | | import static org.forgerock.opendj.ldap.ErrorResultException.newErrorResult; |
| | | |
| | | import java.io.FileInputStream; |
| | | import java.io.IOException; |
| | |
| | | import org.forgerock.opendj.ldap.requests.DeleteRequest; |
| | | import org.forgerock.opendj.ldap.requests.ModifyDNRequest; |
| | | import org.forgerock.opendj.ldap.requests.ModifyRequest; |
| | | import org.forgerock.opendj.ldap.responses.Responses; |
| | | import org.forgerock.opendj.ldap.responses.Result; |
| | | import org.forgerock.opendj.ldif.*; |
| | | |
| | |
| | | { |
| | | // This shouldn't happen because there are no other threads |
| | | // to interrupt this one. |
| | | r = Responses.newResult(ResultCode.CLIENT_SIDE_USER_CANCELLED) |
| | | .setCause(e).setDiagnosticMessage(e.getLocalizedMessage()); |
| | | throw ErrorResultException.wrap(r); |
| | | throw newErrorResult( |
| | | ResultCode.CLIENT_SIDE_USER_CANCELLED, |
| | | e.getLocalizedMessage(), e); |
| | | } |
| | | printResult(opType, change.getName().toString(), r); |
| | | return r.getResultCode().intValue(); |
| | |
| | | { |
| | | // This shouldn't happen because there are no other threads |
| | | // to interrupt this one. |
| | | r = Responses.newResult(ResultCode.CLIENT_SIDE_USER_CANCELLED) |
| | | .setCause(e).setDiagnosticMessage(e.getLocalizedMessage()); |
| | | throw ErrorResultException.wrap(r); |
| | | throw newErrorResult(ResultCode.CLIENT_SIDE_USER_CANCELLED, |
| | | e.getLocalizedMessage(), e); |
| | | } |
| | | printResult(opType, change.getName().toString(), r); |
| | | return r.getResultCode().intValue(); |
| | |
| | | { |
| | | // This shouldn't happen because there are no other threads |
| | | // to interrupt this one. |
| | | r = Responses.newResult(ResultCode.CLIENT_SIDE_USER_CANCELLED) |
| | | .setCause(e).setDiagnosticMessage(e.getLocalizedMessage()); |
| | | throw ErrorResultException.wrap(r); |
| | | throw newErrorResult(ResultCode.CLIENT_SIDE_USER_CANCELLED, |
| | | e.getLocalizedMessage(), e); |
| | | } |
| | | printResult(opType, change.getName().toString(), r); |
| | | return r.getResultCode().intValue(); |
| | |
| | | { |
| | | // This shouldn't happen because there are no other threads |
| | | // to interrupt this one. |
| | | r = Responses.newResult(ResultCode.CLIENT_SIDE_USER_CANCELLED) |
| | | .setCause(e).setDiagnosticMessage(e.getLocalizedMessage()); |
| | | throw ErrorResultException.wrap(r); |
| | | throw newErrorResult(ResultCode.CLIENT_SIDE_USER_CANCELLED, |
| | | e.getLocalizedMessage(), e); |
| | | } |
| | | printResult(opType, change.getName().toString(), r); |
| | | return r.getResultCode().intValue(); |