Examples of ItemId


Examples of org.apache.jackrabbit.spi.ItemId

        public boolean equals(Object obj) {
            if (obj == this) {
                return true;
            }
            if (obj instanceof ItemId) {
                ItemId other = (ItemId) obj;
                return equals(other);
            }
            return false;
        }
View Full Code Here

Examples of org.apache.jackrabbit.spi.ItemId

    /**
     * @see NodeEntry#refresh(Event)
     */
    public void refresh(Event childEvent) {
        ItemId eventId = childEvent.getItemId();
        Path eventPath = childEvent.getPath();
        Name eventName = eventPath.getNameElement().getName();
        HierarchyEntry child = lookupEntry(eventId, eventPath);

        switch (childEvent.getType()) {
            case Event.NODE_ADDED:
            case Event.PROPERTY_ADDED:
                if (child == null || child.getStatus() == Status.REMOVED) {
                    // no such child or a colliding new child existed but got
                    // removed already -> add the new entry.
                    if (childEvent.getType() ==  Event.NODE_ADDED) {
                        String uniqueChildID = (eventId.getPath() == null) ? eventId.getUniqueID() : null;
                        int index = eventPath.getNameElement().getNormalizedIndex();
                        internalAddNodeEntry(eventName, uniqueChildID, index);
                    } else {
                        internalAddPropertyEntry(eventName, true);
                    }
View Full Code Here

Examples of org.apache.jackrabbit.spi.ItemId

    /**
     * This implementation cached the item by its id and if the id
     * is uuid based but has no path, also by its path.
     */
    public void put(ItemInfo info, long generation) {
        ItemId id = info.getId();
        Entry<? extends ItemInfo> entry = info.denotesNode()
            ? new Entry<NodeInfo>((NodeInfo) info, generation)
            : new Entry<PropertyInfo>((PropertyInfo) info, generation);

        put(id, entry);
        if (id.getUniqueID() != null && id.getPath() == null) {
            put(info.getPath(), entry);
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.spi.ItemId

                // should not occur
                log.error("Internal error while building Event", e.getMessage());
                continue;
            }

            ItemId eventId = null;
            try {
                if (type == Event.NODE_ADDED || type == Event.NODE_REMOVED) {
                    eventId = uriResolver.getNodeId(href, sessionInfo);
                } else {
                    eventId = uriResolver.getPropertyId(href, sessionInfo);
View Full Code Here

Examples of org.apache.jackrabbit.spi.ItemId

        // build itemId from the given state and the relative path without
        // making an attempt to retrieve the proper id of the item possibly
        // identified by the resulting id.
        // the server must be able to deal with paths and with proper ids anyway.
        // TODO: 'createNodeId' is basically wrong since isGranted is unspecific for any item.
        ItemId id = idFactory.createNodeId((NodeId) parentState.getWorkspaceId(), relPath);
        return service.isGranted(sessionInfo, id, actions);
    }
View Full Code Here

Examples of org.easetech.easytest.example.ItemId

    public static RealItemService itemService = new RealItemService();

    @Test
    public void testGetItemEnh() {
        System.out.println("testGetItemEnh called");
         itemService.findItem(new LibraryId(1L), new ItemId(2L));

    }
View Full Code Here

Examples of org.mizartools.dli.ItemId

  static Fields getFields(
      org.mizartools.system.utility.AbstractSignature abstractSignature,
      org.mizartools.system.xml.Fields fields) throws DliException {
    LinkedList<ItemId> itemIdList = new LinkedList<ItemId>();
    for (org.mizartools.system.xml.Field field : fields.getFieldList()) {
      ItemId itemId = getItemId(abstractSignature, field);
      itemIdList.add(itemId);
    }
    Fields fieldsDli = new Fields(itemIdList);
    return fieldsDli;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.