public class UploadFileRestlet extends BaseNuxeoRestlet implements LiveEditConstants, Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
LIVED_AUTOVERSIONING_PROP |
static String |
POLICY_MINOR_INCR |
DEPRECATION_DONEACTION, 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 |
|---|
UploadFileRestlet() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doAutoMinorIncrement(String policy,
DocumentModel doc)
According to the policy, decide to auto minor increment or not
|
void |
handle(org.restlet.Request req,
org.restlet.Response res) |
protected void |
saveFileToDocument(String filename,
DocumentModel dm,
String blobPropertyName,
InputStream is)
Save the file into the document.
|
protected void |
saveFileToDocument(String filename,
DocumentModel dm,
String blobPropertyName,
String filenamePropertyName,
InputStream is)
Deprecated.
since 9.1 filename is now stored in blob
|
getHttpRequest, getHttpResponse, getQueryParamValue, getRestletFullUrl, handleError, handleError, handleError, handleError, logDeprecation, setEntityToBlobOutputcreateFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setContext, setDescription, setFinderClass, setName, setOwner, start, stoppublic static final String LIVED_AUTOVERSIONING_PROP
public static final String POLICY_MINOR_INCR
public UploadFileRestlet()
public void handle(org.restlet.Request req, org.restlet.Response res)
handle in interface org.restlet.Uniformhandle in class org.restlet.Restlet@Deprecated protected void saveFileToDocument(String filename, DocumentModel dm, String blobPropertyName, String filenamePropertyName, InputStream is) throws IOException, PropertyException
IOExceptionPropertyExceptionprotected void saveFileToDocument(String filename, DocumentModel dm, String blobPropertyName, InputStream is) throws IOException, PropertyException
IOExceptionPropertyExceptionprotected boolean doAutoMinorIncrement(String policy, DocumentModel doc)
policy - Copyright © 2019 Nuxeo. All rights reserved.