@Scope(value=EVENT) @Name(value="liveEditHelper") public class LiveEditBootstrapHelper extends Object implements Serializable, LiveEditConstants
Modifier and Type | Field and Description |
---|---|
protected String |
action |
protected String |
blobField
Deprecated.
use blobPropertyField instead
|
protected String |
blobPropertyName |
protected Map<String,Boolean> |
cachedEditableBlobs |
protected Map<String,Boolean> |
cachedEditableStates |
protected String |
docRef |
protected String |
docType |
protected CoreSession |
documentManager |
protected static String |
DUBLINCORE_SCHEMA |
protected String |
filenameField
Deprecated.
use filenamePropertyField instead
|
protected String |
filenamePropertyName |
protected LiveEditClientConfig |
liveEditClientConfig |
protected String |
mimetype |
protected MimetypeRegistry |
mimetypeRegistry |
protected static String |
MODIFIED_FIELD |
protected NavigationContext |
navigationContext |
protected String |
repoID |
protected String |
schema
Deprecated.
use blobPropertyField and filenamePropertyField instead
|
protected String |
templateBlobField |
protected String |
templateDocRef |
protected String |
templateRepoID |
protected String |
templateSchema |
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 |
---|---|
protected static org.dom4j.Element |
addTextElement(org.dom4j.Element parent,
org.dom4j.QName newElementName,
String value) |
protected boolean |
cacheBlobToFalse(String cacheKey) |
void |
getBootstrap()
Creates the bootstrap file.
|
protected static String |
getEditId(DocumentModel doc,
CoreSession session,
String userName) |
protected String |
getFileExtension(String mimetype) |
protected List<String> |
getFileExtensions(String mimetype) |
protected MimetypeRegistry |
getMimetypeRegistry() |
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() |
protected static final String MODIFIED_FIELD
protected static final String DUBLINCORE_SCHEMA
@In(create=true) protected transient NavigationContext navigationContext
@In(create=true, required=false) protected transient CoreSession documentManager
@RequestParameter protected String templateRepoID
@RequestParameter protected String templateDocRef
@In(create=true) protected LiveEditClientConfig liveEditClientConfig
@Deprecated @RequestParameter protected String schema
@RequestParameter protected String templateSchema
@Deprecated @RequestParameter protected String blobField
@RequestParameter protected String blobPropertyName
@RequestParameter protected String templateBlobField
@Deprecated @RequestParameter protected String filenameField
@RequestParameter protected String filenamePropertyName
protected MimetypeRegistry mimetypeRegistry
protected final Map<String,Boolean> cachedEditableStates
protected final Map<String,Boolean> cachedEditableBlobs
public LiveEditBootstrapHelper()
public void getBootstrap() throws IOException
IOException
protected String getFileExtension(String mimetype)
protected List<String> getFileExtensions(String mimetype)
protected static org.dom4j.Element addTextElement(org.dom4j.Element parent, org.dom4j.QName newElementName, String value)
protected static String getEditId(DocumentModel doc, CoreSession session, String userName)
@Deprecated public boolean isLiveEditable(Blob blob)
#isLiveEditable(DocumentModel doc, String blobXpath)
public boolean isLiveEditable(DocumentModel document, Blob blob)
document
- the document to edit.blobXPath
- XPath to the blob propertypublic boolean isMimeTypeLiveEditable(Blob blob)
public boolean isMimeTypeLiveEditable(String mimetype)
@Factory(value="msword_liveeditable", scope=SESSION) public boolean isMSWordLiveEdititable()
@Factory(value="msexcel_liveeditable", scope=SESSION) public boolean isMSExcelLiveEdititable()
@Factory(value="mspowerpoint_liveeditable", scope=SESSION) public boolean isMSPowerpointLiveEdititable()
@Factory(value="ootext_liveeditable", scope=SESSION) public boolean isOOTextLiveEdititable()
@Factory(value="oocalc_liveeditable", scope=SESSION) public boolean isOOCalcLiveEdititable()
@Factory(value="oopresentation_liveeditable", scope=SESSION) public boolean isOOPresentationLiveEdititable()
public boolean isCurrentDocumentLiveEditable()
public boolean isCurrentDocumentLiveEditable(String schemaName, String fieldName)
public boolean isCurrentDocumentLiveEditable(String propertyName)
public boolean isDocumentLiveEditable(DocumentModel documentModel, String schemaName, String fieldName)
public boolean isDocumentLiveEditable(DocumentModel documentModel, String propertyName)
protected boolean cacheBlobToFalse(String cacheKey)
protected MimetypeRegistry getMimetypeRegistry()
Copyright © 2019 Nuxeo. All rights reserved.