public class CmsGallerySearchFieldMapping extends CmsSearchFieldMapping
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
FIELD_ADDITIONAL_INFO
Name of the field that contains the gallery index additional information.
|
static java.lang.String |
FIELD_CONTAINER_TYPES
Name of the field that contains the gallery index container information.
|
static java.lang.String |
FIELD_RESOURCE_DATE_EXPIRED
Name of the field that contains the date the resource has expired.
|
static java.lang.String |
FIELD_RESOURCE_DATE_RELEASED
Name of the field that contains the date the resource was released.
|
static java.lang.String |
FIELD_RESOURCE_LENGTH
Name of the field that contains the resource length.
|
static java.lang.String |
FIELD_RESOURCE_STATE
Name of the field that contains the resource state.
|
static java.lang.String |
FIELD_RESOURCE_STRUCTURE_ID
Name of the field that contains the structure id the resource.
|
static java.lang.String |
FIELD_RESOURCE_USER_CREATED
Name of the field that contains the name of the user who created the resource.
|
static java.lang.String |
FIELD_RESOURCE_USER_LASTMODIFIED
Name of the field that contains the name of the user who last modified the resource.
|
构造器和说明 |
---|
CmsGallerySearchFieldMapping()
Public constructor for a new search field mapping.
|
CmsGallerySearchFieldMapping(CmsSearchFieldMappingType type,
java.lang.String param)
Public constructor for a new search field mapping.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getStringValue(CmsObject cms,
CmsResource res,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Returns the String value extracted form the provided data according to the rules of this mapping type.
|
equals, getDefaultDateExpired, getDefaultValue, getParam, getType, hashCode, setDefaultValue, setParam, setType, setType
public static final java.lang.String FIELD_ADDITIONAL_INFO
public static final java.lang.String FIELD_CONTAINER_TYPES
public static final java.lang.String FIELD_RESOURCE_DATE_EXPIRED
public static final java.lang.String FIELD_RESOURCE_DATE_RELEASED
public static final java.lang.String FIELD_RESOURCE_LENGTH
public static final java.lang.String FIELD_RESOURCE_STATE
public static final java.lang.String FIELD_RESOURCE_STRUCTURE_ID
public static final java.lang.String FIELD_RESOURCE_USER_CREATED
public static final java.lang.String FIELD_RESOURCE_USER_LASTMODIFIED
public CmsGallerySearchFieldMapping()
public CmsGallerySearchFieldMapping(CmsSearchFieldMappingType type, java.lang.String param)
type
- the type to use, see CmsSearchFieldMapping.setType(CmsSearchFieldMappingType)
param
- the mapping parameter, see CmsSearchFieldMapping.setParam(String)
public java.lang.String getStringValue(CmsObject cms, CmsResource res, I_CmsExtractionResult extractionResult, java.util.List<CmsProperty> properties, java.util.List<CmsProperty> propertiesSearched)
getStringValue
在接口中 I_CmsSearchFieldMapping
getStringValue
在类中 CmsSearchFieldMapping
cms
- the OpenCms context used for building the search indexres
- the resource that is indexedextractionResult
- the plain text extraction result from the resourceproperties
- the list of all properties directly attached to the resource (not searched)propertiesSearched
- the list of all searched properties of the resourceI_CmsSearchFieldMapping.getStringValue(org.opencms.file.CmsObject, org.opencms.file.CmsResource, org.opencms.search.extractors.I_CmsExtractionResult, java.util.List, java.util.List)