public interface OwContentCollection
Base interface for Content Collections. Content Collections hold several content types with several pages each.
Each page can contain a different content representation, which are URL, Stream and Object.
The count of all available pages is returned with the zero based index function getPageCount().
However, the actual page number must be retrieved with the one based function getPageNumber().
e.g.: the ContentCollection could hold content for 3 pages with page numbers 5, 19, 201.
Calls to getPageNumber would result as follows:
For the getter methods to work, you must use the page number rather than the page index.
e.g.: getContentURL(CONTENT_TYPE_DOCUMENT,getPageNumber(0) would retrieve the document
content of the page number 5, which has index 0.
To be implemented with the specific ECM system.
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
Modifier and Type | Field and Description |
---|---|
static int |
CONTENT_REPRESENTATION_TYPE_NONE
content representation type
|
static int |
CONTENT_REPRESENTATION_TYPE_OBJECT
content representation type
|
static int |
CONTENT_REPRESENTATION_TYPE_STREAM
content representation type
|
static int |
CONTENT_REPRESENTATION_TYPE_URL
content representation type
|
static int |
CONTENT_REPRESENTATION_TYPE_USER_START
start value for user defined content representation types
|
static int |
CONTENT_TYPE_ANNOTATION
content type Annotation enumerator
|
static int |
CONTENT_TYPE_DOCUMENT
content type Document enumerator
|
static int |
CONTENT_TYPE_SECURITY
content type Security enumerator
|
static int |
CONTENT_TYPE_USER_START
start value for user defined content types
|
Modifier and Type | Method and Description |
---|---|
OwContentElement |
getContentElement(int iContentType_p,
int iPage_p)
get a 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.
|
static final int CONTENT_TYPE_DOCUMENT
static final int CONTENT_TYPE_ANNOTATION
static final int CONTENT_TYPE_SECURITY
static final int CONTENT_TYPE_USER_START
static final int CONTENT_REPRESENTATION_TYPE_NONE
static final int CONTENT_REPRESENTATION_TYPE_STREAM
static final int CONTENT_REPRESENTATION_TYPE_URL
static final int CONTENT_REPRESENTATION_TYPE_OBJECT
static final int CONTENT_REPRESENTATION_TYPE_USER_START
OwContentElement getContentElement(int iContentType_p, int iPage_p) throws Exception
iContentType_p
- intiPage_p
- intException
int getPageCount() throws Exception
Exception
Collection getContentTypes() throws Exception
Exception
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.