com.wewebu.ow.server.ecm
Class OwQueriedCollection

java.lang.Object
  extended by com.wewebu.ow.server.ecm.OwObjectCollectionDelegator
      extended by com.wewebu.ow.server.ecm.OwQueriedCollection
All Implemented Interfaces:
OwObjectCollection, OwAttributeBag, Iterable, Collection, List

public class OwQueriedCollection
extends OwObjectCollectionDelegator

An OwObjectCollection that relates on an OwObjectsQuery for the default object contents.
The contents is refreshed when the collection is sorted using the collection query.

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

Since:
2.5.3.1

Field Summary
 
Fields inherited from interface com.wewebu.ow.server.ecm.OwObjectCollection
ATTRIBUTE_IS_COMPLETE, ATTRIBUTE_SIZE, ATTRIBUTE_SQL
 
Constructor Summary
OwQueriedCollection(OwObjectCollection decoratedCollection_p, OwObjectsQuery query_p)
           
OwQueriedCollection(OwObjectsQuery query_p, OwSort sort_p)
          Constructor
Triggers a reload on this collection (see reload() using the given sort object.
 
Method Summary
 void reload()
          Reloads this collection with no sort object
 void reload(OwSort sort_p)
          Executes the underlying query using the given sort criteria and replaces the delegate with the result.
 void sort(OwSort sortCriteria_p)
          Executes the underlying query using the given sort criteria and replaces the delegate with the result.
 
Methods inherited from class com.wewebu.ow.server.ecm.OwObjectCollectionDelegator
add, add, addAll, addAll, attributecount, clear, contains, containsAll, equals, get, getAttribute, getAttribute, getAttributeNames, getNext, getPrev, getSafeAttribute, hasAttribute, hashCode, hasNext, hasPrev, indexOf, isComplete, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceDelegatee, retainAll, set, size, subList, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OwQueriedCollection

public OwQueriedCollection(OwObjectCollection decoratedCollection_p,
                           OwObjectsQuery query_p)
Parameters:
decoratedCollection_p -
query_p -

OwQueriedCollection

public OwQueriedCollection(OwObjectsQuery query_p,
                           OwSort sort_p)
                    throws OwException
Constructor
Triggers a reload on this collection (see reload() using the given sort object.

Parameters:
query_p -
sort_p -
Throws:
OwException
Method Detail

reload

public void reload()
            throws OwException
Reloads this collection with no sort object

Throws:
OwException

reload

public void reload(OwSort sort_p)
            throws OwException
Executes the underlying query using the given sort criteria and replaces the delegate with the result.

Parameters:
sort_p -
Throws:
OwException

sort

public void sort(OwSort sortCriteria_p)
          throws Exception
Executes the underlying query using the given sort criteria and replaces the delegate with the result.

Specified by:
sort in interface OwObjectCollection
Overrides:
sort in class OwObjectCollectionDelegator
Parameters:
sortCriteria_p -
Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.