mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Merged HEAD-BUG-FIX (Cloud33/4.3) to HEAD (Cloud33/4.3)
62919: Merged PLATFORM1 (Cloud33) to HEAD-BUG-FIX (Cloud33/4.3) 62510: ACE-33 - fix for unit test git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62974 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1238,6 +1238,20 @@ public class FileFolderServiceImpl extends AbstractBaseCopyService implements Fi
|
||||
Map<QName, Serializable> properties = new HashMap<QName, Serializable>(11);
|
||||
properties.put(ContentModel.PROP_NAME, (Serializable) name);
|
||||
|
||||
// Check the type is valid for file/folder service
|
||||
FileFolderServiceType type = getType(typeQName);
|
||||
|
||||
switch (type)
|
||||
{
|
||||
case SYSTEM_FOLDER:
|
||||
throw new InvalidTypeException("System Folders are not handled by this service :" + typeQName);
|
||||
case INVALID:
|
||||
throw new InvalidTypeException("Type is not handled by this service: " + typeQName);
|
||||
case FILE:
|
||||
case FOLDER:
|
||||
default:
|
||||
}
|
||||
|
||||
// create the node
|
||||
if (assocQName == null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user