@Scope(value=EVENT) @Name(value="liveEditHelper") public class LiveEditBootstrapHelper extends Object implements Serializable, LiveEditConstants
ACTION, ACTION_CREATE_DOCUMENT, ACTION_CREATE_DOCUMENT_FROM_TEMPLATE, ACTION_EDIT_DOCUMENT, actionSelectorTag, BLOB_FIELD, BLOB_PROPERTY_NAME, DEFAULT_BLOB_FIELD, DEFAULT_DOCTYPE, DEFAULT_FILENAME_FIELD, DEFAULT_SCHEMA, DEFAULT_SUB_BLOB_FIELD, DOC_REF, DOC_TYPE, docBlobFieldNameTag, docBlobFieldPathTag, docFieldNameTag, docfieldPathTag, docFileAuthorizedExtensionsTag, docFileAuthorizedExtensionTag, docFileExtensionTag, docFilenameFieldNameTag, docFilenameFieldPathTag, docfileNameTag, docIsLockedTag, docIsVersionTag, docMimetypeTag, docPathTag, docRefTag, docRepositoryTag, docSchemaNameTag, docTitleTag, docTypeTag, documentTag, editIdTag, FILENAME_FIELD, FILENAME_PROPERTY_NAME, liveEditTag, MIMETYPE, REPO_ID, requestBaseURLTag, requestCookiesTag, requestCookieTag, requestHeadersTag, requestHeaderTag, requestInfoTag, SCHEMA, serverInfoTag, serverVersionTag, TEMPLATE_BLOB_FIELD, TEMPLATE_DOC_REF, TEMPLATE_REPO_ID, TEMPLATE_SCHEMA, templateDocumentTag, URL_ENCODE_CHARSET, userInfoTag, userLocaleTag, userNameTag, userPasswordTag, userTokenTag, wsdlAccessWebServiceTag, wsdlLEWebServiceTag, wsdlLocationsTag, XML_LE_NAMESPACE
Constructor and Description |
---|
LiveEditBootstrapHelper() |
Modifier and Type | Method and Description |
---|---|
void |
getBootstrap()
Creates the bootstrap file.
|
boolean |
isCurrentDocumentLiveEditable() |
boolean |
isCurrentDocumentLiveEditable(String propertyName) |
boolean |
isCurrentDocumentLiveEditable(String schemaName,
String fieldName) |
boolean |
isDocumentLiveEditable(DocumentModel documentModel,
String propertyName) |
boolean |
isDocumentLiveEditable(DocumentModel documentModel,
String schemaName,
String fieldName) |
boolean |
isLiveEditable(Blob blob)
Deprecated.
use
#isLiveEditable(DocumentModel doc, String blobXpath) |
boolean |
isLiveEditable(DocumentModel document,
Blob blob) |
boolean |
isMimeTypeLiveEditable(Blob blob) |
boolean |
isMimeTypeLiveEditable(String mimetype) |
boolean |
isMSExcelLiveEdititable() |
boolean |
isMSPowerpointLiveEdititable() |
boolean |
isMSWordLiveEdititable() |
boolean |
isOOCalcLiveEdititable() |
boolean |
isOOPresentationLiveEdititable() |
boolean |
isOOTextLiveEdititable() |
public void getBootstrap() throws IOException
IOException
@Deprecated public boolean isLiveEditable(Blob blob) throws ClientException
#isLiveEditable(DocumentModel doc, String blobXpath)
ClientException
public boolean isLiveEditable(DocumentModel document, Blob blob) throws ClientException
document
- the document to edit.blobXPath
- XPath to the blob propertyClientException
public boolean isMimeTypeLiveEditable(Blob blob) throws ClientException
ClientException
public boolean isMimeTypeLiveEditable(String mimetype) throws ClientException
ClientException
@Factory(value="msword_liveeditable", scope=SESSION) public boolean isMSWordLiveEdititable() throws ClientException
ClientException
@Factory(value="msexcel_liveeditable", scope=SESSION) public boolean isMSExcelLiveEdititable() throws ClientException
ClientException
@Factory(value="mspowerpoint_liveeditable", scope=SESSION) public boolean isMSPowerpointLiveEdititable() throws ClientException
ClientException
@Factory(value="ootext_liveeditable", scope=SESSION) public boolean isOOTextLiveEdititable() throws ClientException
ClientException
@Factory(value="oocalc_liveeditable", scope=SESSION) public boolean isOOCalcLiveEdititable() throws ClientException
ClientException
@Factory(value="oopresentation_liveeditable", scope=SESSION) public boolean isOOPresentationLiveEdititable() throws ClientException
ClientException
public boolean isCurrentDocumentLiveEditable() throws ClientException
ClientException
public boolean isCurrentDocumentLiveEditable(String schemaName, String fieldName) throws ClientException
ClientException
public boolean isCurrentDocumentLiveEditable(String propertyName) throws ClientException
ClientException
public boolean isDocumentLiveEditable(DocumentModel documentModel, String schemaName, String fieldName) throws ClientException
ClientException
public boolean isDocumentLiveEditable(DocumentModel documentModel, String propertyName) throws ClientException
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.