Class TriggerUtils

java.lang.Object
org.apache.directory.api.ldap.trigger.TriggerUtils

public final class TriggerUtils extends Object
A utility class for working with Triggers Execution Administrative Points Trigger Execution Subentries and Trigger Specifications.
Author:
Apache Directory Project
  • Method Details

    • defineTriggerExecutionSpecificPoint

      public static void defineTriggerExecutionSpecificPoint(LdapContext apCtx) throws NamingException
      Defines the Administration point and administrative role for the TriggerExecution specific point
      Parameters:
      apCtx - The administrative point context
      Throws:
      NamingException - If the operation failed
    • createTriggerExecutionSubentry

      public static void createTriggerExecutionSubentry(LdapContext apCtx, String subentryCN, String subtreeSpec, String prescriptiveTriggerSpec) throws NamingException
      Create the Trigger execution subentry
      Parameters:
      apCtx - The administration point context
      subentryCN - The CN used by the suentry
      subtreeSpec - The subtree specification
      prescriptiveTriggerSpec - The prescriptive trigger specification
      Throws:
      NamingException - If the operation failed
    • loadPrescriptiveTriggerSpecification

      public static void loadPrescriptiveTriggerSpecification(LdapContext apCtx, String subentryCN, String triggerSpec) throws NamingException
      Load an prescriptive trigger specification
      Parameters:
      apCtx - The administrative point context
      subentryCN - The subentry CN
      triggerSpec - The trigger specification
      Throws:
      NamingException - If the operation failed
    • loadEntryTriggerSpecification

      public static void loadEntryTriggerSpecification(LdapContext ctx, String triggerSpec) throws NamingException
      Load the trigger specification entry
      Parameters:
      ctx - The context
      triggerSpec - The trigger specification
      Throws:
      NamingException - If the operation failed