View Javadoc

1   package org.cateproject.view.mock;
2   
3   import java.util.List;
4   import java.util.Set;
5   import java.util.UUID;
6   
7   import org.springframework.stereotype.Component;
8   
9   import eu.etaxonomy.cdm.api.service.IDescriptionService;
10  import eu.etaxonomy.cdm.api.service.pager.Pager;
11  import eu.etaxonomy.cdm.model.common.TermVocabulary;
12  import eu.etaxonomy.cdm.model.description.DescriptionBase;
13  import eu.etaxonomy.cdm.model.description.DescriptionElementBase;
14  import eu.etaxonomy.cdm.model.description.Feature;
15  import eu.etaxonomy.cdm.model.description.PresenceAbsenceTermBase;
16  import eu.etaxonomy.cdm.model.description.Scope;
17  import eu.etaxonomy.cdm.model.description.TaxonDescription;
18  import eu.etaxonomy.cdm.model.description.TaxonNameDescription;
19  import eu.etaxonomy.cdm.model.location.NamedArea;
20  import eu.etaxonomy.cdm.model.media.Media;
21  import eu.etaxonomy.cdm.model.name.TaxonNameBase;
22  import eu.etaxonomy.cdm.model.taxon.Taxon;
23  import eu.etaxonomy.cdm.persistence.query.OrderHint;
24  
25  @Component("descriptionService")
26  public class MockDescriptionService extends MockIdentifiableService<DescriptionBase> implements IDescriptionService {
27  
28  	public int count(Class<? extends DescriptionBase> type, Boolean hasImages,
29  			Boolean hasText, Set<Feature> feature) {
30  		// TODO Auto-generated method stub
31  		return 0;
32  	}
33  
34  	public UUID deleteDescriptionElement(
35  			DescriptionElementBase descriptionElement) {
36  		// TODO Auto-generated method stub
37  		return null;
38  	}
39  
40  	public TermVocabulary<Feature> getDefaultFeatureVocabulary() {
41  		// TODO Auto-generated method stub
42  		return null;
43  	}
44  
45  	public DescriptionElementBase getDescriptionElementByUuid(UUID uuid) {
46  		// TODO Auto-generated method stub
47  		return null;
48  	}
49  
50  	public Pager<DescriptionElementBase> getDescriptionElements(
51  			DescriptionBase description, Set<Feature> features,
52  			Class<? extends DescriptionElementBase> type, Integer pageSize,
53  			Integer pageNumber, List<String> propertyPaths) {
54  		// TODO Auto-generated method stub
55  		return null;
56  	}
57  
58  	public TermVocabulary<Feature> getFeatureVocabulary(UUID uuid) {
59  		// TODO Auto-generated method stub
60  		return null;
61  	}
62  
63  	public Pager<Media> getMedia(DescriptionElementBase descriptionElement,
64  			Integer pageSize, Integer pageNumber, List<String> propertyPaths) {
65  		// TODO Auto-generated method stub
66  		return null;
67  	}
68  
69  	public Pager<TaxonDescription> getTaxonDescriptions(Taxon taxon,
70  			Set<Scope> scopes, Set<NamedArea> geographicalScope,
71  			Integer pageSize, Integer pageNumber, List<String> propertyPaths) {
72  		// TODO Auto-generated method stub
73  		return null;
74  	}
75  
76  	public Pager<TaxonNameDescription> getTaxonNameDescriptions(
77  			TaxonNameBase name, Integer pageSize, Integer pageNumber,
78  			List<String> propertyPaths) {
79  		// TODO Auto-generated method stub
80  		return null;
81  	}
82  
83  	public DescriptionElementBase loadDescriptionElement(UUID uuid,
84  			List<String> propertyPaths) {
85  		// TODO Auto-generated method stub
86  		return null;
87  	}
88  
89  	public Pager<DescriptionBase> page(Class<? extends DescriptionBase> type,
90  			Boolean hasMedia, Boolean hasText, Set<Feature> feature,
91  			Integer pageSize, Integer pageNumber, List<OrderHint> orderHints,
92  			List<String> propertyPaths) {
93  		// TODO Auto-generated method stub
94  		return null;
95  	}
96  
97  	public UUID saveDescriptionElement(DescriptionElementBase descriptionElement) {
98  		// TODO Auto-generated method stub
99  		return null;
100 	}
101 
102 	public Pager<TaxonDescription> searchDescriptionByDistribution(
103 			Set<NamedArea> namedAreas, PresenceAbsenceTermBase presence,
104 			Integer pageSize, Integer pageNumber, List<OrderHint> orderHints,
105 			List<String> propertyPaths) {
106 		// TODO Auto-generated method stub
107 		return null;
108 	}
109 
110 	public Pager<DescriptionElementBase> searchElements(
111 			Class<? extends DescriptionElementBase> clazz, String queryString,
112 			Integer pageSize, Integer pageNumber, List<OrderHint> orderHints,
113 			List<String> propertyPaths) {
114 		// TODO Auto-generated method stub
115 		return null;
116 	}
117 
118 }