1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
33
34
35
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
48 }
49
50 @Override
51 public List<String> getAllPortalNames() throws Exception {
52
53 return Arrays.asList("intranet","acme");
54 }
55
56 }