public interface PartitionManager
| Modifier and Type | Method and Description |
|---|---|
void |
addPartition(PartitionInfo partitionInformation)
Adds a new partition to current apacheds store.
|
int |
getNumberOfPartitions()
count the number of existing partitions
|
void |
initializeExistingPartition(PartitionInfo parttionInfo)
This method initializes a partition from an existing partition directory.
|
boolean |
partitionDirectoryExists(String partitionID)
This checks whether a partition directory exists with the given partition ID.
|
boolean |
partitionInitialized(String partitionId)
Checks whether a given partition is initialized in the directory service.
|
void |
removeAllPartitions()
Removes all partitions except system partition.
|
void |
removePartition(String partitionSuffix)
Removes given partition from apacheds server.
|
void |
synchronizePartitions()
Synchronizes the modified partitions.
|
void addPartition(PartitionInfo partitionInformation) throws DirectoryServerException
partitionInformation - This contains necessary information to create a partition.
Mainly it contains following information,
1. partitionId - The partition id. Usually this is tenant id.
2. realm domain - name of the partition. Usually domain name and partition DN are same.
Ex :- o=example.com
3. partitionDN - Suffix used when creating the partition. Usually this is the domain name.
DN: dc=example,dc=com
4. adminInfo - User information for the domain.DirectoryServerException - If an error occurs while adding the partition.boolean partitionDirectoryExists(String partitionID) throws DirectoryServerException
partitionID - DirectoryServerExceptionboolean partitionInitialized(String partitionId)
partitionId - - Partition identifier to check availability.void removePartition(String partitionSuffix) throws DirectoryServerException
partitionSuffix - Partition suffix to be removed.DirectoryServerException - If error occurs during partition deletion.void synchronizePartitions()
throws DirectoryServerException
DirectoryServerException - If an error occurred during operation.void removeAllPartitions()
throws DirectoryServerException
DirectoryServerException - If an error occurred during partition removal.int getNumberOfPartitions()
void initializeExistingPartition(PartitionInfo parttionInfo) throws DirectoryServerException
parttionInfo - ExceptionDirectoryServerExceptionCopyright © 2015 WSO2. All rights reserved.