mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
. 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:
@@ -229,6 +229,10 @@ public class BrowseBean implements IContextListener
|
||||
*/
|
||||
public void setActionSpace(Node actionSpace)
|
||||
{
|
||||
for (NodeEventListener listener : getNodeEventListeners())
|
||||
{
|
||||
listener.created(actionSpace, actionSpace.getType());
|
||||
}
|
||||
this.actionSpace = actionSpace;
|
||||
}
|
||||
|
||||
@@ -245,6 +249,10 @@ public class BrowseBean implements IContextListener
|
||||
*/
|
||||
public void setDocument(Node document)
|
||||
{
|
||||
for (NodeEventListener listener : getNodeEventListeners())
|
||||
{
|
||||
listener.created(document, document.getType());
|
||||
}
|
||||
this.document = document;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user