public class OwDragDropDocumentImportItem extends Object implements com.wewebu.ow.server.app.OwDocumentImportItem
Class for handling of Drag&Drop documents, which are temporary saved in temp folder of application.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Modifier and Type | Field and Description |
|---|---|
protected String |
m_fileName
the name of the file that has been dropped
|
protected String |
m_folderPath
the path to the temporary folder where the Drag'n'Drop files are stored
|
protected String |
m_mimeParameter
the MIME parameter of the dropped file
|
protected String |
m_mimeType
the MIME type of the dropped file
|
| Constructor and Description |
|---|
OwDragDropDocumentImportItem(String folderPath_p,
String fileName_p)
Create a new OwDragDropDocumentImportItem for a given file name in a given
temporary Drag'n'Drop folder.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getCheckinAsMajor() |
String |
getContentMimeParameter(int i_p) |
String |
getContentMimeType(int i_p) |
InputStream |
getContentStream(int i_p) |
int |
getContentStreamCount() |
String |
getDisplayName() |
String |
getObjectClassName() |
String |
getPreviewFilePath(int i_p) |
Map |
getPropertyValueMap() |
String |
getProposedDocumentName() |
void |
release() |
protected String m_folderPath
protected String m_fileName
protected String m_mimeType
protected String m_mimeParameter
public OwDragDropDocumentImportItem(String folderPath_p, String fileName_p) throws Exception
folderPath_p - the path to the temporary folder where the Drag'n'Drop files are storedfileName_p - the name of the file that has been droppedException - if the MIME type or MIME parameter can not be detectedpublic InputStream getContentStream(int i_p) throws Exception
getContentStream in interface com.wewebu.ow.server.app.OwDocumentImportItemExceptionpublic String getPreviewFilePath(int i_p)
getPreviewFilePath in interface com.wewebu.ow.server.app.OwDocumentImportItempublic int getContentStreamCount()
getContentStreamCount in interface com.wewebu.ow.server.app.OwDocumentImportItempublic String getDisplayName()
getDisplayName in interface com.wewebu.ow.server.app.OwDocumentImportItempublic Map getPropertyValueMap()
getPropertyValueMap in interface com.wewebu.ow.server.app.OwDocumentImportItempublic String getProposedDocumentName()
getProposedDocumentName in interface com.wewebu.ow.server.app.OwDocumentImportItempublic void release()
throws Exception
release in interface com.wewebu.ow.server.app.OwDocumentImportItemExceptionpublic String getContentMimeParameter(int i_p)
getContentMimeParameter in interface com.wewebu.ow.server.app.OwDocumentImportItempublic String getContentMimeType(int i_p)
getContentMimeType in interface com.wewebu.ow.server.app.OwDocumentImportItempublic Boolean getCheckinAsMajor()
getCheckinAsMajor in interface com.wewebu.ow.server.app.OwDocumentImportItempublic String getObjectClassName()
getObjectClassName in interface com.wewebu.ow.server.app.OwDocumentImportItemCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.