public class OwStandardObjectCollection extends ArrayList implements OwObjectCollection
Standard Implementation for objects lists from the network. Implements the SUN value list pattern.
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 | Class and Description |
|---|---|
protected static class |
OwStandardObjectCollection.OwObjectCollectionComparator
sort operator used in
|
modCountATTRIBUTE_IS_COMPLETE, ATTRIBUTE_SIZE, ATTRIBUTE_SQL| Constructor and Description |
|---|
OwStandardObjectCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAll(OwObjectCollection c,
int iMaxSize_p)
Adds more elements to the list, making sure not to exceed iMaxSize_p elements.
|
int |
attributecount()
get the number of attributes, or -1 if unknown
|
Object |
getAttribute(int iIndex_p)
get a object at the specified index or throws OwObjectNotFoundException
|
Object |
getAttribute(String strName_p)
get the attribute with the given name
|
Collection |
getAttributeNames()
get all attribute names in the bag
|
void |
getNext()
overridable to retrieve further objects, than currently added.
|
void |
getPrev()
overridable to retrieve further objects, than currently added.
|
Object |
getSafeAttribute(String strName_p,
Object default_p)
get the attribute with the given name, returns default if not found.
|
boolean |
hasAttribute(String strName_p)
check if attribute exists
|
boolean |
hasNext()
overridable to check if object list has access to more next objects, than currently added.
|
boolean |
hasPrev()
overridable to check if object list has access to more previous objects, than currently added.
|
boolean |
isComplete()
check if object list has retrieved all objects
If false, there are more objects available, but it is not guaranteed that you can retrieve them with the next / prev functions.
|
void |
setAttribute(String strName_p,
Object object_p)
set the attribute with the given name
|
void |
setComplete(boolean fComplete_p)
set the complete flag
|
void |
sort(OwSort sortCriteria_p)
sort the list by the given criteria.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringpublic void sort(OwSort sortCriteria_p) throws Exception
sort in interface OwObjectCollectionsortCriteria_p - list of sortcriteriaExceptionpublic boolean isComplete()
throws Exception
isComplete in interface OwObjectCollectionExceptionpublic void setComplete(boolean fComplete_p)
public boolean hasNext()
throws Exception
hasNext in interface OwObjectCollectionExceptionpublic boolean hasPrev()
throws Exception
hasPrev in interface OwObjectCollectionExceptionpublic void getNext()
throws Exception
getNext in interface OwObjectCollectionExceptionpublic void getPrev()
throws Exception
getPrev in interface OwObjectCollectionExceptionpublic Object getAttribute(int iIndex_p) throws Exception
getAttribute in interface OwAttributeBagiIndex_p - int indexExceptionpublic Object getSafeAttribute(String strName_p, Object default_p)
getSafeAttribute in interface OwAttributeBagpublic Object getAttribute(String strName_p) throws Exception
getAttribute in interface OwAttributeBagExceptionpublic void setAttribute(String strName_p, Object object_p)
public boolean hasAttribute(String strName_p)
hasAttribute in interface OwAttributeBagpublic Collection getAttributeNames()
getAttributeNames in interface OwAttributeBagpublic int attributecount()
OwAttributeBagattributecount in interface OwAttributeBagpublic boolean addAll(OwObjectCollection c, int iMaxSize_p) throws Exception
c - the elements to be added to this listiMaxSize_p - maximum number of elements that the list should contain.ExceptionCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.