mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-30 18:15:39 +00:00
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2005 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
78 lines
2.2 KiB
Java
78 lines
2.2 KiB
Java
/*
|
|
* Copyright (C) 2005 Alfresco, Inc.
|
|
*
|
|
* Licensed under the GNU Lesser General Public License as
|
|
* published by the Free Software Foundation; either version
|
|
* 2.1 of the License, or (at your option) any later version.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.gnu.org/licenses/lgpl.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.repo.webservice;
|
|
|
|
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;
|
|
|
|
/**
|
|
* Abstract base class for all web service implementations, provides support for common
|
|
* service injection
|
|
*
|
|
* @author gavinc
|
|
*/
|
|
public abstract class AbstractWebService
|
|
{
|
|
protected NodeService nodeService;
|
|
protected ContentService contentService;
|
|
protected SearchService searchService;
|
|
protected NamespaceService namespaceService;
|
|
|
|
/**
|
|
* Sets the instance of the NodeService to be used
|
|
*
|
|
* @param nodeService The NodeService
|
|
*/
|
|
public void setNodeService(NodeService nodeService)
|
|
{
|
|
this.nodeService = nodeService;
|
|
}
|
|
|
|
/**
|
|
* Sets the ContentService instance to use
|
|
*
|
|
* @param contentSvc The ContentService
|
|
*/
|
|
public void setContentService(ContentService contentSvc)
|
|
{
|
|
this.contentService = contentSvc;
|
|
}
|
|
|
|
/**
|
|
* Sets the instance of the SearchService to be used
|
|
*
|
|
* @param searchService The SearchService
|
|
*/
|
|
public void setSearchService(SearchService searchService)
|
|
{
|
|
this.searchService = searchService;
|
|
}
|
|
|
|
/**
|
|
* Sets the instance of the NamespaceService to be used
|
|
*
|
|
* @param namespaceService The NamespaceService
|
|
*/
|
|
public void setNamespaceService(NamespaceService namespaceService)
|
|
{
|
|
this.namespaceService = namespaceService;
|
|
}
|
|
}
|