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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
createTriggerExecutionSubentry(LdapContext apCtx, String subentryCN, String subtreeSpec, String prescriptiveTriggerSpec)
Create the Trigger execution subentrystatic void
defineTriggerExecutionSpecificPoint(LdapContext apCtx)
Defines the Administration point and administrative role for the TriggerExecution specific pointstatic void
loadEntryTriggerSpecification(LdapContext ctx, String triggerSpec)
Load the trigger specification entrystatic void
loadPrescriptiveTriggerSpecification(LdapContext apCtx, String subentryCN, String triggerSpec)
Load an prescriptive trigger specification
-
-
-
Method Detail
-
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 contextsubentryCN
- The CN used by the suentrysubtreeSpec
- The subtree specificationprescriptiveTriggerSpec
- 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 contextsubentryCN
- The subentry CNtriggerSpec
- 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 contexttriggerSpec
- The trigger specification- Throws:
NamingException
- If the operation failed
-
-