public class OwDocumentImportItemContentCollection extends Object implements OwContentCollection
Standard implementation that is wrapped around
an OwContentCollection.OwDocumentImportItem
Can and should be used to create an for new
object creation, save or checkin from an OwContentCollection.
OwDocumentImportItem
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
OwDocumentImportItemContentElement| Modifier and Type | Field and Description |
|---|---|
protected OwDocumentImportItem |
m_importedDocument
the document imported by the document importer
|
CONTENT_REPRESENTATION_TYPE_NONE, CONTENT_REPRESENTATION_TYPE_OBJECT, CONTENT_REPRESENTATION_TYPE_STREAM, CONTENT_REPRESENTATION_TYPE_URL, CONTENT_REPRESENTATION_TYPE_USER_START, CONTENT_TYPE_ANNOTATION, CONTENT_TYPE_DOCUMENT, CONTENT_TYPE_SECURITY, CONTENT_TYPE_USER_START| Constructor and Description |
|---|
OwDocumentImportItemContentCollection(OwDocumentImportItem importedDocument_p)
Create a new
OwDocumentImportItemContentCollection from the given OwDocumentImportItem. |
| Modifier and Type | Method and Description |
|---|---|
protected OwDocumentImportItemContentElement |
createDocumentImportItemContentElement(int contentType_p,
int page_p)
Factory method tor createion of
objects |
OwContentElement |
getContentElement(int iContentType_p,
int iPage_p)
Returns the content element for the given type and page
|
Collection |
getContentTypes()
get a list of content types used in this object
|
int |
getPageCount()
retrieve the page count
NOTE: You can iterate through all pages
by looping a index value from zero to getPageCount
and use getPageNumber to resolve the actually page number.
|
protected OwDocumentImportItem m_importedDocument
public OwDocumentImportItemContentCollection(OwDocumentImportItem importedDocument_p)
OwDocumentImportItemContentCollection from the given OwDocumentImportItem.importedDocument_p - the imported document this content collection is based onpublic OwContentElement getContentElement(int iContentType_p, int iPage_p) throws Exception
getContentElement in interface OwContentCollectioniContentType_p - the content type to receive the content element foriPage_p - the page to receive the content element forExceptionprotected OwDocumentImportItemContentElement createDocumentImportItemContentElement(int contentType_p, int page_p) throws Exception
OwDocumentImportItemContentElement objectsOwDocumentImportItemContentElement objectsExceptionpublic Collection getContentTypes() throws Exception
OwContentCollectiongetContentTypes in interface OwContentCollectionExceptionpublic int getPageCount()
throws Exception
OwContentCollectiongetPageCount in interface OwContentCollectionExceptionCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.