mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Merge RM-5917 ClassificationSourceReference API TESTS to master
This commit is contained in:
@@ -668,17 +668,4 @@ public class BaseRMRestTest extends RestTest
|
||||
return documentLibrary;
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper method to create a Content Model
|
||||
*
|
||||
* @return ContentModel
|
||||
* @throws Exception
|
||||
*/
|
||||
public ContentModel toContentModel(String nodeId)
|
||||
{
|
||||
ContentModel node = new ContentModel();
|
||||
node.setNodeRef(nodeId);
|
||||
return node;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -27,6 +27,7 @@
|
||||
package org.alfresco.rest.rm.community.utils;
|
||||
|
||||
import org.alfresco.rest.model.RestNodeBodyMoveCopyModel;
|
||||
import org.alfresco.utility.model.ContentModel;
|
||||
|
||||
/**
|
||||
* Utility class for core components models
|
||||
@@ -53,4 +54,17 @@ public class CoreUtil
|
||||
moveDestinationInfo.setTargetParentId(nodeId);
|
||||
return moveDestinationInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper method to create a Content Model
|
||||
*
|
||||
* @return ContentModel
|
||||
* @throws Exception
|
||||
*/
|
||||
public static ContentModel toContentModel(String nodeId)
|
||||
{
|
||||
ContentModel node = new ContentModel();
|
||||
node.setNodeRef(nodeId);
|
||||
return node;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user