Package org.alfresco.repo.jscript
Class ScriptFacetResult
java.lang.Object
org.alfresco.repo.jscript.ScriptFacetResult
- All Implemented Interfaces:
Serializable
Scriptable facet. Specific for use by Search script as part of the object model.
- Author:
- Jamal Kaabi-Mofrad
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionScriptFacetResult(String facetValue, String facetLabel, int facetLabelIndex, int hits) -
Method Summary
-
Constructor Details
-
ScriptFacetResult
- Parameters:
facetValue- the facet value. e.g. the content creator's userIDfacetLabel- the display name of thefacetValue. e.g. jdoe => John DoefacetLabelIndex- the label index to be used for sorting (Optional).The default value is -1hits- the number of hits
-
-
Method Details
-
getFacetValue
- Returns:
- the facetValue
-
getFacetLabel
- Returns:
- the facetLabel
-
getFacetLabelIndex
public int getFacetLabelIndex()- Returns:
- the facetLabelIndex
-
getHits
public int getHits()- Returns:
- the hits
-