mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added several missing UI actions to the Space Details and Document Details page
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2113 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -32,6 +32,7 @@ import javax.transaction.UserTransaction;
|
||||
|
||||
import org.alfresco.error.AlfrescoRuntimeException;
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.model.ForumModel;
|
||||
import org.alfresco.repo.content.MimetypeMap;
|
||||
import org.alfresco.service.cmr.lock.LockService;
|
||||
import org.alfresco.service.cmr.repository.ContentData;
|
||||
@@ -226,6 +227,14 @@ public class DocumentDetailsBean
|
||||
return getDocument().hasAspect(ContentModel.ASPECT_INLINEEDITABLE);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return true if the Document has a discussion attached to it
|
||||
*/
|
||||
public boolean isBeingDiscussed()
|
||||
{
|
||||
return getDocument().hasAspect(ForumModel.ASPECT_DISCUSSABLE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of objects representing the versions of the
|
||||
* current document
|
||||
|
@@ -27,6 +27,7 @@ import javax.faces.event.ActionEvent;
|
||||
import javax.faces.model.SelectItem;
|
||||
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.model.ForumModel;
|
||||
import org.alfresco.service.cmr.dictionary.DictionaryService;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.repository.NodeService;
|
||||
@@ -136,6 +137,14 @@ public class SpaceDetailsBean
|
||||
return getSpace().getName();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return true if the Space has a discussion attached to it
|
||||
*/
|
||||
public boolean isBeingDiscussed()
|
||||
{
|
||||
return getSpace().hasAspect(ForumModel.ASPECT_DISCUSSABLE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the WebDAV URL for the current space
|
||||
*
|
||||
|
Reference in New Issue
Block a user