public class SolrSortModel extends ItemModel
Extending SolrSort type with additional attributes.
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static String |
_SOLRINDEXEDTYPE2SOLRSORTREL
Generated relation code constant for relation
SolrIndexedType2SolrSortRel defining source attribute indexedType in extension commerceservices. |
static String |
_TYPECODE
Generated model type code constant.
|
static String |
CODE
Generated constant - Attribute key of
SolrSort.code attribute defined at extension commerceservices. |
static String |
FIELDS
Generated constant - Attribute key of
SolrSort.fields attribute defined at extension commerceservices. |
static String |
INDEXEDTYPE
Generated constant - Attribute key of
SolrSort.indexedType attribute defined at extension commerceservices. |
static String |
INDEXEDTYPEPOS
Generated constant - Attribute key of
SolrSort.indexedTypePOS attribute defined at extension commerceservices. |
static String |
NAME
Generated constant - Attribute key of
SolrSort.name attribute defined at extension commerceservices. |
static String |
USEBOOST
Generated constant - Attribute key of
SolrSort.useBoost attribute defined at extension commerceservices. |
static String |
VISIBLE
Generated constant - Attribute key of
SolrSort.visible attribute defined at extension commercesearch. |
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PKLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
SolrSortModel()
Generated constructor - Default constructor for generic creation.
|
SolrSortModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
SolrSortModel(String _code,
SolrIndexedTypeModel _indexedType)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
SolrSortModel(String _code,
SolrIndexedTypeModel _indexedType,
ItemModel _owner)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCode()
Generated method - Getter of the
SolrSort.code attribute defined at extension commerceservices. |
List<SolrSortFieldModel> |
getFields()
Generated method - Getter of the
SolrSort.fields attribute defined at extension commerceservices. |
SolrIndexedTypeModel |
getIndexedType()
Generated method - Getter of the
SolrSort.indexedType attribute defined at extension commerceservices. |
String |
getName()
Generated method - Getter of the
SolrSort.name attribute defined at extension commerceservices. |
String |
getName(Locale loc)
Generated method - Getter of the
SolrSort.name attribute defined at extension commerceservices. |
Boolean |
getVisible()
Generated method - Getter of the
SolrSort.visible attribute defined at extension commercesearch. |
boolean |
isUseBoost()
Generated method - Getter of the
SolrSort.useBoost attribute defined at extension commerceservices. |
void |
setCode(String value)
Generated method - Setter of
SolrSort.code attribute defined at extension commerceservices. |
void |
setFields(List<SolrSortFieldModel> value)
Generated method - Setter of
SolrSort.fields attribute defined at extension commerceservices. |
void |
setIndexedType(SolrIndexedTypeModel value)
Generated method - Setter of
SolrSort.indexedType attribute defined at extension commerceservices. |
void |
setName(String value)
Generated method - Setter of
SolrSort.name attribute defined at extension commerceservices. |
void |
setName(String value,
Locale loc)
Generated method - Setter of
SolrSort.name attribute defined at extension commerceservices. |
void |
setUseBoost(boolean value)
Generated method - Setter of
SolrSort.useBoost attribute defined at extension commerceservices. |
void |
setVisible(Boolean value)
Generated method - Setter of
SolrSort.visible attribute defined at extension commercesearch. |
getComments, getCreationtime, getModifiedtime, getOwner, setComments, setCreationtime, setModifiedtime, setOwnerequals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplacepublic static final String _TYPECODE
public static final String _SOLRINDEXEDTYPE2SOLRSORTREL
SolrIndexedType2SolrSortRel defining source attribute indexedType in extension commerceservices.public static final String CODE
SolrSort.code attribute defined at extension commerceservices.public static final String NAME
SolrSort.name attribute defined at extension commerceservices.public static final String USEBOOST
SolrSort.useBoost attribute defined at extension commerceservices.public static final String INDEXEDTYPEPOS
SolrSort.indexedTypePOS attribute defined at extension commerceservices.public static final String INDEXEDTYPE
SolrSort.indexedType attribute defined at extension commerceservices.public static final String FIELDS
SolrSort.fields attribute defined at extension commerceservices.public static final String VISIBLE
SolrSort.visible attribute defined at extension commercesearch.public SolrSortModel()
public SolrSortModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public SolrSortModel(String _code, SolrIndexedTypeModel _indexedType)
_code - initial attribute declared by type SolrSort at extension commerceservices_indexedType - initial attribute declared by type SolrSort at extension commerceservices@Deprecated public SolrSortModel(String _code, SolrIndexedTypeModel _indexedType, ItemModel _owner)
_code - initial attribute declared by type SolrSort at extension commerceservices_indexedType - initial attribute declared by type SolrSort at extension commerceservices_owner - initial attribute declared by type Item at extension core@Accessor(qualifier="code", type=GETTER) public String getCode()
SolrSort.code attribute defined at extension commerceservices.@Accessor(qualifier="fields", type=GETTER) public List<SolrSortFieldModel> getFields()
SolrSort.fields attribute defined at extension commerceservices.
Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.@Accessor(qualifier="indexedType", type=GETTER) public SolrIndexedTypeModel getIndexedType()
SolrSort.indexedType attribute defined at extension commerceservices.@Accessor(qualifier="name", type=GETTER) public String getName()
SolrSort.name attribute defined at extension commerceservices.@Accessor(qualifier="name", type=GETTER) public String getName(Locale loc)
SolrSort.name attribute defined at extension commerceservices.loc - the value localization keyIllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="visible", type=GETTER) public Boolean getVisible()
SolrSort.visible attribute defined at extension commercesearch.@Accessor(qualifier="useBoost", type=GETTER) public boolean isUseBoost()
SolrSort.useBoost attribute defined at extension commerceservices.@Accessor(qualifier="code", type=SETTER) public void setCode(String value)
SolrSort.code attribute defined at extension commerceservices.value - the code - The unique code used to identify the solr sort.@Accessor(qualifier="fields", type=SETTER) public void setFields(List<SolrSortFieldModel> value)
SolrSort.fields attribute defined at extension commerceservices.value - the fields@Accessor(qualifier="indexedType", type=SETTER) public void setIndexedType(SolrIndexedTypeModel value)
SolrSort.indexedType attribute defined at extension commerceservices.value - the indexedType@Accessor(qualifier="name", type=SETTER) public void setName(String value)
SolrSort.name attribute defined at extension commerceservices.value - the name - The display name for this sort.@Accessor(qualifier="name", type=SETTER) public void setName(String value, Locale loc)
SolrSort.name attribute defined at extension commerceservices.value - the name - The display name for this sort.loc - the value localization keyIllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="useBoost", type=SETTER) public void setUseBoost(boolean value)
SolrSort.useBoost attribute defined at extension commerceservices.value - the useBoost - The property specifies whether a sort should apply SOLR boost rules.@Accessor(qualifier="visible", type=SETTER) public void setVisible(Boolean value)
SolrSort.visible attribute defined at extension commercesearch.value - the visible - The property is used to check whether a sort should be visible for front users or not.Copyright © 2017 SAP SE. All Rights Reserved.