| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
package com.xpn.xwiki.criteria.impl; |
| 21 |
|
|
| 22 |
|
|
| 23 |
|
|
| 24 |
|
|
| |
|
| 0% |
Uncovered Elements: 21 (21) |
Complexity: 11 |
Complexity Density: 1.1 |
|
| 25 |
|
public class ScopeFactory |
| 26 |
|
{ |
| 27 |
|
|
| 28 |
|
|
| 29 |
|
|
| 30 |
|
public static final Scope ALL_PAGES = createScope(Scope.PAGE_SCOPE, "", false); |
| 31 |
|
|
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
| 35 |
|
public static final Scope ALL_SPACES = createScope(Scope.SPACE_SCOPE, "", false); |
| 36 |
|
|
| 37 |
|
|
| 38 |
|
|
| 39 |
|
|
| 40 |
|
public static final Scope ALL_WIKIS = createScope(Scope.WIKI_SCOPE, "", false); |
| 41 |
|
|
| 42 |
|
|
| 43 |
|
|
| 44 |
|
|
| 45 |
|
public static final Scope ALL = createScope(Scope.GLOBAL_SCOPE, "", false); |
| 46 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 47 |
0 |
public ScopeFactory()... |
| 48 |
|
{ |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
|
| 52 |
|
@see |
| 53 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 54 |
0 |
public static Scope createScope(int type, String name, boolean deep)... |
| 55 |
|
{ |
| 56 |
0 |
return new Scope(type, name, deep); |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
|
| 60 |
|
|
| 61 |
|
|
| 62 |
|
@param |
| 63 |
|
@return |
| 64 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 65 |
0 |
public static Scope createPageScope(String pageName)... |
| 66 |
|
{ |
| 67 |
0 |
return createScope(Scope.PAGE_SCOPE, pageName, false); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
|
| 71 |
|
|
| 72 |
|
|
| 73 |
|
@param |
| 74 |
|
@return |
| 75 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 76 |
0 |
public static Scope createSpaceScope(String spaceName)... |
| 77 |
|
{ |
| 78 |
0 |
return createSpaceScope(spaceName, true); |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
|
| 82 |
|
|
| 83 |
|
|
| 84 |
|
@param |
| 85 |
|
@param |
| 86 |
|
@return |
| 87 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 88 |
0 |
public static Scope createSpaceScope(String spaceName, boolean deep)... |
| 89 |
|
{ |
| 90 |
0 |
return createScope(Scope.SPACE_SCOPE, spaceName, deep); |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
|
| 94 |
|
|
| 95 |
|
|
| 96 |
|
@param |
| 97 |
|
@return |
| 98 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 99 |
0 |
public static Scope createWikiScope(String wikiName)... |
| 100 |
|
{ |
| 101 |
0 |
return createWikiScope(wikiName, true); |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
|
| 105 |
|
|
| 106 |
|
|
| 107 |
|
@param |
| 108 |
|
@param |
| 109 |
|
@return |
| 110 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 111 |
0 |
public static Scope createWikiScope(String wikiName, boolean deep)... |
| 112 |
|
{ |
| 113 |
0 |
return createScope(Scope.WIKI_SCOPE, wikiName, deep); |
| 114 |
|
} |
| 115 |
|
|
| 116 |
|
|
| 117 |
|
@link |
| 118 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 119 |
0 |
public static Scope getALL_PAGES()... |
| 120 |
|
{ |
| 121 |
0 |
return ALL_PAGES; |
| 122 |
|
} |
| 123 |
|
|
| 124 |
|
|
| 125 |
|
@link |
| 126 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 127 |
0 |
public static Scope getALL_SPACES()... |
| 128 |
|
{ |
| 129 |
0 |
return ALL_SPACES; |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
|
| 133 |
|
@link |
| 134 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 135 |
0 |
public static Scope getALL_WIKIS()... |
| 136 |
|
{ |
| 137 |
0 |
return ALL_WIKIS; |
| 138 |
|
} |
| 139 |
|
|
| 140 |
|
|
| 141 |
|
@link |
| 142 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 143 |
0 |
public static Scope getALL()... |
| 144 |
|
{ |
| 145 |
0 |
return ALL; |
| 146 |
|
} |
| 147 |
|
} |