public interface RootDNCfgClient extends ConfigurationClient
The Root DN configuration contains all the Root DN Users defined in the directory server. In addition, it also defines the default set of privileges that Root DN Users automatically inherit.
Modifier and Type | Method and Description |
---|---|
<C extends RootDNUserCfgClient> |
createRootDNUser(ManagedObjectDefinition<C,? extends RootDNUserCfg> d,
String name,
Collection<PropertyException> exceptions)
Creates a new Root DN User.
|
ManagedObjectDefinition<? extends RootDNCfgClient,? extends RootDNCfg> |
definition()
Get the configuration definition associated with this Root DN.
|
SortedSet<RootDNCfgDefn.DefaultRootPrivilegeName> |
getDefaultRootPrivilegeName()
Gets the "default-root-privilege-name" property.
|
RootDNUserCfgClient |
getRootDNUser(String name)
Gets the named Root DN User.
|
String[] |
listRootDNUsers()
Lists the Root DN Users.
|
void |
removeRootDNUser(String name)
Removes the named Root DN User.
|
void |
setDefaultRootPrivilegeName(Collection<RootDNCfgDefn.DefaultRootPrivilegeName> values)
Sets the "default-root-privilege-name" property.
|
commit, properties
ManagedObjectDefinition<? extends RootDNCfgClient,? extends RootDNCfg> definition()
definition
in interface ConfigurationClient
SortedSet<RootDNCfgDefn.DefaultRootPrivilegeName> getDefaultRootPrivilegeName()
Specifies the names of the privileges that root users will be granted by default.
void setDefaultRootPrivilegeName(Collection<RootDNCfgDefn.DefaultRootPrivilegeName> values) throws PropertyException
Specifies the names of the privileges that root users will be granted by default.
values
- The values of the "default-root-privilege-name" property.PropertyException
- If one or more of the new values are invalid.String[] listRootDNUsers() throws ConcurrentModificationException, AuthorizationException, CommunicationException
ConcurrentModificationException
- If this Root DN has been removed from the server by
another client.AuthorizationException
- If the server refuses to list the Root DN Users because
the client does not have the correct privileges.CommunicationException
- If the client cannot contact the server due to an
underlying communication problem.RootDNUserCfgClient getRootDNUser(String name) throws DefinitionDecodingException, ManagedObjectDecodingException, ManagedObjectNotFoundException, ConcurrentModificationException, AuthorizationException, CommunicationException
name
- The name of the Root DN User to retrieve.DefinitionDecodingException
- If the named Root DN User was found but its type could
not be determined.ManagedObjectDecodingException
- If the named Root DN User was found but one or more of
its properties could not be decoded.ManagedObjectNotFoundException
- If the named Root DN User was not found on the server.ConcurrentModificationException
- If this Root DN has been removed from the server by
another client.AuthorizationException
- If the server refuses to retrieve the named Root DN
User because the client does not have the correct
privileges.CommunicationException
- If the client cannot contact the server due to an
underlying communication problem.<C extends RootDNUserCfgClient> C createRootDNUser(ManagedObjectDefinition<C,? extends RootDNUserCfg> d, String name, Collection<PropertyException> exceptions) throws IllegalManagedObjectNameException
ConfigurationClient.commit()
method.C
- The type of the Root DN User being created.d
- The definition of the Root DN User to be created.name
- The name of the new Root DN User.exceptions
- An optional collection in which to place any PropertyException
s that occurred whilst attempting to
determine the default values of the Root DN User. This
argument can be null.
IllegalManagedObjectNameException
- If the name of the new Root DN User is invalid.void removeRootDNUser(String name) throws ManagedObjectNotFoundException, OperationRejectedException, ConcurrentModificationException, AuthorizationException, CommunicationException
name
- The name of the Root DN User to remove.ManagedObjectNotFoundException
- If the Root DN User does not exist.OperationRejectedException
- If the server refuses to remove the Root DN User due to
some server-side constraint which cannot be satisfied
(for example, if it is referenced by another managed
object).ConcurrentModificationException
- If this Root DN has been removed from the server by
another client.AuthorizationException
- If the server refuses to remove the Root DN User
because the client does not have the correct privileges.CommunicationException
- If the client cannot contact the server due to an
underlying communication problem.Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.