Class SimpleDocumentEmbedMediaViewProvider
- java.lang.Object
-
- org.silverpeas.core.webapi.attachment.SimpleDocumentEmbedMediaViewProvider
-
- All Implemented Interfaces:
Initialization
,ResourceViewProvider
public class SimpleDocumentEmbedMediaViewProvider extends Object implements ResourceViewProvider, Initialization
Implementation ofResourceViewProvider
dedicated to provideSimpleDocument
instances for viewer APIs.- Author:
- silveryocha
-
-
Constructor Summary
Constructors Constructor Description SimpleDocumentEmbedMediaViewProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ResourceView>
getByIdAndLanguage(String documentId, String language)
Gets by a resource identifier theResourceView
instance if any.void
init()
Initializes some resources required by the services or performs some initialization processes at Silverpeas startup.String
relatedToService()
Indicates the name of Silverpeas's service the provider is related to.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.initialization.Initialization
getPriority, release
-
-
-
-
Method Detail
-
init
public void init() throws Exception
Description copied from interface:Initialization
Initializes some resources required by the services or performs some initialization processes at Silverpeas startup.- Specified by:
init
in interfaceInitialization
- Throws:
Exception
- if an error occurs during the initialization process. In this case the Silverpeas startup fails.
-
getByIdAndLanguage
public Optional<ResourceView> getByIdAndLanguage(String documentId, String language)
Description copied from interface:ResourceViewProvider
Gets by a resource identifier theResourceView
instance if any.- Specified by:
getByIdAndLanguage
in interfaceResourceViewProvider
- Returns:
- optional
ResourceView
instance.
-
relatedToService
public String relatedToService()
Description copied from interface:ResourceViewProvider
Indicates the name of Silverpeas's service the provider is related to.- Specified by:
relatedToService
in interfaceResourceViewProvider
- Returns:
- name of service.
-
-