org.nuxeo.ecm.webapp.liveedit
Class LiveEditClientConfig
java.lang.Object
org.nuxeo.ecm.webapp.liveedit.LiveEditClientConfig
- All Implemented Interfaces:
- java.io.Serializable
@Scope(value=SESSION)
@Name(value="liveEditClientConfig")
@Install(precedence=10)
public class LiveEditClientConfig
- extends java.lang.Object
- implements java.io.Serializable
This Seam component is used to represent the client configuration for LiveEdit.
On the client side, the LiveEdit plugin adertise it's 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 nuxeo.properties :
org.nuxeo.ecm.platform.liveedit.config
There are 3 possible values :
- client : let the client choose what is live editable
=> use the mime-types send by the client to define what must be live editable
- server : let the server decide
=> use the mime-type registry define what types are liveEditable
- both : use client and server intersection
=> in order to be liveEditable a type must be advertised by the client and set to liveEditable in the mimetypeRegistry
Client advertising is done in the Accept header:
Accept : application/x-nuxeo-liveedit:mimetype1;mimetype2
- Author:
- Thierry Delprat
Starting the 5.2, the addon can send the standardized accept header, as
Accept : application/x-nuxeo-liveedit;ext0="mimetype1";ext1="mimetype2"..
Also, the addon can still send the old way, so the both forms are accepted.
See NXP-3257, rux
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LE_MIME_TYPE
public static final java.lang.String LE_MIME_TYPE
- See Also:
- Constant Field Values
LE_CONFIG_PROPERTY
public static final java.lang.String LE_CONFIG_PROPERTY
- See Also:
- Constant Field Values
LE_CONFIG_CLIENTSIDE
public static final java.lang.String LE_CONFIG_CLIENTSIDE
- See Also:
- Constant Field Values
LE_CONFIG_SERVERSIDE
public static final java.lang.String LE_CONFIG_SERVERSIDE
- See Also:
- Constant Field Values
LE_CONFIG_BOTHSIDES
public static final java.lang.String LE_CONFIG_BOTHSIDES
- See Also:
- Constant Field Values
LiveEditClientConfig
public LiveEditClientConfig()
isLiveEditInstalled
public boolean isLiveEditInstalled()
getLiveEditConfigurationPolicy
public java.lang.String getLiveEditConfigurationPolicy()
isMimeTypeLiveEditable
public boolean isMimeTypeLiveEditable(java.lang.String mimetype)
Copyright © 2010 Nuxeo SAS. All Rights Reserved.