Package org.opends.quicksetup.installer
Class NewSuffixOptions
- java.lang.Object
-
- org.opends.quicksetup.installer.NewSuffixOptions
-
public class NewSuffixOptions extends Object
This class is used to provide a data model for the Data Options panel of the installer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNewSuffixOptions.TypeThis enumeration is used to know what the user wants to do for the data (import data or not, what use as source of the data...).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NewSuffixOptionscreateAutomaticallyGenerated(List<String> baseDNs, int numberEntries)Creates an automatically generated entries suffix options.static NewSuffixOptionscreateBaseEntry(List<String> baseDNs)Creates a base entry suffix options.static NewSuffixOptionscreateEmpty(List<String> baseDNs)Creates an empty suffix options.static NewSuffixOptionscreateImportFromLDIF(List<String> baseDNs, List<String> ldifPaths, String rejectedFile, String skippedFile)Creates a base entry suffix options.LinkedList<String>getBaseDns()Returns the base DN of the suffix that will be created in the server.InstallProgressStepgetInstallProgressStep()ReturnsInstallProgressStepequivalent to the type of new suffix options.LinkedList<String>getLDIFPaths()Returns the path of the LDIF file used to import data.intgetNumberEntries()Returns the number of entries that will be automatically generated.StringgetRejectedFile()Returns the path to store the rejected entries of the import.StringgetSkippedFile()Returns the path to store the skipped entries of the import.NewSuffixOptions.TypegetType()Returns the type of NewSuffixOptions represented by this object (import data or not, what use as source of the data...).
-
-
-
Method Detail
-
createBaseEntry
public static NewSuffixOptions createBaseEntry(List<String> baseDNs)
Creates a base entry suffix options.- Parameters:
baseDNs- the base DNs of the suffix options.- Returns:
- a base entry suffix options.
-
createEmpty
public static NewSuffixOptions createEmpty(List<String> baseDNs)
Creates an empty suffix options.- Parameters:
baseDNs- the base DNs of the suffix options.- Returns:
- an empty suffix options.
-
createImportFromLDIF
public static NewSuffixOptions createImportFromLDIF(List<String> baseDNs, List<String> ldifPaths, String rejectedFile, String skippedFile)
Creates a base entry suffix options.- Parameters:
baseDNs- the base DNs of the suffix options.ldifPaths- the LDIF files to be imported.rejectedFile- the files where the rejected entries are stored.skippedFile- the files where the skipped entries are stored.- Returns:
- a base entry suffix options.
-
createAutomaticallyGenerated
public static NewSuffixOptions createAutomaticallyGenerated(List<String> baseDNs, int numberEntries)
Creates an automatically generated entries suffix options.- Parameters:
baseDNs- the base DNs of the suffix options.numberEntries- the number of entries to generate.- Returns:
- a base entry suffix options.
-
getType
public NewSuffixOptions.Type getType()
Returns the type of NewSuffixOptions represented by this object (import data or not, what use as source of the data...).- Returns:
- the type of NewSuffixOptions.
-
getLDIFPaths
public LinkedList<String> getLDIFPaths()
Returns the path of the LDIF file used to import data.- Returns:
- the path of the LDIF file used to import data.
-
getRejectedFile
public String getRejectedFile()
Returns the path to store the rejected entries of the import.nullif no rejected file is specified.- Returns:
- the path to store the rejected entries of the import.
nullif no rejected file is specified.
-
getSkippedFile
public String getSkippedFile()
Returns the path to store the skipped entries of the import.nullif no skipped file is specified.- Returns:
- the path to store the skipped entries of the import.
nullif no skipped file is specified.
-
getNumberEntries
public int getNumberEntries()
Returns the number of entries that will be automatically generated.- Returns:
- the number of entries that will be automatically generated.
-
getBaseDns
public LinkedList<String> getBaseDns()
Returns the base DN of the suffix that will be created in the server.- Returns:
- the base DN of the suffix that will be created in the server.
-
getInstallProgressStep
public InstallProgressStep getInstallProgressStep()
ReturnsInstallProgressStepequivalent to the type of new suffix options.- Returns:
- Returns
InstallProgressStepequivalent to the type of new suffix options.
-
-