Package com.day.cq.dam.scene7.api
Interface Scene7PresetsService
-
public interface Scene7PresetsService
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
REL_PATH_ENCODING_PRESETS
The path to the encoding presets, relative to the cloud config root.static java.lang.String
REL_PATH_VIEWER_PRESETS
The path to the viewer presets, relative to the cloud config root.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Iterator<Resource>
getEncodingPresets(Resource configResource)
Get all encoding presets available for the given cloud config resource.java.util.Iterator<Resource>
getViewerPresets(Resource configResource)
Get all viewer presets available for the given cloud config resource.boolean
updateEncodingPresets(Resource configResource)
Update and cache the encoding presets from S7 server for the given cloud config resource.boolean
updateViewerPresets(Resource configResource)
Update and cache the viewer presets from S7 server for the given cloud config resource.
-
-
-
Field Detail
-
REL_PATH_ENCODING_PRESETS
static final java.lang.String REL_PATH_ENCODING_PRESETS
The path to the encoding presets, relative to the cloud config root.- See Also:
- Constant Field Values
-
REL_PATH_VIEWER_PRESETS
static final java.lang.String REL_PATH_VIEWER_PRESETS
The path to the viewer presets, relative to the cloud config root.- See Also:
- Constant Field Values
-
-
Method Detail
-
getEncodingPresets
java.util.Iterator<Resource> getEncodingPresets(Resource configResource)
Get all encoding presets available for the given cloud config resource. Including the shared encoding presets.- Parameters:
configResource
- The cloud config resource to get the encoding presets for.- Returns:
- Iterator of encoding preset resources.
-
getViewerPresets
java.util.Iterator<Resource> getViewerPresets(Resource configResource)
Get all viewer presets available for the given cloud config resource. Including the shared viewer presets.- Parameters:
configResource
- The cloud config resource to get the viewer presets for.- Returns:
- Iterator of viewer preset resources.
-
updateEncodingPresets
boolean updateEncodingPresets(Resource configResource)
Update and cache the encoding presets from S7 server for the given cloud config resource.- Parameters:
configResource
- The cloud config resource to update and cache the encoding presets for.- Returns:
True
if update and caching was successful,false
otherwise.
-
updateViewerPresets
boolean updateViewerPresets(Resource configResource)
Update and cache the viewer presets from S7 server for the given cloud config resource.- Parameters:
configResource
- The cloud config resource to update and cache the viewer presets for.- Returns:
True
if update and caching was successful,false
otherwise.
-
-