mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
checkpoint of templating as used in the virgin money demo.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3475 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -9,6 +9,7 @@ import javax.transaction.UserTransaction;
|
||||
|
||||
import org.alfresco.service.cmr.dictionary.DictionaryService;
|
||||
import org.alfresco.service.cmr.model.FileFolderService;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.repository.NodeService;
|
||||
import org.alfresco.service.cmr.search.SearchService;
|
||||
import org.alfresco.service.namespace.NamespaceService;
|
||||
@@ -255,4 +256,13 @@ public abstract class BaseDialogBean implements IDialogBean
|
||||
FacesContext.getCurrentInstance(), getErrorMessageId()),
|
||||
exception.getMessage());
|
||||
}
|
||||
|
||||
protected NodeRef getContainerNodeRef()
|
||||
{
|
||||
String nodeId = this.navigator.getCurrentNodeId();
|
||||
return (nodeId == null
|
||||
? this.nodeService.getRootNode(Repository.getStoreRef())
|
||||
: new NodeRef(Repository.getStoreRef(), nodeId));
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user