. Added NodeEventListener calls to BrowseBean setActionSpace() and setDocument() methods

- Allows code "extensions" to the web-client such as Forums and TaskList to no longer add code directly to existing managed beans DocumentDetailsBean or SpaceDetailsBean
 - Also as a side-effect nicely fixes an unreported bug where the CheckIn action in the Document Details page was not correctly using the forums specific CheckIn resolver

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2435 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-02-17 18:06:00 +00:00
parent 701a89774c
commit ef06f29219
5 changed files with 12 additions and 23 deletions

View File

@@ -21,7 +21,6 @@ import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
@@ -32,7 +31,6 @@ 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;
@@ -227,14 +225,6 @@ 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