1 /*
2 * Copyright (C) 2003-2013 eXo Platform SAS.
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Affero General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Affero General Public License for more details.
13 *
14 * You should have received a copy of the GNU Affero General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17 package org.exoplatform.commons.search.service;
18
19 import java.util.Arrays;
20 import java.util.List;
21
22 import org.exoplatform.container.xml.InitParams;
23 import org.exoplatform.portal.config.DataStorage;
24 import org.exoplatform.portal.config.UserACL;
25 import org.exoplatform.portal.config.UserPortalConfigService;
26 import org.exoplatform.portal.mop.description.DescriptionService;
27 import org.exoplatform.portal.mop.navigation.NavigationService;
28 import org.exoplatform.portal.mop.page.PageService;
29 import org.exoplatform.services.organization.OrganizationService;
30
31 /**
32 * Created by The eXo Platform SAS
33 * Author : Canh Pham Van
34 * canhpv@exoplatform.com
35 * Mar 29, 2013
36 */
37 public class MockUserPortalConfigService extends UserPortalConfigService{
38
39 public MockUserPortalConfigService(UserACL userACL,
40 DataStorage storage,
41 OrganizationService orgService,
42 NavigationService navService,
43 DescriptionService descriptionService,
44 PageService pageService,
45 InitParams params) throws Exception {
46 super(userACL, storage, orgService, navService, descriptionService, pageService, params);
47 // TODO Auto-generated constructor stub
48 }
49
50 @Override
51 public List<String> getAllPortalNames() throws Exception {
52 // TODO Auto-generated method stub
53 return Arrays.asList("intranet","acme");
54 }
55
56 }