com.wewebu.ow.server.ecmimpl.opencmis.content
Class OwCMISContentElement

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.opencmis.content.OwCMISContentElement
All Implemented Interfaces:
com.wewebu.ow.server.ecm.OwContentElement

public class OwCMISContentElement
extends Object
implements com.wewebu.ow.server.ecm.OwContentElement

CMIS content element implementation. Wrapping of native org.apache.chemistry.opencmis.commons.data.ContentStream interface.

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


Constructor Summary
OwCMISContentElement(org.apache.chemistry.opencmis.commons.data.ContentStream stream)
           
OwCMISContentElement(org.apache.chemistry.opencmis.commons.data.ContentStream stream, int pageNr)
           
 
Method Summary
 String getContentFilePath()
           
 Object getContentObject()
           
 int getContentRepresentation()
           
 InputStream getContentStream(OutputStream out_p)
           
 String getContentURL()
           
 String getMIMEParameter()
           
 String getMIMEType()
           
protected  org.apache.chemistry.opencmis.commons.data.ContentStream getNativeObject()
          Return the native object, which is of type ContentStream
 int getPageNumber(int lPageIndex_p)
           
 boolean isInputStreamNative()
           
 void releaseResources()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwCMISContentElement

public OwCMISContentElement(org.apache.chemistry.opencmis.commons.data.ContentStream stream)

OwCMISContentElement

public OwCMISContentElement(org.apache.chemistry.opencmis.commons.data.ContentStream stream,
                            int pageNr)
Method Detail

getContentFilePath

public String getContentFilePath()
                          throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getContentFilePath in interface com.wewebu.ow.server.ecm.OwContentElement
Throws:
com.wewebu.ow.server.exceptions.OwException

getContentURL

public String getContentURL()
                     throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getContentURL in interface com.wewebu.ow.server.ecm.OwContentElement
Throws:
com.wewebu.ow.server.exceptions.OwException

getContentObject

public Object getContentObject()
                        throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getContentObject in interface com.wewebu.ow.server.ecm.OwContentElement
Throws:
com.wewebu.ow.server.exceptions.OwException

getContentRepresentation

public int getContentRepresentation()
                             throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getContentRepresentation in interface com.wewebu.ow.server.ecm.OwContentElement
Throws:
com.wewebu.ow.server.exceptions.OwException

isInputStreamNative

public boolean isInputStreamNative()
Specified by:
isInputStreamNative in interface com.wewebu.ow.server.ecm.OwContentElement

getContentStream

public InputStream getContentStream(OutputStream out_p)
                             throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getContentStream in interface com.wewebu.ow.server.ecm.OwContentElement
Throws:
com.wewebu.ow.server.exceptions.OwException

getPageNumber

public int getPageNumber(int lPageIndex_p)
                  throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getPageNumber in interface com.wewebu.ow.server.ecm.OwContentElement
Throws:
com.wewebu.ow.server.exceptions.OwException

getMIMEType

public String getMIMEType()
                   throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getMIMEType in interface com.wewebu.ow.server.ecm.OwContentElement
Throws:
com.wewebu.ow.server.exceptions.OwException

getMIMEParameter

public String getMIMEParameter()
                        throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getMIMEParameter in interface com.wewebu.ow.server.ecm.OwContentElement
Throws:
com.wewebu.ow.server.exceptions.OwException

releaseResources

public void releaseResources()
Specified by:
releaseResources in interface com.wewebu.ow.server.ecm.OwContentElement

getNativeObject

protected org.apache.chemistry.opencmis.commons.data.ContentStream getNativeObject()
Return the native object, which is of type ContentStream

Returns:
ContentStream


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.