com.wewebu.ow.server.app
Class OwDocumentImportItemContentCollection

java.lang.Object
  extended by com.wewebu.ow.server.app.OwDocumentImportItemContentCollection
All Implemented Interfaces:
OwContentCollection

public class OwDocumentImportItemContentCollection
extends Object
implements OwContentCollection

Standard OwContentCollection implementation that is wrapped around an OwDocumentImportItem.
Can and should be used to create an OwContentCollection for new object creation, save or checkin from an 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

See Also:
OwDocumentImportItemContentElement

Field Summary
protected  OwDocumentImportItem m_importedDocument
          the document imported by the document importer
 
Fields inherited from interface com.wewebu.ow.server.ecm.OwContentCollection
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 Summary
OwDocumentImportItemContentCollection(OwDocumentImportItem importedDocument_p)
          Create a new OwDocumentImportItemContentCollection from the given OwDocumentImportItem.
 
Method Summary
protected  OwDocumentImportItemContentElement createDocumentImportItemContentElement(int contentType_p, int page_p)
          Factory method tor createion of OwDocumentImportItemContentElement 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_importedDocument

protected OwDocumentImportItem m_importedDocument
the document imported by the document importer

Constructor Detail

OwDocumentImportItemContentCollection

public OwDocumentImportItemContentCollection(OwDocumentImportItem importedDocument_p)
Create a new OwDocumentImportItemContentCollection from the given OwDocumentImportItem.

Parameters:
importedDocument_p - the imported document this content collection is based on
Method Detail

getContentElement

public OwContentElement getContentElement(int iContentType_p,
                                          int iPage_p)
                                   throws Exception
Returns the content element for the given type and page

Specified by:
getContentElement in interface OwContentCollection
Parameters:
iContentType_p - the content type to receive the content element for
iPage_p - the page to receive the content element for
Returns:
the content element for the given type and page
Throws:
Exception

createDocumentImportItemContentElement

protected OwDocumentImportItemContentElement createDocumentImportItemContentElement(int contentType_p,
                                                                                    int page_p)
                                                                             throws Exception
Factory method tor createion of OwDocumentImportItemContentElement objects

Returns:
created OwDocumentImportItemContentElement objects
Throws:
Exception

getContentTypes

public Collection getContentTypes()
                           throws Exception
Description copied from interface: OwContentCollection
get a list of content types used in this object

Specified by:
getContentTypes in interface OwContentCollection
Returns:
List of int content types
Throws:
Exception

getPageCount

public int getPageCount()
                 throws Exception
Description copied from interface: OwContentCollection
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.

Specified by:
getPageCount in interface OwContentCollection
Returns:
long page count
Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.