Examples of ItemData


Examples of org.exoplatform.services.jcr.datamodel.ItemData

            if (iter.hasNext())
            {
               List<ItemData> itemsLeft = new ArrayList<ItemData>();
               do
               {
                  ItemData item = iter.next();
                  if (canRead(item))
                  {
                     itemsLeft.add(item);
                     sz++;
                  }
View Full Code Here

Examples of org.exoplatform.services.jcr.datamodel.ItemData

      protected void fetchNext() throws RepositoryException
      {
         if (iter.hasNext())
         {
            ItemData item = iter.next();

            // check read conditions
            if (canRead(item))
            {
               next = session.getTransientNodesManager().readItem(item, nodeData(), true, false);
View Full Code Here

Examples of org.exoplatform.services.jcr.datamodel.ItemData

            if (iter.hasNext())
            {
               List<ItemData> itemsLeft = new ArrayList<ItemData>();
               do
               {
                  ItemData item = iter.next();
                  if (canRead(item))
                  {
                     itemsLeft.add(item);
                     sz++;
                  }
View Full Code Here

Examples of org.exoplatform.services.jcr.datamodel.ItemData

      checkValid();

      JCRPath itemPath = locationFactory.parseRelPath(relPath);

      ItemData node = dataManager.getItemData(nodeData(), itemPath.getInternalPath().getEntries(), ItemType.NODE);
      return node != null && node.isNode();
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.datamodel.ItemData

      checkValid();

      JCRPath itemPath = locationFactory.parseRelPath(relPath);

      ItemData prop = dataManager.getItemData(nodeData(), itemPath.getInternalPath().getEntries(), ItemType.PROPERTY);
      return prop != null && !prop.isNode();
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.datamodel.ItemData

      // Remove mixin nt definition node/properties from this node
      QPath ancestorToSave = nodeData().getQPath();

      for (PropertyDefinitionData pd : ntmanager.getAllPropertyDefinitions(removedName))
      {
         ItemData p = dataManager.getItemData(nodeData(), new QPathEntry(pd.getName(), 1), ItemType.PROPERTY);
         if (p != null && !p.isNode())
            // remove it
            dataManager.delete(p, ancestorToSave);
      }

      for (NodeDefinitionData nd : ntmanager.getAllChildNodeDefinitions(removedName))
      {
         ItemData n = dataManager.getItemData(nodeData(), new QPathEntry(nd.getName(), 1), ItemType.NODE);
         if (n != null && n.isNode())
         {
            // remove node with subtree
            ItemDataRemoveVisitor remover = new ItemDataRemoveVisitor(dataManager, ancestorToSave);
            n.accept(remover);
            for (ItemState deleted : remover.getRemovedStates())
            {
               dataManager.delete(deleted.getData(), ancestorToSave);
            }
         }
View Full Code Here

Examples of org.exoplatform.services.jcr.datamodel.ItemData

   {

      PlainChangesLog changesLog =
         new PlainChangesLogImpl(new ArrayList<ItemState>(), session.getId(), ExtendedEvent.UNLOCK);

      ItemData lockOwner =
         dataManager.getItemData(nodeData(), new QPathEntry(Constants.JCR_LOCKOWNER, 0), ItemType.PROPERTY);

      changesLog.add(ItemState.createDeletedState(lockOwner));

      ItemData lockIsDeep =
         dataManager.getItemData(nodeData(), new QPathEntry(Constants.JCR_LOCKISDEEP, 0), ItemType.PROPERTY);

      changesLog.add(ItemState.createDeletedState(lockIsDeep));

      dataManager.getTransactManager().save(changesLog);
View Full Code Here

Examples of org.exoplatform.services.jcr.datamodel.ItemData

   private boolean hasProperty(InternalQName name)
   {
      try
      {
         ItemData pdata = dataManager.getItemData(nodeData(), new QPathEntry(name, 1), ItemType.PROPERTY);

         if (pdata != null && !pdata.isNode())
            return true;
      }
      catch (RepositoryException e)
      {
      }
View Full Code Here

Examples of org.exoplatform.services.jcr.datamodel.ItemData

    * @throws RepositoryException
    */
   public ItemData getItemData(NodeData parent, QPathEntry[] relPathEntries, ItemType itemType)
      throws RepositoryException
   {
      ItemData item = parent;
      for (int i = 0; i < relPathEntries.length; i++)
      {
         if (i == relPathEntries.length - 1)
         {
            item = getItemData(parent, relPathEntries[i], itemType);
         }
         else
         {
            item = getItemData(parent, relPathEntries[i], ItemType.UNKNOWN);
         }

         if (item == null)
         {
            break;
         }

         if (item.isNode())
         {
            parent = (NodeData)item;
         }
         else if (i < relPathEntries.length - 1)
         {
View Full Code Here

Examples of org.exoplatform.services.jcr.datamodel.ItemData

         {
            return getItemData(parent.getParentIdentifier());
         }
      }

      ItemData data = null;

      // 1. Try in transient changes
      ItemState state = changesLog.getItemState(parent, name, itemType);
      if (state == null)
      {
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.