source: VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/java/eu/clarin/cmdi/virtualcollectionregistry/gui/table/PublishedCollectionsProvider.java @ 5500

Last change on this file since 5500 was 5500, checked in by Twan Goosen, 10 years ago

refactored provider into an abstract provider with an abstract method for selecting the collections space. extended by concrete providers for the pulished collections and private collections. also renamed it to CollectionsProvider?

File size: 528 bytes
Line 
1package eu.clarin.cmdi.virtualcollectionregistry.gui.table;
2
3import eu.clarin.cmdi.virtualcollectionregistry.QueryOptions;
4import eu.clarin.cmdi.virtualcollectionregistry.model.VirtualCollection;
5
6/**
7 *
8 * @author twagoo
9 */
10public class PublishedCollectionsProvider extends CollectionsProvider {
11
12    @Override
13    protected void addSpaceFilter(QueryOptions.Filter filter) {
14        filter.add(QueryOptions.Property.VC_STATE,
15                QueryOptions.Relation.EQ,
16                VirtualCollection.State.PUBLIC);
17    }
18
19}
Note: See TracBrowser for help on using the repository browser.