com.wewebu.ow.server.plug.owaddmultidocuments
Class OwDragDropDocumentImportItem

java.lang.Object
  extended by com.wewebu.ow.server.plug.owaddmultidocuments.OwDragDropDocumentImportItem
All Implemented Interfaces:
com.wewebu.ow.server.app.OwDocumentImportItem

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


Field Summary
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 Summary
OwDragDropDocumentImportItem(String folderPath_p, String fileName_p)
          Create a new OwDragDropDocumentImportItem for a given file name in a given temporary Drag'n'Drop folder.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_folderPath

protected String m_folderPath
the path to the temporary folder where the Drag'n'Drop files are stored


m_fileName

protected String m_fileName
the name of the file that has been dropped


m_mimeType

protected String m_mimeType
the MIME type of the dropped file


m_mimeParameter

protected String m_mimeParameter
the MIME parameter of the dropped file

Constructor Detail

OwDragDropDocumentImportItem

public OwDragDropDocumentImportItem(String folderPath_p,
                                    String fileName_p)
                             throws Exception
Create a new OwDragDropDocumentImportItem for a given file name in a given temporary Drag'n'Drop folder.

Parameters:
folderPath_p - the path to the temporary folder where the Drag'n'Drop files are stored
fileName_p - the name of the file that has been dropped
Throws:
Exception - if the MIME type or MIME parameter can not be detected
Method Detail

getContentStream

public InputStream getContentStream(int i_p)
                             throws Exception
Specified by:
getContentStream in interface com.wewebu.ow.server.app.OwDocumentImportItem
Throws:
Exception

getPreviewFilePath

public String getPreviewFilePath(int i_p)
Specified by:
getPreviewFilePath in interface com.wewebu.ow.server.app.OwDocumentImportItem

getContentStreamCount

public int getContentStreamCount()
Specified by:
getContentStreamCount in interface com.wewebu.ow.server.app.OwDocumentImportItem

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface com.wewebu.ow.server.app.OwDocumentImportItem

getPropertyValueMap

public Map getPropertyValueMap()
Specified by:
getPropertyValueMap in interface com.wewebu.ow.server.app.OwDocumentImportItem

getProposedDocumentName

public String getProposedDocumentName()
Specified by:
getProposedDocumentName in interface com.wewebu.ow.server.app.OwDocumentImportItem

release

public void release()
             throws Exception
Specified by:
release in interface com.wewebu.ow.server.app.OwDocumentImportItem
Throws:
Exception

getContentMimeParameter

public String getContentMimeParameter(int i_p)
Specified by:
getContentMimeParameter in interface com.wewebu.ow.server.app.OwDocumentImportItem

getContentMimeType

public String getContentMimeType(int i_p)
Specified by:
getContentMimeType in interface com.wewebu.ow.server.app.OwDocumentImportItem

getCheckinAsMajor

public Boolean getCheckinAsMajor()
Specified by:
getCheckinAsMajor in interface com.wewebu.ow.server.app.OwDocumentImportItem

getObjectClassName

public String getObjectClassName()
Specified by:
getObjectClassName in interface com.wewebu.ow.server.app.OwDocumentImportItem


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.