Package org.opends.server.tasks
Class ImportExportParams
- java.lang.Object
-
- org.opends.server.tasks.ImportExportParams
-
public final class ImportExportParams extends Object
Parameters for import / export tasks.
-
-
Constructor Summary
Constructors Constructor Description ImportExportParams(Collection<String> includeBranchStrings, Collection<String> excludeBranchStrings, Collection<String> includeAttributeStrings, Collection<String> excludeAttributeStrings, Collection<String> includeFilterStrings, Collection<String> excludeFilterStrings, Schema schema)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<AttributeType>
getExcludeAttributeTypes()
Returns the exclude attribute types.Set<Dn>
getExcludeBranches()
Returns the exclude branches.Set<Filter>
getExcludeFilters()
Returns the exclude filters.Set<AttributeType>
getIncludeAttributeTypes()
Returns the include attribute types.Set<Dn>
getIncludeBranches()
Returns the include branches.Set<Filter>
getIncludeFilters()
Returns the include filters.void
validate(LocalizableMessageDescriptor.Arg2<Object,Object> includeBranchErrMsg, LocalizableMessageDescriptor.Arg2<Object,Object> excludeBranchErrMsg, LocalizableMessageDescriptor.Arg2<Object,Object> includeFilterErrMsg, LocalizableMessageDescriptor.Arg2<Object,Object> excludeFilterErrMsg)
Validates the parameters provided in the constructor.
-
-
-
Constructor Detail
-
ImportExportParams
public ImportExportParams(Collection<String> includeBranchStrings, Collection<String> excludeBranchStrings, Collection<String> includeAttributeStrings, Collection<String> excludeAttributeStrings, Collection<String> includeFilterStrings, Collection<String> excludeFilterStrings, Schema schema)
Constructor.- Parameters:
includeBranchStrings
- the raw include branchesexcludeBranchStrings
- the raw exclude branchesincludeAttributeStrings
- the attribute names to includeexcludeAttributeStrings
- the attribute names to excludeincludeFilterStrings
- the raw include filtersexcludeFilterStrings
- the raw exclude filtersschema
- the schema
-
-
Method Detail
-
validate
public void validate(LocalizableMessageDescriptor.Arg2<Object,Object> includeBranchErrMsg, LocalizableMessageDescriptor.Arg2<Object,Object> excludeBranchErrMsg, LocalizableMessageDescriptor.Arg2<Object,Object> includeFilterErrMsg, LocalizableMessageDescriptor.Arg2<Object,Object> excludeFilterErrMsg) throws LdapException
Validates the parameters provided in the constructor.- Parameters:
includeBranchErrMsg
- the error message to use when include branches parsing failsexcludeBranchErrMsg
- the error message to use when exclude branches parsing failsincludeFilterErrMsg
- the error message to use when include filters parsing failsexcludeFilterErrMsg
- the error message to use when exclude filters parsing fails- Throws:
LdapException
- if parsing failed
-
getIncludeBranches
public Set<Dn> getIncludeBranches()
Returns the include branches.- Returns:
- the include branches
-
getExcludeBranches
public Set<Dn> getExcludeBranches()
Returns the exclude branches.- Returns:
- the exclude branches
-
getIncludeAttributeTypes
public Set<AttributeType> getIncludeAttributeTypes()
Returns the include attribute types.- Returns:
- the include attribute types
-
getExcludeAttributeTypes
public Set<AttributeType> getExcludeAttributeTypes()
Returns the exclude attribute types.- Returns:
- the exclude attribute types
-
getIncludeFilters
public Set<Filter> getIncludeFilters()
Returns the include filters.- Returns:
- the include filters
-
-