|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.ow.server.app.OwDocumentImportItemContentElement
public class OwDocumentImportItemContentElement
Standard implementation that is wrapped around
an OwContentElement.OwDocumentImportItem
Used by the to represent
the single pages (aka content streams) of the content collection.
OwDocumentImportItemContentCollection
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
OwDocumentImportItemContentCollection| Field Summary | |
|---|---|
protected int |
m_contentType
the content type of this element |
protected OwDocumentImportItem |
m_importedDocument
the imported document the content collection is based on |
protected int |
m_page
the page number of this element |
| Constructor Summary | |
|---|---|
OwDocumentImportItemContentElement(int contentType_p,
int page_p,
OwDocumentImportItem importedDocument_p)
Create a new OwDocumentImportItemContentElement that represents
a page (aka. |
|
| Method Summary | |
|---|---|
String |
getContentFilePath()
Returns the file path to the content (optional, only available if content is stored locally). NOTE: This function is only used for ECM Systems which can only download through files. |
Object |
getContentObject()
Returns the content object The content representation is of type Object |
int |
getContentRepresentation()
get the content representation, which can be either url, stream or object |
InputStream |
getContentStream(OutputStream out_p)
Returns the content from the object. |
String |
getContentURL()
Returns the URL to the resource where the content can be retrieved. |
String |
getMIMEParameter()
retrieve the MIME parameter for the specified page number |
String |
getMIMEType()
retrieve the MIME type for the specified page number |
int |
getPageNumber(int lPageIndex_p)
retrieve the page number for the given zero based index NOTE: the Page numbers might be arbitrary in the collection in order to submit specific page content |
boolean |
isInputStreamNative()
Check if getContentStream is based on an native InputStream or OutputStream. NOTE: getContentStream must implement for Input- and OutputStream. |
void |
releaseResources()
method is called e.g. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int m_contentType
protected int m_page
protected OwDocumentImportItem m_importedDocument
| Constructor Detail |
|---|
public OwDocumentImportItemContentElement(int contentType_p,
int page_p,
OwDocumentImportItem importedDocument_p)
OwDocumentImportItemContentElement that represents
a page (aka. content stream) of an imported document.
contentType_p - designating the type of content (CONTENT_TYPE_DOCUMENT, CONTENT_TYPE_ANNOTATION,...)page_p - int Page number to set| Method Detail |
|---|
public String getContentURL()
throws Exception
getContentURL in interface OwContentElementExceptionpublic boolean isInputStreamNative()
isInputStreamNative in interface OwContentElement
public String getContentFilePath()
throws Exception
getContentFilePath in interface OwContentElementException
public InputStream getContentStream(OutputStream out_p)
throws Exception
getContentStream in interface OwContentElementout_p - optional OutputStream, if set the method writes the
OutputStream and returns null, otherwise it returns an
InputStream
Exception
public Object getContentObject()
throws Exception
getContentObject in interface OwContentElementException
public int getContentRepresentation()
throws Exception
getContentRepresentation in interface OwContentElementException
public int getPageNumber(int lPageIndex_p)
throws Exception
getPageNumber in interface OwContentElementlPageIndex_p - zero based page index for the pages in the collection
Exception
public String getMIMEType()
throws Exception
getMIMEType in interface OwContentElementException
public String getMIMEParameter()
throws Exception
getMIMEParameter in interface OwContentElementExceptionpublic void releaseResources()
OwContentElement
releaseResources in interface OwContentElementOwContentElement.releaseResources()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||