Package com.xpn.xwiki.criteria.impl
Class Scope
- java.lang.Object
-
- com.xpn.xwiki.criteria.impl.Scope
-
public class Scope extends Object
Immutable scope for retrieving statistics. A scope is associated with a single document but it can match any number of documents. Here, a document can be a page, a space, a wiki or the entire application as a unit. For instance, a scope associated with a space can match all the pages within that space.
-
-
Field Summary
Fields Modifier and Type Field Description static intGLOBAL_SCOPEThe scope that is associated with the entire application as a unitstatic intPAGE_SCOPEAny scope that is associated with a pagestatic intSPACE_SCOPEAny scope that is associated with a spacestatic intWIKI_SCOPEAny scope that is associated with a wiki
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()StringgetPattern()intgetType()booleanisDeep()
-
-
-
Field Detail
-
PAGE_SCOPE
public static final int PAGE_SCOPE
Any scope that is associated with a page- See Also:
- Constant Field Values
-
SPACE_SCOPE
public static final int SPACE_SCOPE
Any scope that is associated with a space- See Also:
- Constant Field Values
-
WIKI_SCOPE
public static final int WIKI_SCOPE
Any scope that is associated with a wiki- See Also:
- Constant Field Values
-
GLOBAL_SCOPE
public static final int GLOBAL_SCOPE
The scope that is associated with the entire application as a unit- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Scope
public Scope(int type, String name, boolean deep)Creates a new Scope instance with the specified field values.- Parameters:
type- The type of the scopename- The name of the document associated with this scopedeep-truefor matching all sub documents;falsefor matching the associated document as a unit
-
-