test_class.declarator: collectorProvider
test_class.original_string: ChangeCollectorProvider collectorProvider;
test_class.type: ChangeCollectorProvider
test_class.var_name: collectorProvider
test_class.declarator: contentRepository
test_class.modifier: private
test_class.original_string: private ContentRepository contentRepository;
test_class.type: ContentRepository
test_class.var_name: contentRepository
test_class.declarator: session
test_class.modifier: private
test_class.original_string: private ContentSession session;
test_class.type: ContentSession
test_class.var_name: session
test_class.declarator: recorder
test_class.modifier: private
test_class.original_string: private Recorder recorder;
test_class.type: Recorder
test_class.var_name: recorder
test_class.declarator: securityProvider
test_class.modifier: private
test_class.original_string: private SecurityProvider securityProvider;
test_class.type: SecurityProvider
test_class.var_name: securityProvider
test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/observation/ChangeCollectorProviderTest.java
test_class.identifier: ChangeCollectorProviderTest
test_case.body: @Test
      public void testPropertyNotOverflown() throws Exception {
          Root root = session.getLatestRoot();
          Tree rootTree = root.getTree("/test");
          Tree child1 = rootTree.getChild("child1");
  
          Set<String> expectedPropertyNames = Sets.newHashSet();
          for (int i = 0; i < collectorProvider.getMaxItems(); i++) {
              child1.setProperty("aProperty" + i, "foo");
              expectedPropertyNames.add("aProperty" + i);
          }
          root.commit();
          ChangeSet changeSet = getSingleChangeSet();
          assertMatches("parentPaths", changeSet.getParentPaths(), "/test/child1");
          assertMatches("parentNodeNames", changeSet.getParentNodeNames(), "child1");
          assertMatches("parentNodeTypes", changeSet.getParentNodeTypes(), "test:childType");
          assertMatches("allNodeTypes", changeSet.getAllNodeTypes(), "test:parentType", "test:childType");
          assertMatches("propertyNames", changeSet.getPropertyNames(), expectedPropertyNames.toArray(new String[0]));
      }
