Class SearchResultItem
java.lang.Object
org.craftercms.studio.model.search.SearchResultItem
Holds the data of a single search result
- Author:
- joseross
-
Field Summary
FieldsModifier and TypeFieldDescriptionAdditional fields requestedprotected InstantThe last date that the file was modifiedprotected StringThe last user that modified the fileprotected StringThe mime type of the fileprotected StringThe name of the itemprotected StringThe path of the fileprotected StringThe preview URL of the fileprotected longThe size of the file, in bytesSnippets relevant to the search queryprotected StringThe type of the file -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()getPath()longgetSize()getType()voidsetAdditionalFields(Map<String, Object> additionalFields) voidsetLastModified(Instant lastModified) voidsetLastModifier(String lastModifier) voidsetMimeType(String mimeType) voidvoidvoidsetPreviewUrl(String previewUrl) voidsetSize(long size) voidsetSnippets(List<String> snippets) void
-
Field Details
-
path
The path of the file -
name
The name of the item -
type
The type of the file -
mimeType
The mime type of the file -
previewUrl
The preview URL of the file -
lastModifier
The last user that modified the file -
lastModified
The last date that the file was modified -
size
protected long sizeThe size of the file, in bytes -
snippets
Snippets relevant to the search query -
additionalFields
Additional fields requested
-
-
Constructor Details
-
SearchResultItem
public SearchResultItem()
-
-
Method Details
-
getPath
-
setPath
-
getName
-
setName
-
getType
-
setType
-
getMimeType
-
setMimeType
-
getPreviewUrl
-
setPreviewUrl
-
getLastModifier
-
setLastModifier
-
getLastModified
-
setLastModified
-
getSize
public long getSize() -
setSize
public void setSize(long size) -
getSnippets
-
setSnippets
-
getAdditionalFields
-
setAdditionalFields
-