public class WOPIDiscoveryPlugin
extends org.exoplatform.container.component.BaseComponentPlugin
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CACHE_NAME
The Constant CACHE_NAME.
|
protected static String |
DISCOVERY_URL
The Constant DISCOVERY_URL.
|
protected String |
discoveryUrl
The discovery url.
|
protected org.exoplatform.services.cache.ExoCache<String,Map<String,String>> |
extensionActionURLs
The extension action UR ls.
|
protected static org.exoplatform.services.log.Log |
LOG
The Constant LOG.
|
protected PublicKey |
oldProofKey
The old proof key.
|
protected static String |
PLACEHOLDER_IS_LICENSED_USER
The Constant PLACEHOLDER_IS_LICENSED_USER.
|
protected static String |
PLACEHOLDER_IS_LICENSED_USER_VALUE
The Constant PLACEHOLDER_IS_LICENSED_USER_VALUE.
|
protected PublicKey |
proofKey
The proof key.
|
protected ScheduledExecutorService |
refreshExecutor
The executor for refreshing.
|
protected List<String> |
supportedAppNames
The supported app names.
|
| Constructor and Description |
|---|
WOPIDiscoveryPlugin(org.exoplatform.services.cache.CacheService cacheService,
org.exoplatform.container.xml.InitParams params)
Instantiates a new WOPI discovery service.
|
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
fetchDiscovery()
Fetch discovery.
|
String |
getActionUrl(String extension,
String action)
Gets the action url.
|
PublicKey |
getOldProofKey()
Gets the old proof key.
|
PublicKey |
getProofKey()
Gets the proof key.
|
protected void |
loadDiscovery()
Load discovery.
|
protected void |
registerApps(List<WOPIDiscovery.App> apps)
Register apps.
|
void |
start()
Start.
|
void |
stop()
Stop.
|
protected static final org.exoplatform.services.log.Log LOG
protected static final String DISCOVERY_URL
protected static final String PLACEHOLDER_IS_LICENSED_USER
protected static final String PLACEHOLDER_IS_LICENSED_USER_VALUE
protected static final String CACHE_NAME
protected PublicKey proofKey
protected PublicKey oldProofKey
protected String discoveryUrl
protected org.exoplatform.services.cache.ExoCache<String,Map<String,String>> extensionActionURLs
protected ScheduledExecutorService refreshExecutor
public WOPIDiscoveryPlugin(org.exoplatform.services.cache.CacheService cacheService,
org.exoplatform.container.xml.InitParams params)
cacheService - the cache serviceparams - the paramspublic String getActionUrl(String extension, String action)
extension - the extensionaction - the actionpublic PublicKey getProofKey()
public PublicKey getOldProofKey()
public void start()
public void stop()
protected void loadDiscovery()
protected byte[] fetchDiscovery()
protected void registerApps(List<WOPIDiscovery.App> apps)
apps - the appsCopyright © 2003–2020 eXo Platform SAS. All rights reserved.