/** * Creates a new {@link javax.jcr.observation.Event} of type * {@link javax.jcr.observation.Event#PROPERTY_ADDED}. * * @param parentId the id of the parent node associated with * this <code>EventState</code>. * @param parentPath the path of the parent node associated with * this <code>EventState</code>. * @param childPath the relative path of the property that was added. * @param nodeType the node type of the parent node. * @param mixins mixins assigned to the parent node. * @param session the session that added the property. * @return an <code>EventState</code> instance. */ public static EventState propertyAdded(NodeId parentId, Path parentPath, Path childPath, Name nodeType, Set<Name> mixins, Session session) { return propertyAdded(parentId, parentPath, childPath, nodeType, mixins, session, false); }
/** * Creates a new {@link javax.jcr.observation.Event} of type * {@link javax.jcr.observation.Event#PROPERTY_ADDED}. * * @param parentId the id of the parent node associated with * this <code>EventState</code>. * @param parentPath the path of the parent node associated with * this <code>EventState</code>. * @param childPath the relative path of the property that was added. * @param nodeType the node type of the parent node. * @param mixins mixins assigned to the parent node. * @param session the session that added the property. * @return an <code>EventState</code> instance. */ public static EventState propertyAdded(NodeId parentId, Path parentPath, Path childPath, Name nodeType, Set<Name> mixins, Session session) { return propertyAdded(parentId, parentPath, childPath, nodeType, mixins, session, false); }
ntName, mixins, getOrCreateSession(userId), true); case Event.PROPERTY_ADDED: return EventState.propertyAdded(parentId, parentPath, childRelPath, ntName, mixins, getOrCreateSession(userId), true); case Event.PROPERTY_CHANGED:
ntName, mixins, getOrCreateSession(userId), true); case Event.PROPERTY_ADDED: return EventState.propertyAdded(parentId, parentPath, childRelPath, ntName, mixins, getOrCreateSession(userId), true); case Event.PROPERTY_CHANGED:
while (iter.hasNext()) { PropertyImpl prop = (PropertyImpl) iter.nextProperty(); events.add(EventState.propertyAdded( (NodeId) node.getId(), node.getPrimaryPath(),
while (iter.hasNext()) { PropertyImpl prop = (PropertyImpl) iter.nextProperty(); events.add(EventState.propertyAdded( (NodeId) node.getId(), node.getPrimaryPath(),
Set<Name> mixins = n.getMixinTypeNames(); Path path = getPath(state.getId(), hmgr); events.add(EventState.propertyAdded(state.getParentId(), getParent(path), path.getLastElement(),
Set<Name> mixins = n.getMixinTypeNames(); Path path = getPath(state.getId(), hmgr); events.add(EventState.propertyAdded(state.getParentId(), getParent(path), path.getLastElement(),
return EventState.propertyAdded( p.getParentId(), pathFactory.getRootPath(), relPath, parent.getNodeTypeName(), parent.getMixinTypeNames(),