@Scope(value=SESSION) @Name(value="liveEditClientConfig") @Install(precedence=10) public class LiveEditClientConfig extends Object implements Serializable
On the client side, the LiveEdit plugin advertise its feature via the Accept Header of the browser. This information may be used to decide if LiveEdit links must be displayed or not.
The behavior can be configured via the property: org.nuxeo.ecm.platform.liveedit.config
There are 3 possible values :
Modifier and Type | Field and Description |
---|---|
protected List<String> |
advertizedLiveEditableMimeTypes |
protected Boolean |
clientHasLiveEditInstalled |
static String |
LE_CONFIG_BOTHSIDES |
static String |
LE_CONFIG_CLIENTSIDE |
static String |
LE_CONFIG_PROPERTY |
static String |
LE_CONFIG_SERVERSIDE |
static String |
LE_MIME_TYPE |
protected static String |
liveEditConfigPolicy |
Constructor and Description |
---|
LiveEditClientConfig() |
Modifier and Type | Method and Description |
---|---|
protected void |
detectLiveEditClientConfig() |
String |
getLiveEditConfigurationPolicy() |
boolean |
isLiveEditInstalled() |
boolean |
isMimeTypeLiveEditable(String mimetype) |
protected Boolean clientHasLiveEditInstalled
protected List<String> advertizedLiveEditableMimeTypes
protected static String liveEditConfigPolicy
public static final String LE_MIME_TYPE
public static final String LE_CONFIG_PROPERTY
public static final String LE_CONFIG_CLIENTSIDE
public static final String LE_CONFIG_SERVERSIDE
public static final String LE_CONFIG_BOTHSIDES
public LiveEditClientConfig()
protected void detectLiveEditClientConfig()
public boolean isLiveEditInstalled()
public String getLiveEditConfigurationPolicy()
public boolean isMimeTypeLiveEditable(String mimetype)
Copyright © 2018 Nuxeo. All rights reserved.