Class SearchResultItem
- java.lang.Object
-
- org.craftercms.studio.model.search.SearchResultItem
-
public class SearchResultItem extends Object
Holds the data of a single search result- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Object>
additionalFields
Additional fields requestedprotected Instant
lastModified
The last date that the file was modifiedprotected String
lastModifier
The last user that modified the fileprotected String
mimeType
The mime type of the fileprotected String
name
The name of the itemprotected String
path
The path of the fileprotected String
previewUrl
The preview URL of the fileprotected long
size
The size of the file, in bytesprotected List<String>
snippets
Snippets relevant to the search queryprotected String
type
The type of the file
-
Constructor Summary
Constructors Constructor Description SearchResultItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
getAdditionalFields()
Instant
getLastModified()
String
getLastModifier()
String
getMimeType()
String
getName()
String
getPath()
String
getPreviewUrl()
long
getSize()
List<String>
getSnippets()
String
getType()
void
setAdditionalFields(Map<String,Object> additionalFields)
void
setLastModified(Instant lastModified)
void
setLastModifier(String lastModifier)
void
setMimeType(String mimeType)
void
setName(String name)
void
setPath(String path)
void
setPreviewUrl(String previewUrl)
void
setSize(long size)
void
setSnippets(List<String> snippets)
void
setType(String type)
-
-
-
Field Detail
-
path
protected String path
The path of the file
-
name
protected String name
The name of the item
-
type
protected String type
The type of the file
-
mimeType
protected String mimeType
The mime type of the file
-
previewUrl
protected String previewUrl
The preview URL of the file
-
lastModifier
protected String lastModifier
The last user that modified the file
-
lastModified
protected Instant lastModified
The last date that the file was modified
-
size
protected long size
The size of the file, in bytes
-
-
Method Detail
-
getPath
public String getPath()
-
setPath
public void setPath(String path)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getType
public String getType()
-
setType
public void setType(String type)
-
getMimeType
public String getMimeType()
-
setMimeType
public void setMimeType(String mimeType)
-
getPreviewUrl
public String getPreviewUrl()
-
setPreviewUrl
public void setPreviewUrl(String previewUrl)
-
getLastModifier
public String getLastModifier()
-
setLastModifier
public void setLastModifier(String lastModifier)
-
getLastModified
public Instant getLastModified()
-
setLastModified
public void setLastModified(Instant lastModified)
-
getSize
public long getSize()
-
setSize
public void setSize(long size)
-
-