mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
ACS-4863 Move new validation method to interface as a default implementation.
This commit is contained in:
@@ -219,7 +219,10 @@ public interface Nodes
|
||||
* @throws InvalidArgumentException if the specified node id is not a valid format.
|
||||
* @throws EntityNotFoundException if the specified node was not found in the database.
|
||||
*/
|
||||
NodeRef validateOrLookupNode(String nodeId);
|
||||
default NodeRef validateOrLookupNode(String nodeId)
|
||||
{
|
||||
return validateOrLookupNode(nodeId, null);
|
||||
}
|
||||
NodeRef validateOrLookupNode(String nodeId, String path);
|
||||
|
||||
boolean nodeMatches(NodeRef nodeRef, Set<QName> expectedTypes, Set<QName> excludedTypes);
|
||||
|
@@ -649,11 +649,6 @@ public class NodesImpl implements Nodes
|
||||
return nodeService.getPrimaryParent(nodeRef).getParentRef();
|
||||
}
|
||||
|
||||
public NodeRef validateOrLookupNode(String nodeId)
|
||||
{
|
||||
return validateOrLookupNode(nodeId, null);
|
||||
}
|
||||
|
||||
public NodeRef validateOrLookupNode(String nodeId, String path)
|
||||
{
|
||||
NodeRef parentNodeRef;
|
||||
|
Reference in New Issue
Block a user