mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Added a new REST method, publishing-events-query.post which allows you to query for publishing events based on id or published nodes.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28846 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -19,9 +19,13 @@
|
||||
|
||||
package org.alfresco.repo.node;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.repository.NodeService;
|
||||
import org.alfresco.util.collections.CollectionUtils;
|
||||
import org.alfresco.util.collections.Filter;
|
||||
import org.alfresco.util.collections.Function;
|
||||
|
||||
@@ -43,6 +47,11 @@ public abstract class NodeUtils
|
||||
};
|
||||
}
|
||||
|
||||
public static List<NodeRef> toNodeRefs(Collection<String> nodeIds)
|
||||
{
|
||||
return CollectionUtils.transform(nodeIds, toNodeRef());
|
||||
}
|
||||
|
||||
public static Function<ChildAssociationRef, NodeRef> toChildRef()
|
||||
{
|
||||
return new Function<ChildAssociationRef, NodeRef>()
|
||||
@@ -54,6 +63,11 @@ public abstract class NodeUtils
|
||||
};
|
||||
}
|
||||
|
||||
public static List<NodeRef> toChildRefs(Collection<ChildAssociationRef> assocRefs)
|
||||
{
|
||||
return CollectionUtils.transform(assocRefs, toChildRef());
|
||||
}
|
||||
|
||||
public static Function<ChildAssociationRef, NodeRef> toParentRef()
|
||||
{
|
||||
return new Function<ChildAssociationRef, NodeRef>()
|
||||
@@ -64,6 +78,11 @@ public abstract class NodeUtils
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public static List<NodeRef> toParentRefs(Collection<ChildAssociationRef> assocRefs)
|
||||
{
|
||||
return CollectionUtils.transform(assocRefs, toParentRef());
|
||||
}
|
||||
|
||||
public static Function<String, NodeRef> toNodeRefQueitly()
|
||||
{
|
||||
@@ -91,5 +110,4 @@ public abstract class NodeUtils
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user