mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- "Websites" folder created under root of Company Home during bootstrap - Bootstrap properties and getter helper added to import-export-context & web-client - Beginnings of the Create Website wizard - Action definition added for Create Website action - Beginings of the model for avm webfolders and associated sub-structures git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3762 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
176 lines
5.0 KiB
Java
176 lines
5.0 KiB
Java
/*
|
|
* Copyright (C) 2005 Alfresco, Inc.
|
|
*
|
|
* Licensed under the Mozilla Public License version 1.1
|
|
* with a permitted attribution clause. You may obtain a
|
|
* copy of the License at
|
|
*
|
|
* http://www.alfresco.org/legal/license.txt
|
|
*
|
|
* Unless required by applicable law or agreed to in writing,
|
|
* software distributed under the License is distributed on an
|
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
|
* either express or implied. See the License for the specific
|
|
* language governing permissions and limitations under the
|
|
* License.
|
|
*/
|
|
package org.alfresco.web.bean.wcm;
|
|
|
|
import javax.faces.context.FacesContext;
|
|
|
|
import org.alfresco.service.cmr.dictionary.DictionaryService;
|
|
import org.alfresco.service.cmr.repository.ContentService;
|
|
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.context.IContextListener;
|
|
import org.alfresco.web.app.context.UIContextService;
|
|
import org.alfresco.web.bean.BrowseBean;
|
|
import org.alfresco.web.bean.NavigationBean;
|
|
import org.alfresco.web.ui.common.component.data.UIRichList;
|
|
import org.apache.commons.logging.Log;
|
|
import org.apache.commons.logging.LogFactory;
|
|
|
|
/**
|
|
* Bean backing up the AVM specific browse screens
|
|
*
|
|
* @author Kevin Roast
|
|
*/
|
|
public class AVMBrowseBean implements IContextListener
|
|
{
|
|
private static Log logger = LogFactory.getLog(AVMBrowseBean.class);
|
|
|
|
/** The NodeService to be used by the bean */
|
|
protected NodeService nodeService;
|
|
|
|
/** The DictionaryService bean reference */
|
|
protected DictionaryService dictionaryService;
|
|
|
|
/** The SearchService bean reference. */
|
|
protected SearchService searchService;
|
|
|
|
/** The NamespaceService bean reference. */
|
|
protected NamespaceService namespaceService;
|
|
|
|
/** The browse bean */
|
|
protected BrowseBean browseBean;
|
|
|
|
/** The NavigationBean bean reference */
|
|
protected NavigationBean navigator;
|
|
|
|
|
|
/**
|
|
* Default Constructor
|
|
*/
|
|
public AVMBrowseBean()
|
|
{
|
|
UIContextService.getInstance(FacesContext.getCurrentInstance()).registerBean(this);
|
|
|
|
//initFromClientConfig();
|
|
}
|
|
|
|
|
|
// ------------------------------------------------------------------------------
|
|
// Bean property getters and setters
|
|
|
|
/**
|
|
* @param nodeService The NodeService to set.
|
|
*/
|
|
public void setNodeService(NodeService nodeService)
|
|
{
|
|
this.nodeService = nodeService;
|
|
}
|
|
|
|
/**
|
|
* @param dictionaryService The DictionaryService to set.
|
|
*/
|
|
public void setDictionaryService(DictionaryService dictionaryService)
|
|
{
|
|
this.dictionaryService = dictionaryService;
|
|
}
|
|
|
|
/**
|
|
* @param searchService The SearchService to set.
|
|
*/
|
|
public void setSearchService(SearchService searchService)
|
|
{
|
|
this.searchService = searchService;
|
|
}
|
|
|
|
/**
|
|
* @param namespaceService The NamespaceService to set.
|
|
*/
|
|
public void setNamespaceService(NamespaceService namespaceService)
|
|
{
|
|
this.namespaceService = namespaceService;
|
|
}
|
|
|
|
/**
|
|
* Sets the BrowseBean instance to use to retrieve the current document
|
|
*
|
|
* @param browseBean BrowseBean instance
|
|
*/
|
|
public void setBrowseBean(BrowseBean browseBean)
|
|
{
|
|
this.browseBean = browseBean;
|
|
}
|
|
|
|
/**
|
|
* @param navigator The NavigationBean to set.
|
|
*/
|
|
public void setNavigator(NavigationBean navigator)
|
|
{
|
|
this.navigator = navigator;
|
|
}
|
|
|
|
/**
|
|
* @param avmRichList The avmRichList to set.
|
|
*/
|
|
/*public void setAvmRichList(UIRichList avmRichList)
|
|
{
|
|
this.forumsRichList = forumsRichList;
|
|
if (this.forumsRichList != null)
|
|
{
|
|
// set the initial sort column and direction
|
|
this.forumsRichList.setInitialSortColumn(
|
|
this.viewsConfig.getDefaultSortColumn(PAGE_NAME_FORUMS));
|
|
this.forumsRichList.setInitialSortDescending(
|
|
this.viewsConfig.hasDescendingSort(PAGE_NAME_FORUMS));
|
|
}
|
|
}*/
|
|
|
|
/**
|
|
* @return Returns the forumsRichList.
|
|
*/
|
|
/*public UIRichList getForumsRichList()
|
|
{
|
|
return this.forumsRichList;
|
|
}*/
|
|
|
|
|
|
// ------------------------------------------------------------------------------
|
|
// IContextListener implementation
|
|
|
|
/**
|
|
* @see org.alfresco.web.app.context.IContextListener#contextUpdated()
|
|
*/
|
|
public void contextUpdated()
|
|
{
|
|
/*
|
|
// clear the value for the list components - will cause re-bind to it's data and refresh
|
|
if (this.forumsRichList != null)
|
|
{
|
|
this.forumsRichList.setValue(null);
|
|
if (this.forumsRichList.getInitialSortColumn() == null)
|
|
{
|
|
// set the initial sort column and direction
|
|
this.forumsRichList.setInitialSortColumn(
|
|
this.viewsConfig.getDefaultSortColumn(PAGE_NAME_FORUMS));
|
|
this.forumsRichList.setInitialSortDescending(
|
|
this.viewsConfig.hasDescendingSort(PAGE_NAME_FORUMS));
|
|
}
|
|
}
|
|
*/
|
|
}
|
|
}
|