com.wewebu.ow.server.ecmimpl.cmis.content
Class OwCMISContentElementDataSource

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.cmis.content.OwCMISContentElementDataSource
All Implemented Interfaces:
DataSource

public class OwCMISContentElementDataSource
extends Object
implements DataSource

OwContentElementDataSource implements the DataSource interface to transfer content stream in service calls.

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
static String DATASOURCE_CONTENT_KEY
          Save a DataSource into the MessageContext to provide Content as SOAP-Attachment
 
Constructor Summary
OwCMISContentElementDataSource(com.wewebu.ow.server.ecm.OwContentElement elem_p, String name_p)
           
OwCMISContentElementDataSource(com.wewebu.ow.server.ecm.OwContentElement elem_p, String name_p, String mimeType_p)
           
 
Method Summary
 String getContentType()
           
 InputStream getInputStream()
           
 String getName()
           
 OutputStream getOutputStream()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATASOURCE_CONTENT_KEY

public static final String DATASOURCE_CONTENT_KEY
Save a DataSource into the MessageContext to provide Content as SOAP-Attachment

Since:
3.1.0.0
See Also:
Constant Field Values
Constructor Detail

OwCMISContentElementDataSource

public OwCMISContentElementDataSource(com.wewebu.ow.server.ecm.OwContentElement elem_p,
                                      String name_p)
                               throws com.wewebu.ow.server.exceptions.OwException
Throws:
com.wewebu.ow.server.exceptions.OwException

OwCMISContentElementDataSource

public OwCMISContentElementDataSource(com.wewebu.ow.server.ecm.OwContentElement elem_p,
                                      String name_p,
                                      String mimeType_p)
                               throws com.wewebu.ow.server.exceptions.OwException
Throws:
com.wewebu.ow.server.exceptions.OwException
Method Detail

getContentType

public String getContentType()
Specified by:
getContentType in interface DataSource

getInputStream

public InputStream getInputStream()
                           throws IOException
Specified by:
getInputStream in interface DataSource
Throws:
IOException

getName

public String getName()
Specified by:
getName in interface DataSource

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Specified by:
getOutputStream in interface DataSource
Throws:
IOException


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.