public class OwFilterObjectCollection extends LinkedList implements com.wewebu.ow.server.ecm.OwObjectCollection
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
modCount| Constructor and Description |
|---|
OwFilterObjectCollection(com.wewebu.ow.server.ecm.OwObjectCollection nativeCollection) |
OwFilterObjectCollection(com.wewebu.ow.server.ecm.OwObjectCollection nativeCollection,
com.wewebu.ow.server.field.OwSearchNode filter) |
| Modifier and Type | Method and Description |
|---|---|
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) |
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, toArrayiteratorequals, hashCode, listIterator, removeRange, subListcontainsAll, isEmpty, removeAll, retainAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitpublic OwFilterObjectCollection(com.wewebu.ow.server.ecm.OwObjectCollection nativeCollection)
public OwFilterObjectCollection(com.wewebu.ow.server.ecm.OwObjectCollection nativeCollection,
com.wewebu.ow.server.field.OwSearchNode filter)
public void clear()
clear in interface Collectionclear in interface Listclear in class LinkedListpublic Object getAttribute(int iIndex_p) throws Exception
getAttribute in interface com.wewebu.ow.server.util.OwAttributeBagExceptionpublic Object getAttribute(String strName_p) throws Exception
getAttribute in interface com.wewebu.ow.server.util.OwAttributeBagExceptionpublic 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.OwAttributeBagpublic boolean isComplete()
throws Exception
isComplete in interface com.wewebu.ow.server.ecm.OwObjectCollectionExceptionpublic boolean hasNext()
throws Exception
hasNext in interface com.wewebu.ow.server.ecm.OwObjectCollectionExceptionpublic boolean hasPrev()
throws Exception
hasPrev in interface com.wewebu.ow.server.ecm.OwObjectCollectionExceptionpublic void getNext()
throws Exception
getNext in interface com.wewebu.ow.server.ecm.OwObjectCollectionExceptionpublic void getPrev()
throws Exception
getPrev in interface com.wewebu.ow.server.ecm.OwObjectCollectionExceptionpublic 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 OwSearchCriteriaCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.