Class SolrResourceGroupedMimeTypes
java.lang.Object
org.ametys.cms.content.indexing.solr.SolrResourceGroupedMimeTypes
Utility for indexing a "group" of MIME-Type in Solr
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Group for audioprotected static final String[]
MIME types for audio filesstatic final String
Group for imageprotected static final String[]
MIME types for imagesstatic final String
Group for pdfprotected static final String[]
MIME types for pdfstatic final String
Group for presentationprotected static final String[]
MIME types for presentationstatic final String
Group for spreadsheetprotected static final String[]
MIME types for spreadsheetsstatic final String
Group for text documentsprotected static final String[]
MIME types for text documentsstatic final String
Group for videoprotected static final String[]
MIME types for videos -
Method Summary
Modifier and TypeMethodDescriptionget()
Gets a view of the map of list of MIME-Types by groupGets the group for the given MIME-Typestatic boolean
isValidGroup
(String groupMimeType) Tests if the given group value is valid
-
Field Details
-
PDF_GROUP
Group for pdf- See Also:
-
IMAGE_GROUP
Group for image- See Also:
-
TEXT_GROUP
Group for text documents- See Also:
-
PRES_GROUP
Group for presentation- See Also:
-
SPREADSHEET_GROUP
Group for spreadsheet- See Also:
-
VIDEO_GROUP
Group for video- See Also:
-
AUDIO_GROUP
Group for audio- See Also:
-
PDF_MIMETYPE
MIME types for pdf -
IMAGE_MIMETYPE
MIME types for images -
TEXT_MIMETYPE
MIME types for text documents -
PRES_MIMETYPE
MIME types for presentation -
SPREADSHEET_MIMETYPE
MIME types for spreadsheets -
VIDEO_MIMETYPE
MIME types for videos -
AUDIO_MIMETYPE
MIME types for audio files
-
-
Method Details
-
get
Gets a view of the map of list of MIME-Types by group- Returns:
- a view of the map of list of MIME-Types by group
-
getGroup
Gets the group for the given MIME-Type- Parameters:
mimeType
- The MIME-Type- Returns:
- the group for the given MIME-Type
-
isValidGroup
Tests if the given group value is valid- Parameters:
groupMimeType
- The group to test- Returns:
true
if the given group value is valid
-