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 Instant
The last date that the file was modifiedprotected String
The last user that modified the fileprotected String
The mime type of the fileprotected String
The name of the itemprotected String
The path of the fileprotected String
The preview URL of the fileprotected long
The size of the file, in bytesSnippets relevant to the search queryprotected String
The type of the file -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
getPath()
long
getSize()
getType()
void
setAdditionalFields
(Map<String, Object> additionalFields) void
setLastModified
(Instant lastModified) void
setLastModifier
(String lastModifier) void
setMimeType
(String mimeType) void
void
void
setPreviewUrl
(String previewUrl) void
setSize
(long size) void
setSnippets
(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
-