Class ReplicationUserData
- java.lang.Object
-
- org.opends.server.tools.dsreplication.ReplicationUserData
-
- Direct Known Subclasses:
DisableReplicationUserData,EnableReplicationUserData,InitializeAllReplicationUserData,PurgeHistoricalUserData,SourceDestinationServerUserData,StatusReplicationUserData
public abstract class ReplicationUserData extends Object
This class is used to store the information provided by the user in the replication command line. It is required because when we are in interactive mode the ReplicationCliArgumentParser is not enough.
-
-
Constructor Summary
Constructors Constructor Description ReplicationUserData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBaseDN(DN baseDN)Adds the provided base DN to the base DNs to replicate if not already present.StringgetAdminPwd()Returns the Global Administrator password.StringgetAdminUid()Returns the Global Administrator UID.List<DN>getBaseDNs()Returns the Base DNs to replicate.voidsetAdminPwd(String adminPwd)Sets the Global Administrator password.voidsetAdminUid(String adminUid)Sets the Global Administrator UID.voidsetBaseDNs(List<DN> baseDNs)Sets the Base DNs to replicate.StringtoString()
-
-
-
Method Detail
-
getAdminPwd
public String getAdminPwd()
Returns the Global Administrator password.- Returns:
- the Global Administrator password.
-
setAdminPwd
public void setAdminPwd(String adminPwd)
Sets the Global Administrator password.- Parameters:
adminPwd- the Global Administrator password.
-
getAdminUid
public String getAdminUid()
Returns the Global Administrator UID.- Returns:
- the Global Administrator UID.
-
setAdminUid
public void setAdminUid(String adminUid)
Sets the Global Administrator UID.- Parameters:
adminUid- the Global Administrator UID.
-
getBaseDNs
public List<DN> getBaseDNs()
Returns the Base DNs to replicate.- Returns:
- the Base DNs to replicate.
-
setBaseDNs
public void setBaseDNs(List<DN> baseDNs)
Sets the Base DNs to replicate.- Parameters:
baseDNs- the Base DNs to replicate.
-
addBaseDN
public void addBaseDN(DN baseDN)
Adds the provided base DN to the base DNs to replicate if not already present.- Parameters:
baseDN- the new base DN to replicate.
-
-