Converted add and create content wizards

Moved dictionary and namespace services to BaseDialogBean

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2792 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2006-05-08 21:13:32 +00:00
parent cc2264ee41
commit 63f98069fe
20 changed files with 1350 additions and 127 deletions

View File

@@ -5,9 +5,11 @@ import java.text.MessageFormat;
import javax.faces.context.FacesContext;
import javax.transaction.UserTransaction;
import org.alfresco.service.cmr.dictionary.DictionaryService;
import org.alfresco.service.cmr.model.FileFolderService;
import org.alfresco.service.cmr.repository.NodeService;
import org.alfresco.service.cmr.search.SearchService;
import org.alfresco.service.namespace.NamespaceService;
import org.alfresco.web.app.AlfrescoNavigationHandler;
import org.alfresco.web.app.Application;
import org.alfresco.web.app.context.UIContextService;
@@ -31,6 +33,8 @@ public abstract class BaseDialogBean implements IDialogBean
protected NodeService nodeService;
protected FileFolderService fileFolderService;
protected SearchService searchService;
protected DictionaryService dictionaryService;
protected NamespaceService namespaceService;
public void init()
{
@@ -140,6 +144,24 @@ public abstract class BaseDialogBean implements IDialogBean
this.searchService = searchService;
}
/**
* Sets the dictionary service
*
* @param dictionaryService the dictionary service
*/
public void setDictionaryService(DictionaryService dictionaryService)
{
this.dictionaryService = dictionaryService;
}
/**
* @param namespaceService The NamespaceService
*/
public void setNamespaceService(NamespaceService namespaceService)
{
this.namespaceService = namespaceService;
}
/**
* Returns the default cancel outcome
*