| | |
| | | } |
| | | |
| | | |
| | | boolean append = false; |
| | | boolean isCompressed = false; |
| | | boolean isEncrypted = false; |
| | | boolean overwrite = false; |
| | | boolean replaceExisting = false; |
| | | boolean skipSchemaValidation = false; |
| | | boolean clearBackend = false; |
| | | String backendID = null; |
| | | String rejectFile = null; |
| | | String skipFile = null; |
| | | ArrayList<String> excludeAttributeStrings = null; |
| | | ArrayList<String> excludeBranchStrings = null; |
| | | ArrayList<String> excludeFilterStrings = null; |
| | | ArrayList<String> includeAttributeStrings = null; |
| | | ArrayList<String> includeBranchStrings = null; |
| | | ArrayList<String> includeFilterStrings = null; |
| | | ArrayList<String> ldifFiles = null; |
| | | String templateFile = null; |
| | | int randomSeed = 0; |
| | | |
| | | private boolean append = false; |
| | | private boolean isCompressed = false; |
| | | private boolean isEncrypted = false; |
| | | private boolean overwrite = false; |
| | | private boolean replaceExisting = false; |
| | | private boolean skipSchemaValidation = false; |
| | | private boolean clearBackend = false; |
| | | private String backendID = null; |
| | | private String rejectFile = null; |
| | | private String skipFile = null; |
| | | private ArrayList<String> excludeAttributeStrings = null; |
| | | private ArrayList<String> excludeBranchStrings = null; |
| | | private ArrayList<String> excludeFilterStrings = null; |
| | | private ArrayList<String> includeAttributeStrings = null; |
| | | private ArrayList<String> includeBranchStrings = null; |
| | | private ArrayList<String> includeFilterStrings = null; |
| | | private ArrayList<String> ldifFiles = null; |
| | | private String templateFile = null; |
| | | private int randomSeed = 0; |
| | | private LDIFImportConfig importConfig; |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public Message getDisplayName() { |
| | | return INFO_TASK_IMPORT_NAME.get(); |
| | | } |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public Message getAttributeDisplayName(String name) { |
| | | return argDisplayMap.get(name); |
| | | } |
| | |
| | | throw new DirectoryException(ResultCode.UNWILLING_TO_PERFORM, message); |
| | | } |
| | | // Make sure that if the "backendID" argument was provided, no include |
| | | // base was included, and the "append" ption was not provided, the |
| | | // base was included, and the "append" option was not provided, the |
| | | // "clearBackend" argument was also provided if there are more then one |
| | | // baseDNs for the backend being imported. |
| | | else if(!append && includeBranchStrings.isEmpty() && |
| | |
| | | message); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | // The include branch is not associated with any backend. |
| | | Message message = |
| | | ERR_NO_BACKENDS_FOR_BASE.get(includeBranch |
| | | .toNormalizedString()); |
| | | throw new DirectoryException(ResultCode.UNWILLING_TO_PERFORM, |
| | | message); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public void interruptTask(TaskState interruptState, Message interruptReason) |
| | | { |
| | | if (TaskState.STOPPED_BY_ADMINISTRATOR.equals(interruptState) && |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public boolean isInterruptable() |
| | | { |
| | | return true; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | protected TaskState runTask() |
| | | { |
| | | // See if there were any user-defined sets of include/exclude attributes or |