| | |
| | | builder.setRelationDefinition("connection-handler"); |
| | | builder.setTargetIsEnabledCondition(Conditions.contains("enabled", "true")); |
| | | aggregationPropertyDefinitionTargetMustBeEnabled = builder.getInstance(); |
| | | TestCfg.initializePropertyDefinition(aggregationPropertyDefinitionTargetMustBeEnabled); |
| | | TestCfg |
| | | .initializePropertyDefinition(aggregationPropertyDefinitionTargetMustBeEnabled); |
| | | |
| | | builder = AggregationPropertyDefinition.createBuilder(d, |
| | | "aggregation-property"); |
| | |
| | | builder.setParentPath("/"); |
| | | builder.setRelationDefinition("connection-handler"); |
| | | builder.setTargetIsEnabledCondition(Conditions.contains("enabled", "true")); |
| | | builder.setTargetNeedsEnablingCondition(Conditions.contains("mandatory-boolean-property", "true")); |
| | | builder.setTargetNeedsEnablingCondition(Conditions.contains( |
| | | "mandatory-boolean-property", "true")); |
| | | aggregationPropertyDefinitionTargetAndSourceMustBeEnabled = builder |
| | | .getInstance(); |
| | | TestCfg.initializePropertyDefinition(aggregationPropertyDefinitionTargetAndSourceMustBeEnabled); |
| | | TestCfg |
| | | .initializePropertyDefinition(aggregationPropertyDefinitionTargetAndSourceMustBeEnabled); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | // Register the temporary aggregation definition. |
| | | TestCfg.removeConstraint(aggregationPropertyDefinitionDefault); |
| | | TestCfg.removeConstraint(aggregationPropertyDefinitionDefault |
| | | .getSourceConstraint()); |
| | | TestCfg |
| | | .addPropertyDefinition(aggregationPropertyDefinitionTargetMustBeEnabled); |
| | | TestCfg.addConstraint(aggregationPropertyDefinitionTargetMustBeEnabled); |
| | | TestCfg.addConstraint(aggregationPropertyDefinitionTargetMustBeEnabled |
| | | .getSourceConstraint()); |
| | | |
| | | try { |
| | | TestParentCfg parent = getParent("test parent 1"); |
| | |
| | | } |
| | | } finally { |
| | | // Put back the default aggregation definition. |
| | | TestCfg |
| | | .removeConstraint(aggregationPropertyDefinitionTargetMustBeEnabled); |
| | | TestCfg.removeConstraint(aggregationPropertyDefinitionTargetMustBeEnabled |
| | | .getSourceConstraint()); |
| | | TestCfg.addPropertyDefinition(aggregationPropertyDefinitionDefault); |
| | | TestCfg.addConstraint(aggregationPropertyDefinitionDefault); |
| | | TestCfg.addConstraint(aggregationPropertyDefinitionDefault |
| | | .getSourceConstraint()); |
| | | |
| | | try { |
| | | deleteSubtree(TEST_CHILD_6_DN); |
| | |
| | | } |
| | | |
| | | // Register the temporary aggregation definition. |
| | | TestCfg.removeConstraint(aggregationPropertyDefinitionDefault); |
| | | TestCfg.removeConstraint(aggregationPropertyDefinitionDefault |
| | | .getSourceConstraint()); |
| | | TestCfg |
| | | .addPropertyDefinition(aggregationPropertyDefinitionTargetMustBeEnabled); |
| | | TestCfg.addConstraint(aggregationPropertyDefinitionTargetMustBeEnabled); |
| | | TestCfg.addConstraint(aggregationPropertyDefinitionTargetMustBeEnabled |
| | | .getSourceConstraint()); |
| | | |
| | | try { |
| | | TestParentCfg parent = getParent("test parent 1"); |
| | |
| | | } |
| | | } finally { |
| | | // Put back the default aggregation definition. |
| | | TestCfg |
| | | .removeConstraint(aggregationPropertyDefinitionTargetMustBeEnabled); |
| | | TestCfg.removeConstraint(aggregationPropertyDefinitionTargetMustBeEnabled |
| | | .getSourceConstraint()); |
| | | TestCfg.addPropertyDefinition(aggregationPropertyDefinitionDefault); |
| | | TestCfg.addConstraint(aggregationPropertyDefinitionDefault); |
| | | TestCfg.addConstraint(aggregationPropertyDefinitionDefault |
| | | .getSourceConstraint()); |
| | | |
| | | try { |
| | | deleteSubtree(TEST_CHILD_7_DN); |
| | |
| | | } |
| | | |
| | | // Register the temporary aggregation definition. |
| | | TestCfg.removeConstraint(aggregationPropertyDefinitionDefault); |
| | | TestCfg.removeConstraint(aggregationPropertyDefinitionDefault |
| | | .getSourceConstraint()); |
| | | TestCfg |
| | | .addPropertyDefinition(aggregationPropertyDefinitionTargetAndSourceMustBeEnabled); |
| | | TestCfg |
| | | .addConstraint(aggregationPropertyDefinitionTargetAndSourceMustBeEnabled); |
| | | .addConstraint(aggregationPropertyDefinitionTargetAndSourceMustBeEnabled |
| | | .getSourceConstraint()); |
| | | |
| | | try { |
| | | TestParentCfg parent = getParent("test parent 1"); |
| | |
| | | } finally { |
| | | // Put back the default aggregation definition. |
| | | TestCfg |
| | | .removeConstraint(aggregationPropertyDefinitionTargetAndSourceMustBeEnabled); |
| | | .removeConstraint(aggregationPropertyDefinitionTargetAndSourceMustBeEnabled |
| | | .getSourceConstraint()); |
| | | TestCfg.addPropertyDefinition(aggregationPropertyDefinitionDefault); |
| | | TestCfg.addConstraint(aggregationPropertyDefinitionDefault); |
| | | TestCfg.addConstraint(aggregationPropertyDefinitionDefault |
| | | .getSourceConstraint()); |
| | | |
| | | try { |
| | | deleteSubtree(TEST_CHILD_6_DN); |
| | |
| | | } |
| | | |
| | | // Register the temporary aggregation definition. |
| | | TestCfg.removeConstraint(aggregationPropertyDefinitionDefault); |
| | | TestCfg.removeConstraint(aggregationPropertyDefinitionDefault |
| | | .getSourceConstraint()); |
| | | TestCfg |
| | | .addPropertyDefinition(aggregationPropertyDefinitionTargetAndSourceMustBeEnabled); |
| | | TestCfg |
| | | .addConstraint(aggregationPropertyDefinitionTargetAndSourceMustBeEnabled); |
| | | .addConstraint(aggregationPropertyDefinitionTargetAndSourceMustBeEnabled |
| | | .getSourceConstraint()); |
| | | |
| | | try { |
| | | TestParentCfg parent = getParent("test parent 1"); |
| | |
| | | } finally { |
| | | // Put back the default aggregation definition. |
| | | TestCfg |
| | | .removeConstraint(aggregationPropertyDefinitionTargetAndSourceMustBeEnabled); |
| | | .removeConstraint(aggregationPropertyDefinitionTargetAndSourceMustBeEnabled |
| | | .getSourceConstraint()); |
| | | TestCfg.addPropertyDefinition(aggregationPropertyDefinitionDefault); |
| | | TestCfg.addConstraint(aggregationPropertyDefinitionDefault); |
| | | TestCfg.addConstraint(aggregationPropertyDefinitionDefault |
| | | .getSourceConstraint()); |
| | | |
| | | try { |
| | | deleteSubtree(TEST_CHILD_7_DN); |
| | |
| | | } |
| | | |
| | | // Register the temporary aggregation definition. |
| | | TestCfg.removeConstraint(aggregationPropertyDefinitionDefault); |
| | | TestCfg.removeConstraint(aggregationPropertyDefinitionDefault |
| | | .getSourceConstraint()); |
| | | TestCfg |
| | | .addPropertyDefinition(aggregationPropertyDefinitionTargetMustBeEnabled); |
| | | TestCfg.addConstraint(aggregationPropertyDefinitionTargetMustBeEnabled); |
| | | TestCfg.addConstraint(aggregationPropertyDefinitionTargetMustBeEnabled |
| | | .getSourceConstraint()); |
| | | |
| | | ConfigurationDeleteListener<TestChildCfg> dl = new DummyDeleteListener(); |
| | | ConfigurationChangeListener<TestChildCfg> cl = new DummyChangeListener(); |
| | |
| | | |
| | | // Put back the default aggregation definition. |
| | | TestCfg |
| | | .removeConstraint(aggregationPropertyDefinitionTargetAndSourceMustBeEnabled); |
| | | .removeConstraint(aggregationPropertyDefinitionTargetMustBeEnabled |
| | | .getSourceConstraint()); |
| | | TestCfg.addPropertyDefinition(aggregationPropertyDefinitionDefault); |
| | | TestCfg.addConstraint(aggregationPropertyDefinitionDefault); |
| | | TestCfg.addConstraint(aggregationPropertyDefinitionDefault |
| | | .getSourceConstraint()); |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | // Register the temporary aggregation definition. |
| | | TestCfg.removeConstraint(aggregationPropertyDefinitionDefault); |
| | | TestCfg.removeConstraint(aggregationPropertyDefinitionDefault |
| | | .getSourceConstraint()); |
| | | TestCfg |
| | | .addPropertyDefinition(aggregationPropertyDefinitionTargetMustBeEnabled); |
| | | TestCfg.addConstraint(aggregationPropertyDefinitionTargetMustBeEnabled); |
| | | TestCfg.addConstraint(aggregationPropertyDefinitionTargetMustBeEnabled |
| | | .getSourceConstraint()); |
| | | |
| | | ConfigurationDeleteListener<TestChildCfg> dl = new DummyDeleteListener(); |
| | | ConfigurationChangeListener<TestChildCfg> cl = new DummyChangeListener(); |
| | |
| | | |
| | | // Put back the default aggregation definition. |
| | | TestCfg |
| | | .removeConstraint(aggregationPropertyDefinitionTargetAndSourceMustBeEnabled); |
| | | .removeConstraint(aggregationPropertyDefinitionTargetMustBeEnabled |
| | | .getSourceConstraint()); |
| | | TestCfg.addPropertyDefinition(aggregationPropertyDefinitionDefault); |
| | | TestCfg.addConstraint(aggregationPropertyDefinitionDefault); |
| | | TestCfg.addConstraint(aggregationPropertyDefinitionDefault |
| | | .getSourceConstraint()); |
| | | } |
| | | } |
| | | } |