Thumbnail Service and Upload: thumbnails now refresh when new content is uploaded, content mime is not reset to binary when new content is checked in

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10145 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2008-07-30 18:33:24 +00:00
parent 558a195b5b
commit d368691efc
2 changed files with 107 additions and 67 deletions

View File

@@ -248,10 +248,14 @@ public class ThumbnailServiceImpl implements ThumbnailService
{
throw new ThumbnailException(ERR_NO_PARENT);
}
else if (parents.size() != 1)
{
throw new ThumbnailException(ERR_TOO_PARENT);
}
// TODO
// When a node with thumbnails is checked in the assoc's get doubled up. This means we get more than one parent.
// As a work around simply take the first parent retrieved
//
//else if (parents.size() != 1)
//{
// throw new ThumbnailException(ERR_TOO_PARENT);
//}
else
{
node = parents.get(0).getParentRef();