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
|
modCount
ATTRIBUTE_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, trimToSize
equals, hashCode
containsAll, toString
public void sort(OwSort sortCriteria_p) throws Exception
sort
in interface OwObjectCollection
sortCriteria_p
- list of sortcriteriaException
public boolean isComplete() throws Exception
isComplete
in interface OwObjectCollection
Exception
public void setComplete(boolean fComplete_p)
public boolean hasNext() throws Exception
hasNext
in interface OwObjectCollection
Exception
public boolean hasPrev() throws Exception
hasPrev
in interface OwObjectCollection
Exception
public void getNext() throws Exception
getNext
in interface OwObjectCollection
Exception
public void getPrev() throws Exception
getPrev
in interface OwObjectCollection
Exception
public Object getAttribute(int iIndex_p) throws Exception
getAttribute
in interface OwAttributeBag
iIndex_p
- int indexException
public Object getSafeAttribute(String strName_p, Object default_p)
getSafeAttribute
in interface OwAttributeBag
public Object getAttribute(String strName_p) throws Exception
getAttribute
in interface OwAttributeBag
Exception
public void setAttribute(String strName_p, Object object_p)
public boolean hasAttribute(String strName_p)
hasAttribute
in interface OwAttributeBag
public Collection getAttributeNames()
getAttributeNames
in interface OwAttributeBag
public int attributecount()
OwAttributeBag
attributecount
in interface OwAttributeBag
public 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.Exception
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.