mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Merged BRANCHES/DEV/CLOUD1-BUG-FIX to HEAD:
42428: ALF-16217: Remove unnecessary restriction on content type git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@42449 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -234,7 +234,7 @@ public class QuickShareServiceImpl implements QuickShareService, NodeServicePoli
|
||||
{
|
||||
checkEnabled();
|
||||
|
||||
Map<QName, Serializable> nodeProps = getNodeProperties(nodeRef);
|
||||
Map<QName, Serializable> nodeProps = nodeService.getProperties(nodeRef);
|
||||
ContentData contentData = (ContentData)nodeService.getProperty(nodeRef, ContentModel.PROP_CONTENT);
|
||||
|
||||
String modifierUserName = (String)nodeProps.get(ContentModel.PROP_MODIFIER);
|
||||
@@ -318,18 +318,6 @@ public class QuickShareServiceImpl implements QuickShareService, NodeServicePoli
|
||||
return model;
|
||||
}
|
||||
|
||||
private Map<QName, Serializable> getNodeProperties(NodeRef nodeRef)
|
||||
{
|
||||
QName typeQName = nodeService.getType(nodeRef);
|
||||
if (! typeQName.equals(ContentModel.TYPE_CONTENT))
|
||||
{
|
||||
throw new InvalidNodeRefException(nodeRef);
|
||||
}
|
||||
|
||||
Map<QName, Serializable> nodeProps = nodeService.getProperties(nodeRef);
|
||||
return nodeProps;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Pair<String, NodeRef> getTenantNodeRefFromSharedId(final String sharedId)
|
||||
{
|
||||
|
Reference in New Issue
Block a user