mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
65590: Merged V4.2-BUG-FIX (4.2.2) to HEAD-BUG-FIX (4.3/Cloud) 65433: Merged DEV to V4.2-BUG-FIX (4.2.2) 63225 : MNT-10536 : Public API > GET nodes/<nodeId>/comments. - Throw InvalidArgumentException (status 400) if detected node is not a content or a folder 65046 : MNT-10536 : Public API > GET nodes/<nodeId>/comments. - Test for the fix git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@66245 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1028,6 +1028,14 @@ public class RepoService
|
||||
return nodeRef;
|
||||
}
|
||||
|
||||
public NodeRef createCmObject(final NodeRef parentNodeRef, final String name)
|
||||
{
|
||||
QName assocQName = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, QName.createValidLocalName(name));
|
||||
NodeRef nodeRef = nodeService.createNode(parentNodeRef, ContentModel.ASSOC_CONTAINS, assocQName, ContentModel.TYPE_CMOBJECT).getChildRef();
|
||||
|
||||
return nodeRef;
|
||||
}
|
||||
|
||||
public Visibility getVisibility(Client client, NodeRef nodeRef)
|
||||
{
|
||||
return hiddenAspect.getVisibility(client, nodeRef);
|
||||
|
Reference in New Issue
Block a user