Package org.opends.server.tools
Class BackendTypeHelper
- java.lang.Object
-
- org.opends.server.tools.BackendTypeHelper
-
public class BackendTypeHelper extends Object
Helper class for setup applications. It helps applications to provide a backend type choice to the user.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBackendTypeHelper.BackendTypeUIAdapterAdaptor to allow backend type selection in UIs.
-
Constructor Summary
Constructors Constructor Description BackendTypeHelper()Creates a new backend type helper.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringfilterSchemaBackendName(String dsCfgBackendName)Filter the provided backend name by removing the backend suffix.static BackendTypeHelper.BackendTypeUIAdaptergetBackendTypeAdapter(String backendName)Return a BackendTypeUIAdapter which adapts the backend identified by the provided backend name.BackendTypeHelper.BackendTypeUIAdapter[]getBackendTypeUIAdaptors()Return a list which contains all available backend type adapted for UI.
-
-
-
Method Detail
-
filterSchemaBackendName
public static String filterSchemaBackendName(String dsCfgBackendName)
Filter the provided backend name by removing the backend suffix.- Parameters:
dsCfgBackendName- The backend name- Returns:
- The backend name with the '-backend' suffix filtered out
-
getBackendTypeUIAdaptors
public BackendTypeHelper.BackendTypeUIAdapter[] getBackendTypeUIAdaptors()
Return a list which contains all available backend type adapted for UI.- Returns:
- a list which contains all available backend type adapted for UI
-
getBackendTypeAdapter
public static BackendTypeHelper.BackendTypeUIAdapter getBackendTypeAdapter(String backendName)
Return a BackendTypeUIAdapter which adapts the backend identified by the provided backend name.- Parameters:
backendName- the backend name which identifies the backend to adapt.- Returns:
- a BackendTypeUIAdapter which adapts the backend identified by the provided backend name.
-
-