Examples of NodeData


Examples of info.magnolia.cms.core.NodeData

                {
                    Content paramNode = ContentUtil.getOrCreateContent(jobNode, "params", ItemType.CONTENTNODE);
                    Iterator children = paramNode.getNodeDataCollection().iterator();
                    while (children.hasNext())
                    {
                        NodeData node = (NodeData) children.next();
                        log.debug("deleting node {}", node.getHandle());
                        node.delete();
                    }
                    Iterator it = definition.getParams().entrySet().iterator();
                    while (it.hasNext())
                    {
                        Map.Entry pairs = (Map.Entry) it.next();
View Full Code Here

Examples of io.fathom.cloud.protobuf.CloudCommons.NodeData

    @Override
    public void register(NodeData proposed) throws CloudException {
        String key = proposed.getKey();

        NodeData current = clusterRepository.getNodes().find(key);
        if (current != null && current.equals(proposed)) {
            return;
        }
        if (current == null) {
            try {
                NodeData.Builder b = NodeData.newBuilder(proposed);
View Full Code Here

Examples of models.data.NodeData

    Map<String, NodeData> nodeDataMapInProgress = ngdm
        .getNodeDataMapInProgress();

    for (Entry<String, NodeData> entry : nodeDataMapInProgress.entrySet()) {

      NodeData nodeData = entry.getValue();

      if (nodeData == null) {

        models.utils.LogUtils.printLogError("nodeData ==null in clearDataInProgress");
      } else {
        nodeData.getDataMap().remove(agentCommandType);
      }

    }// end for loop

    lastRefreshDataInProgress = new Date();
View Full Code Here

Examples of org.drools.grid.generic.NodeData

    }



    public Integer execute(Context context) {
        NodeData data = (NodeData) context.get( NodeData.NODE_DATA );
       
        Integer sessionId = data.getSessionIdCounter().getAndIncrement();
        if ( this.outIdentifier != null ) {
            ((ExecutionResultImpl)((KnowledgeCommandContext) context).getExecutionResults()).getResults().put( this.outIdentifier, sessionId );
        }
       
        return sessionId;
View Full Code Here

Examples of org.drools.grid.io.impl.NodeData

    public void init(Object context) {
    }

    public MessageReceiverHandler getMessageReceiverHandler() {
        return new GridNodeServer(this,
                new NodeData());
    }
View Full Code Here

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

         TransactionChangesLog tLog = new TransactionChangesLog(changes);
         tLog.setSystemId(Constants.JCR_CORE_RESTORE_WORKSPACE_INITIALIZER_SYSTEM_ID); // mark changes

         dataManager.save(tLog);

         final NodeData root = (NodeData)dataManager.getItemData(Constants.ROOT_UUID);

         log.info("Workspace " + workspaceName + " restored from file " + restorePath + " in "
            + (System.currentTimeMillis() - start) * 1d / 1000 + "sec");

         return root;
View Full Code Here

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

    * @see org.exoplatform.services.jcr.dataflow.ItemDataConsumer#getItemData(org.exoplatform.services.jcr.datamodel.QPath)
    */
   public ItemData getItemData(QPath path) throws RepositoryException
   {

      NodeData parent = (NodeData)getItemData(Constants.ROOT_UUID);

      if (path.equals(Constants.ROOT_PATH))
      {
         return parent;
      }
View Full Code Here

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

            // otherwise use transient data
            data = (PropertyData)state.getData();
         }

         NodeData parent = (NodeData)getItemData(data.getParentIdentifier());
         // if parent exists check for read permissions, otherwise the parent was deleted in another session.
         if (parent != null)
         {
            // skip not permitted
            if (accessManager.hasPermission(parent.getACL(), new String[]{PermissionType.READ}, session.getUserState()
               .getIdentity()))
            {
               PropertyImpl item = (PropertyImpl)readItem(data, parent, true, false);

               refs.add(item);
View Full Code Here

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

         List<NodeData> nodeDatas = getChildNodesData(parent);
         List<NodeImpl> nodes = new ArrayList<NodeImpl>(nodeDatas.size());

         for (int i = 0, length = nodeDatas.size(); i < length; i++)
         {
            NodeData data = nodeDatas.get(i);
            if (accessManager.hasPermission(data.getACL(), new String[]{PermissionType.READ}, session.getUserState()
               .getIdentity()))
            {
               NodeImpl item = (NodeImpl)readItem(data, parent, pool, false);
               session.getActionHandler().postRead(item);
               nodes.add(item);
View Full Code Here

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

         log.debug("getACL(" + path.getAsString() + " ) >>>>>");
      }

      try
      {
         NodeData parent = (NodeData)getItemData(Constants.ROOT_UUID);
         if (path.equals(Constants.ROOT_PATH))
         {
            return parent.getACL();
         }

         ItemData item = null;
         QPathEntry[] relPathEntries = path.getRelPath(path.getDepth());
         for (int i = 0; i < relPathEntries.length; i++)
         {
            if (i == relPathEntries.length - 1)
            {
               item = getItemData(parent, relPathEntries[i], ItemType.NODE);
            }
            else
            {
               item = getItemData(parent, relPathEntries[i], ItemType.UNKNOWN);
            }

            if (item == null)
            {
               break;
            }

            if (item.isNode())
            {
               parent = (NodeData)item;
            }
            else if (i < relPathEntries.length - 1)
            {
               throw new IllegalPathException("Get ACL. Path can not contains a property as the intermediate element");
            }
         }

         if (item != null && item.isNode())
         {
            // node ACL
            return ((NodeData)item).getACL();
         }
         else
         {
            // item not found or it's a property - return parent ACL
            return parent.getACL();
         }
      }
      finally
      {
         if (log.isDebugEnabled())
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.