|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.file.CmsResource
org.opencms.search.CmsSearchResource
public class CmsSearchResource
A resource implementation that combines the Solr document together with a OpenCms VFS resource.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.opencms.file.CmsResource |
|---|
CmsResource.CmsResourceCopyMode, CmsResource.CmsResourceDeleteMode, CmsResource.CmsResourceUndoMode |
| Nested classes/interfaces inherited from interface org.opencms.file.I_CmsResource |
|---|
I_CmsResource.CmsResourceAttribute |
| Field Summary |
|---|
| Fields inherited from interface org.opencms.file.I_CmsResource |
|---|
COMPARE_DATE_LAST_MODIFIED, COMPARE_DATE_RELEASED, COMPARE_ROOT_PATH, COMPARE_ROOT_PATH_IGNORE_CASE, COMPARE_ROOT_PATH_IGNORE_CASE_FOLDERS_FIRST |
| Constructor Summary | |
|---|---|
CmsSearchResource(CmsResource resource,
I_CmsSearchDocument doc)
Constructor, creates a new file Object from the given resource with an empty byte array as file content, if the resource does not implement a file. |
|
CmsSearchResource(CmsUUID structureId,
CmsUUID resourceId,
java.lang.String path,
int type,
int flags,
CmsUUID projectId,
CmsResourceState state,
long dateCreated,
CmsUUID userCreated,
long dateLastModified,
CmsUUID userLastModified,
long dateReleased,
long dateExpired,
int linkCount,
int length,
long dateContent,
int version,
I_CmsSearchDocument doc)
Constructor, creates a new file object. |
|
| Method Summary | |
|---|---|
java.util.Date |
getDateField(java.lang.String fieldName)
Delegator. |
I_CmsSearchDocument |
getDocument()
Returns the document. |
java.lang.String |
getField(java.lang.String fieldName)
Delegator. |
java.util.List<java.lang.String> |
getMultivaluedField(java.lang.String fieldName)
Delegator. |
int |
getScore(float maxScore)
Delegator. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CmsSearchResource(CmsResource resource,
I_CmsSearchDocument doc)
resource - the base resource object to create a file fromdoc - the search document
public CmsSearchResource(CmsUUID structureId,
CmsUUID resourceId,
java.lang.String path,
int type,
int flags,
CmsUUID projectId,
CmsResourceState state,
long dateCreated,
CmsUUID userCreated,
long dateLastModified,
CmsUUID userLastModified,
long dateReleased,
long dateExpired,
int linkCount,
int length,
long dateContent,
int version,
I_CmsSearchDocument doc)
structureId - the id of this resources structure recordresourceId - the id of this resources resource recordpath - the filename of this resourcetype - the type of this resourceflags - the flags of this resourceprojectId - the project id this resource was last modified instate - the state of this resourcedateCreated - the creation date of this resourceuserCreated - the id of the user who created this resourcedateLastModified - the date of the last modification of this resourceuserLastModified - the id of the user who did the last modification of this resourcedateReleased - the release date of this resourcedateExpired - the expiration date of this resourcelinkCount - the count of all siblings of this resourcelength - the size of the file content of this resourcedateContent - the date of the last modification of the content of this resourceversion - the version number of this resourcedoc - the search document| Method Detail |
|---|
public java.util.Date getDateField(java.lang.String fieldName)
I_CmsSearchDocument.getFieldValueAsDate(String)
fieldName - the field name to get the value for
public I_CmsSearchDocument getDocument()
public java.lang.String getField(java.lang.String fieldName)
I_CmsSearchDocument.getFieldValueAsString(String)
fieldName - the field name to get the value for
public java.util.List<java.lang.String> getMultivaluedField(java.lang.String fieldName)
I_CmsSearchDocument.getFieldValueAsString(String)
fieldName - the field name to get the value for
public int getScore(float maxScore)
I_CmsSearchDocument.getScore()
Returns the score of this document.
maxScore - the maximum score of this search
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||