test_case.class_method_signature: ChangeCollectorProviderTest.testPropertyNotOverflown()
test_case.full_signature: @Test public void testPropertyNotOverflown()
test_case.identifier: testPropertyNotOverflown
test_case.invocations: getLatestRoot getTree getChild newHashSet getMaxItems setProperty add commit getSingleChangeSet assertMatches getParentPaths assertMatches getParentNodeNames assertMatches getParentNodeTypes assertMatches getAllNodeTypes assertMatches getPropertyNames toArray
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testPropertyNotOverflown()
focal_class.declarator: DEFAULT_MAX_ITEMS = 50
focal_class.modifier: private static final
focal_class.original_string: private static final int DEFAULT_MAX_ITEMS = 50;
focal_class.type: int
focal_class.var_name: DEFAULT_MAX_ITEMS
focal_class.declarator: DEFAULT_MAX_PATH_DEPTH = 9
focal_class.modifier: private static final
focal_class.original_string: private static final int DEFAULT_MAX_PATH_DEPTH = 9;
focal_class.type: int
focal_class.var_name: DEFAULT_MAX_PATH_DEPTH
focal_class.declarator: DEFAULT_ENABLED = true
focal_class.modifier: private static final
focal_class.original_string: private static final boolean DEFAULT_ENABLED = true;
focal_class.type: boolean
focal_class.var_name: DEFAULT_ENABLED
focal_class.declarator: TYPE = "changeCollectorProvider"
focal_class.modifier: public static final
focal_class.original_string: public static final String TYPE = "changeCollectorProvider";
focal_class.type: String
focal_class.var_name: TYPE
focal_class.declarator: LOG = LoggerFactory.getLogger(ChangeCollectorProvider.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(ChangeCollectorProvider.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: COMMIT_CONTEXT_OBSERVATION_CHANGESET = "oak.observation.changeSet"
focal_class.modifier: public static final
focal_class.original_string: public static final String COMMIT_CONTEXT_OBSERVATION_CHANGESET = "oak.observation.changeSet";
focal_class.type: String
focal_class.var_name: COMMIT_CONTEXT_OBSERVATION_CHANGESET
focal_class.declarator: maxItems = DEFAULT_MAX_ITEMS
focal_class.modifier: private
focal_class.original_string: private int maxItems = DEFAULT_MAX_ITEMS;
focal_class.type: int
focal_class.var_name: maxItems
focal_class.declarator: maxPathDepth = DEFAULT_MAX_PATH_DEPTH
focal_class.modifier: private
focal_class.original_string: private int maxPathDepth = DEFAULT_MAX_PATH_DEPTH;
focal_class.type: int
focal_class.var_name: maxPathDepth
focal_class.declarator: enabled = DEFAULT_ENABLED
focal_class.modifier: private
focal_class.original_string: private boolean enabled = DEFAULT_ENABLED;
focal_class.type: boolean
focal_class.var_name: enabled
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/observation/ChangeCollectorProvider.java
focal_class.identifier: ChangeCollectorProvider
focal_class.class_method_signature: ChangeCollectorProvider.activate(final Configuration config)
focal_class.full_signature: @Activate protected void activate(final Configuration config)
focal_class.identifier: activate
focal_class.modifiers: @Activate protected
focal_class.parameters: (final Configuration config)
focal_class.return: void
focal_class.signature: void activate(final Configuration config)
focal_class.class_method_signature: ChangeCollectorProvider.modified(final Configuration config)
focal_class.full_signature: @Modified protected void modified(final Configuration config)
focal_class.identifier: modified
focal_class.modifiers: @Modified protected
focal_class.parameters: (final Configuration config)
focal_class.return: void
focal_class.signature: void modified(final Configuration config)
focal_class.class_method_signature: ChangeCollectorProvider.reconfig(final Configuration config)
focal_class.full_signature: private void reconfig(final Configuration config)
focal_class.identifier: reconfig
focal_class.modifiers: private
focal_class.parameters: (final Configuration config)
focal_class.return: void
focal_class.signature: void reconfig(final Configuration config)
focal_class.class_method_signature: ChangeCollectorProvider.setMaxPathDepth(int maxPathDepth)
focal_class.full_signature: protected void setMaxPathDepth(int maxPathDepth)
focal_class.identifier: setMaxPathDepth
focal_class.modifiers: protected
focal_class.parameters: (int maxPathDepth)
focal_class.return: void
focal_class.signature: void setMaxPathDepth(int maxPathDepth)
focal_class.class_method_signature: ChangeCollectorProvider.getMaxPathDepth()
focal_class.full_signature: protected int getMaxPathDepth()
focal_class.identifier: getMaxPathDepth
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getMaxPathDepth()
focal_class.class_method_signature: ChangeCollectorProvider.setMaxItems(int maxItems)
focal_class.full_signature: protected void setMaxItems(int maxItems)
focal_class.identifier: setMaxItems
focal_class.modifiers: protected
focal_class.parameters: (int maxItems)
focal_class.return: void
focal_class.signature: void setMaxItems(int maxItems)
focal_class.class_method_signature: ChangeCollectorProvider.getMaxItems()
focal_class.full_signature: protected int getMaxItems()
focal_class.identifier: getMaxItems
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getMaxItems()
focal_class.class_method_signature: ChangeCollectorProvider.getRootValidator(NodeState before, NodeState after, CommitInfo info)
focal_class.full_signature: @Override protected Validator getRootValidator(NodeState before, NodeState after, CommitInfo info)
focal_class.identifier: getRootValidator
focal_class.modifiers: @Override protected
focal_class.parameters: (NodeState before, NodeState after, CommitInfo info)
focal_class.return: Validator
focal_class.signature: Validator getRootValidator(NodeState before, NodeState after, CommitInfo info)
focal_class.superclass: extends ValidatorProvider
focal_method.body: protected int getMaxItems() {
          return this.maxItems;
      }
focal_method.class_method_signature: ChangeCollectorProvider.getMaxItems()
focal_method.full_signature: protected int getMaxItems()
focal_method.identifier: getMaxItems
focal_method.modifiers: protected
focal_method.parameters: ()
focal_method.return: int
focal_method.signature: int getMaxItems()