Class | Line # | Actions | |||||
---|---|---|---|---|---|---|---|
SpaceIndexPage | 33 | 3 | 0% | 2 | 3 |
1 | /* | |
2 | * See the NOTICE file distributed with this work for additional | |
3 | * information regarding copyright ownership. | |
4 | * | |
5 | * This is free software; you can redistribute it and/or modify it | |
6 | * under the terms of the GNU Lesser General Public License as | |
7 | * published by the Free Software Foundation; either version 2.1 of | |
8 | * the License, or (at your option) any later version. | |
9 | * | |
10 | * This software is distributed in the hope that it will be useful, | |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 | * Lesser General Public License for more details. | |
14 | * | |
15 | * You should have received a copy of the GNU Lesser General Public | |
16 | * License along with this software; if not, write to the Free | |
17 | * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | |
18 | * 02110-1301 USA, or see the FSF site: http://www.fsf.org. | |
19 | */ | |
20 | package org.xwiki.index.test.po; | |
21 | ||
22 | import java.util.Collections; | |
23 | ||
24 | import org.xwiki.test.ui.po.LiveTableElement; | |
25 | import org.xwiki.test.ui.po.ViewPage; | |
26 | ||
27 | /** | |
28 | * Represents the Main.SpaceIndex page. | |
29 | * | |
30 | * @version $Id: db3627fd0a3ce26eda0fcae8ca25ebbfd858b659 $ | |
31 | * @since 3.2M3 | |
32 | */ | |
33 | public class SpaceIndexPage extends ViewPage | |
34 | { | |
35 | /** | |
36 | * The live table that lists the documents from the space. | |
37 | */ | |
38 | private LiveTableElement liveTable = new LiveTableElement("spaceindex"); | |
39 | ||
40 | /** | |
41 | * Opens the document index for the specified page. | |
42 | * | |
43 | * @param spaceName the name of the space to view the index of | |
44 | * @return the space index page listing document from the specified space | |
45 | */ | |
46 | 0 | ![]() |
47 | { | |
48 | 0 | getUtil().gotoPage("Main", "SpaceIndex", "view", Collections.singletonMap("space", spaceName)); |
49 | 0 | return new SpaceIndexPage(); |
50 | } | |
51 | ||
52 | /** | |
53 | * @return the document index live table | |
54 | */ | |
55 | 1 | ![]() |
56 | { | |
57 | 1 | return liveTable; |
58 | } | |
59 | } |