mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-30 18:15:39 +00:00
78429: Merged EOL (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud) 75801: ACE-2149: EOL AVM / WCM - Thorough sweep of 'avm' and 'wcm' references - Picked up on many 'deployment' and related classes and configuration - Repo starts git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@82558 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
190 lines
4.9 KiB
Java
190 lines
4.9 KiB
Java
/*
|
|
* Copyright (C) 2005-2010 Alfresco Software Limited.
|
|
*
|
|
* This file is part of Alfresco
|
|
*
|
|
* Alfresco is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* Alfresco is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
package org.alfresco.filesys;
|
|
|
|
import org.alfresco.jlan.server.config.ConfigSection;
|
|
import org.alfresco.jlan.server.filesys.DiskInterface;
|
|
import org.alfresco.repo.security.authentication.AuthenticationComponent;
|
|
import org.alfresco.repo.tenant.TenantService;
|
|
import org.alfresco.service.cmr.repository.NodeService;
|
|
import org.alfresco.service.cmr.search.SearchService;
|
|
import org.alfresco.service.cmr.security.AuthenticationService;
|
|
import org.alfresco.service.cmr.security.AuthorityService;
|
|
import org.alfresco.service.cmr.security.PersonService;
|
|
import org.alfresco.service.namespace.NamespaceService;
|
|
import org.alfresco.service.transaction.TransactionService;
|
|
|
|
/**
|
|
* Alfresco Configuration Section Class
|
|
*
|
|
* @author gkspencer
|
|
*/
|
|
public class AlfrescoConfigSection extends ConfigSection {
|
|
|
|
// Alfresco configuration section name
|
|
|
|
public static final String SectionName = "Alfresco";
|
|
|
|
// Disk interface to use for shared filesystems
|
|
|
|
private DiskInterface m_repoDiskInterface;
|
|
|
|
// Main authentication service, public API
|
|
|
|
private AuthenticationService m_authenticationService;
|
|
|
|
// Authentication component, for internal functions
|
|
|
|
private AuthenticationComponent m_authenticationComponent;
|
|
|
|
// Various services
|
|
|
|
private NodeService m_nodeService;
|
|
private PersonService m_personService;
|
|
private TransactionService m_transactionService;
|
|
private TenantService m_tenantService;
|
|
private SearchService m_searchService;
|
|
private NamespaceService m_namespaceService;
|
|
private AuthorityService m_authorityService;
|
|
|
|
/**
|
|
* Class constructor
|
|
*
|
|
* @param config ServerConfigurationBean
|
|
*/
|
|
public AlfrescoConfigSection(AbstractServerConfigurationBean config) {
|
|
super( SectionName, config);
|
|
|
|
// Copy values from the server configuration bean
|
|
|
|
m_repoDiskInterface = config.getRepoDiskInterface();
|
|
|
|
m_authenticationService = config.getAuthenticationService();
|
|
m_authenticationComponent = config.getAuthenticationComponent();
|
|
|
|
m_nodeService = config.getNodeService();
|
|
m_personService = config.getPersonService();
|
|
m_transactionService = config.getTransactionService();
|
|
m_tenantService = config.getTenantService();
|
|
m_searchService = config.getSearchService();
|
|
m_namespaceService = config.getNamespaceService();
|
|
m_authorityService = config.getAuthorityService();
|
|
}
|
|
|
|
/**
|
|
* Return the repository disk interface to be used to create shares
|
|
*
|
|
* @return DiskInterface
|
|
*/
|
|
public final DiskInterface getRepoDiskInterface()
|
|
{
|
|
return m_repoDiskInterface;
|
|
}
|
|
|
|
/**
|
|
* Return the authentication service
|
|
*
|
|
* @return AuthenticationService
|
|
*/
|
|
public final AuthenticationService getAuthenticationService()
|
|
{
|
|
return m_authenticationService;
|
|
}
|
|
|
|
/**
|
|
* Return the authentication component
|
|
*
|
|
* @return AuthenticationComponent
|
|
*/
|
|
public final AuthenticationComponent getAuthenticationComponent()
|
|
{
|
|
return m_authenticationComponent;
|
|
}
|
|
|
|
/**
|
|
* Return the node service
|
|
*
|
|
* @return NodeService
|
|
*/
|
|
public final NodeService getNodeService()
|
|
{
|
|
return m_nodeService;
|
|
}
|
|
|
|
/**
|
|
* Return the person service
|
|
*
|
|
* @return PersonService
|
|
*/
|
|
public final PersonService getPersonService()
|
|
{
|
|
return m_personService;
|
|
}
|
|
|
|
/**
|
|
* Return the transaction service
|
|
*
|
|
* @return TransactionService
|
|
*/
|
|
public final TransactionService getTransactionService()
|
|
{
|
|
return m_transactionService;
|
|
}
|
|
|
|
/**
|
|
* Return the tenant service
|
|
*
|
|
* @return TenantService
|
|
*/
|
|
public final TenantService getTenantService()
|
|
{
|
|
return m_tenantService;
|
|
}
|
|
|
|
/**
|
|
* Return the search service
|
|
*
|
|
* @return SearchService
|
|
*/
|
|
public final SearchService getSearchService()
|
|
{
|
|
return m_searchService;
|
|
}
|
|
|
|
/**
|
|
* Return the namespace service
|
|
*
|
|
* @return NamespaceService
|
|
*/
|
|
public final NamespaceService getNamespaceService()
|
|
{
|
|
return m_namespaceService;
|
|
}
|
|
|
|
/**
|
|
* Return the authority service
|
|
*
|
|
* @return AuthorityService
|
|
*/
|
|
public final AuthorityService getAuthorityService()
|
|
{
|
|
return m_authorityService;
|
|
}
|
|
}
|