|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList
com.wewebu.ow.server.plug.owrecord.filter.OwFilterObjectCollection
public class OwFilterObjectCollection
Filter collection.
Filters an OwObjectCollection based on a OwSearchNode filter setting.
This class does not modifies the base collection, and works with the objects
from the base collection.
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
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Fields inherited from interface com.wewebu.ow.server.ecm.OwObjectCollection |
|---|
ATTRIBUTE_IS_COMPLETE, ATTRIBUTE_SIZE, ATTRIBUTE_SQL |
| Constructor Summary | |
|---|---|
OwFilterObjectCollection(com.wewebu.ow.server.ecm.OwObjectCollection nativeCollection)
|
|
OwFilterObjectCollection(com.wewebu.ow.server.ecm.OwObjectCollection nativeCollection,
com.wewebu.ow.server.field.OwSearchNode filter)
|
|
| Method Summary | |
|---|---|
int |
attributecount()
|
void |
clear()
|
Object |
getAttribute(int iIndex_p)
|
Object |
getAttribute(String strName_p)
|
Collection |
getAttributeNames()
|
com.wewebu.ow.server.field.OwSearchNode |
getFilter()
Return the current search node which is used as filter, can return null if no filter is set. |
com.wewebu.ow.server.ecm.OwObjectCollection |
getNativeCollection()
Returns the collection which is used to represent only the entries which are matching the filter. |
void |
getNext()
|
void |
getPrev()
|
Object |
getSafeAttribute(String strName_p,
Object default_p)
|
boolean |
hasAttribute(String strName_p)
|
boolean |
hasFilter()
Method to check if a filter was set. |
boolean |
hasNext()
|
boolean |
hasPrev()
|
boolean |
isComplete()
|
protected void |
processFilterList(List<com.wewebu.ow.server.field.OwSearchCriteria> filters)
(overridable) Method called to process the filter action based on the given list of criteria. |
void |
setFilter(com.wewebu.ow.server.field.OwSearchNode filter)
Set a filter which should be processed on the the native collection. |
void |
sort(com.wewebu.ow.server.field.OwSort sortCriteria_p)
|
| Methods inherited from class java.util.LinkedList |
|---|
add, add, addAll, addAll, addFirst, addLast, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray |
| Methods inherited from class java.util.AbstractSequentialList |
|---|
iterator |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, isEmpty, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
add, add, addAll, addAll, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
| Methods inherited from interface java.util.Deque |
|---|
iterator |
| Constructor Detail |
|---|
public OwFilterObjectCollection(com.wewebu.ow.server.ecm.OwObjectCollection nativeCollection)
public OwFilterObjectCollection(com.wewebu.ow.server.ecm.OwObjectCollection nativeCollection,
com.wewebu.ow.server.field.OwSearchNode filter)
| Method Detail |
|---|
public void clear()
clear in interface Collectionclear in interface Listclear in class LinkedList
public Object getAttribute(int iIndex_p)
throws Exception
getAttribute in interface com.wewebu.ow.server.util.OwAttributeBagException
public Object getAttribute(String strName_p)
throws Exception
getAttribute in interface com.wewebu.ow.server.util.OwAttributeBagException
public Object getSafeAttribute(String strName_p,
Object default_p)
getSafeAttribute in interface com.wewebu.ow.server.util.OwAttributeBagpublic boolean hasAttribute(String strName_p)
hasAttribute in interface com.wewebu.ow.server.util.OwAttributeBagpublic int attributecount()
attributecount in interface com.wewebu.ow.server.util.OwAttributeBagpublic Collection getAttributeNames()
getAttributeNames in interface com.wewebu.ow.server.util.OwAttributeBag
public boolean isComplete()
throws Exception
isComplete in interface com.wewebu.ow.server.ecm.OwObjectCollectionException
public boolean hasNext()
throws Exception
hasNext in interface com.wewebu.ow.server.ecm.OwObjectCollectionException
public boolean hasPrev()
throws Exception
hasPrev in interface com.wewebu.ow.server.ecm.OwObjectCollectionException
public void getNext()
throws Exception
getNext in interface com.wewebu.ow.server.ecm.OwObjectCollectionException
public void getPrev()
throws Exception
getPrev in interface com.wewebu.ow.server.ecm.OwObjectCollectionException
public void sort(com.wewebu.ow.server.field.OwSort sortCriteria_p)
throws Exception
sort in interface com.wewebu.ow.server.ecm.OwObjectCollectionExceptionpublic com.wewebu.ow.server.ecm.OwObjectCollection getNativeCollection()
public void setFilter(com.wewebu.ow.server.field.OwSearchNode filter)
Will trigger filter list action, if given parameter is not null.
filter - OwSearchNodeprocessFilterList(List),
getNativeCollection()public boolean hasFilter()
Check is done on null value, empty filter setting is not concerned.
public com.wewebu.ow.server.field.OwSearchNode getFilter()
protected void processFilterList(List<com.wewebu.ow.server.field.OwSearchCriteria> filters)
Can throw a OwRuntimeException if there is a problem during filter process.
filters - List of OwSearchCriteria
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||