Class DriverBasedManagementContext

    • Constructor Detail

      • DriverBasedManagementContext

        protected DriverBasedManagementContext()
        Creates a new management context.
    • Method Detail

      • deleteManagedObject

        public final <C extends ConfigurationClient,​S extends Configuration> boolean deleteManagedObject​(ManagedObjectPath<?,​?> parent,
                                                                                                               InstantiableRelationDefinition<C,​S> rd,
                                                                                                               String name)
                                                                                                        throws ManagedObjectNotFoundException,
                                                                                                               OperationRejectedException,
                                                                                                               org.forgerock.opendj.ldap.LdapException
        Description copied from interface: ManagementContext
        Deletes the named instantiable child managed object from the named parent managed object.
        Specified by:
        deleteManagedObject in interface ManagementContext
        Type Parameters:
        C - The type of client managed object configuration that the relation definition refers to.
        S - The type of server managed object configuration that the relation definition refers to.
        Parameters:
        parent - The path of the parent managed object.
        rd - The instantiable relation definition.
        name - The name of the child managed object to be removed.
        Returns:
        Returns true if the named instantiable child managed object was found, or false if it was not found.
        Throws:
        ManagedObjectNotFoundException - If the parent managed object could not be found.
        OperationRejectedException - If the managed object cannot be removed due to some client-side or server-side constraint which cannot be satisfied (for example, if it is referenced by another managed object).
        org.forgerock.opendj.ldap.LdapException - If any other error occurs.
      • deleteManagedObject

        public final <C extends ConfigurationClient,​S extends Configuration> boolean deleteManagedObject​(ManagedObjectPath<?,​?> parent,
                                                                                                               OptionalRelationDefinition<C,​S> rd)
                                                                                                        throws ManagedObjectNotFoundException,
                                                                                                               OperationRejectedException,
                                                                                                               org.forgerock.opendj.ldap.LdapException
        Description copied from interface: ManagementContext
        Deletes the optional child managed object from the named parent managed object.
        Specified by:
        deleteManagedObject in interface ManagementContext
        Type Parameters:
        C - The type of client managed object configuration that the relation definition refers to.
        S - The type of server managed object configuration that the relation definition refers to.
        Parameters:
        parent - The path of the parent managed object.
        rd - The optional relation definition.
        Returns:
        Returns true if the optional child managed object was found, or false if it was not found.
        Throws:
        ManagedObjectNotFoundException - If the parent managed object could not be found.
        OperationRejectedException - If the managed object cannot be removed due to some client-side or server-side constraint which cannot be satisfied (for example, if it is referenced by another managed object).
        org.forgerock.opendj.ldap.LdapException - If any other error occurs.
      • deleteManagedObject

        public final <C extends ConfigurationClient,​S extends Configuration> boolean deleteManagedObject​(ManagedObjectPath<?,​?> parent,
                                                                                                               SetRelationDefinition<C,​S> rd,
                                                                                                               String name)
                                                                                                        throws ManagedObjectNotFoundException,
                                                                                                               OperationRejectedException,
                                                                                                               org.forgerock.opendj.ldap.LdapException
        Description copied from interface: ManagementContext
        Deletes s set child managed object from the named parent managed object.
        Specified by:
        deleteManagedObject in interface ManagementContext
        Type Parameters:
        C - The type of client managed object configuration that the relation definition refers to.
        S - The type of server managed object configuration that the relation definition refers to.
        Parameters:
        parent - The path of the parent managed object.
        rd - The set relation definition.
        name - The name of the child managed object to be removed.
        Returns:
        Returns true if the set child managed object was found, or false if it was not found.
        Throws:
        ManagedObjectNotFoundException - If the parent managed object could not be found.
        OperationRejectedException - If the managed object cannot be removed due to some client-side or server-side constraint which cannot be satisfied (for example, if it is referenced by another managed object).
        org.forgerock.opendj.ldap.LdapException - If any other error occurs.
      • getRootConfiguration

        public final RootCfgClient getRootConfiguration()
        Description copied from interface: ManagementContext
        Gets the root configuration client associated with this management context.
        Specified by:
        getRootConfiguration in interface ManagementContext
        Returns:
        Returns the root configuration client associated with this management context.
      • listManagedObjects

        public final <C extends ConfigurationClient,​S extends ConfigurationString[] listManagedObjects​(ManagedObjectPath<?,​?> parent,
                                                                                                               InstantiableRelationDefinition<C,​S> rd)
                                                                                                        throws ManagedObjectNotFoundException,
                                                                                                               org.forgerock.opendj.ldap.LdapException
        Description copied from interface: ManagementContext
        Lists the child managed objects of the named parent managed object.
        Specified by:
        listManagedObjects in interface ManagementContext
        Type Parameters:
        C - The type of client managed object configuration that the relation definition refers to.
        S - The type of server managed object configuration that the relation definition refers to.
        Parameters:
        parent - The path of the parent managed object.
        rd - The instantiable relation definition.
        Returns:
        Returns the names of the child managed objects.
        Throws:
        ManagedObjectNotFoundException - If the parent managed object could not be found.
        org.forgerock.opendj.ldap.LdapException - If any other error occurs.
      • listManagedObjects

        public final <C extends ConfigurationClient,​S extends ConfigurationString[] listManagedObjects​(ManagedObjectPath<?,​?> parent,
                                                                                                               InstantiableRelationDefinition<C,​S> rd,
                                                                                                               AbstractManagedObjectDefinition<? extends C,​? extends S> d)
                                                                                                        throws ManagedObjectNotFoundException,
                                                                                                               org.forgerock.opendj.ldap.LdapException
        Description copied from interface: ManagementContext
        Lists the child managed objects of the named parent managed object which are a sub-type of the specified managed object definition.
        Specified by:
        listManagedObjects in interface ManagementContext
        Type Parameters:
        C - The type of client managed object configuration that the relation definition refers to.
        S - The type of server managed object configuration that the relation definition refers to.
        Parameters:
        parent - The path of the parent managed object.
        rd - The instantiable relation definition.
        d - The managed object definition.
        Returns:
        Returns the names of the child managed objects which are a sub-type of the specified managed object definition.
        Throws:
        ManagedObjectNotFoundException - If the parent managed object could not be found.
        org.forgerock.opendj.ldap.LdapException - If any other error occurs.
      • listManagedObjects

        public final <C extends ConfigurationClient,​S extends ConfigurationString[] listManagedObjects​(ManagedObjectPath<?,​?> parent,
                                                                                                               SetRelationDefinition<C,​S> rd)
                                                                                                        throws ManagedObjectNotFoundException,
                                                                                                               org.forgerock.opendj.ldap.LdapException
        Description copied from interface: ManagementContext
        Lists the child managed objects of the named parent managed object.
        Specified by:
        listManagedObjects in interface ManagementContext
        Type Parameters:
        C - The type of client managed object configuration that the relation definition refers to.
        S - The type of server managed object configuration that the relation definition refers to.
        Parameters:
        parent - The path of the parent managed object.
        rd - The set relation definition.
        Returns:
        Returns the names of the child managed objects.
        Throws:
        ManagedObjectNotFoundException - If the parent managed object could not be found.
        org.forgerock.opendj.ldap.LdapException - If any other error occurs.
      • getDriver

        protected abstract Driver getDriver()
        Gets the driver associated with this management context.
        Returns:
        Returns the driver associated with this management context.