Project

General

Profile

Revision 1990fe50

ID1990fe50d64b47172a9924e5dd3a351db61bca6c
Parent 77c1c705
Child 4aa98446

Added by Katja Luther almost 4 years ago

ref #5969: add PreferenceService to applicationController

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/application/CdmApplicationController.java
55 55
import eu.etaxonomy.cdm.api.service.IOccurrenceService;
56 56
import eu.etaxonomy.cdm.api.service.IPolytomousKeyNodeService;
57 57
import eu.etaxonomy.cdm.api.service.IPolytomousKeyService;
58
import eu.etaxonomy.cdm.api.service.IPreferenceService;
58 59
import eu.etaxonomy.cdm.api.service.IProgressMonitorService;
59 60
import eu.etaxonomy.cdm.api.service.IReferenceService;
60 61
import eu.etaxonomy.cdm.api.service.IService;
......
554 555
	@Override
555 556
	public final IFeatureTreeService getFeatureTreeService(){
556 557
		return configuration.getFeatureTreeService();
558
	}
559

  
560
	@Override
561
	public final IPreferenceService getPreferenceService(){
562
	    return configuration.getPreferenceService();
557 563
	}
558 564

  
559 565

  
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/application/CdmApplicationDefaultConfiguration.java
53 53
import eu.etaxonomy.cdm.api.service.IOccurrenceService;
54 54
import eu.etaxonomy.cdm.api.service.IPolytomousKeyNodeService;
55 55
import eu.etaxonomy.cdm.api.service.IPolytomousKeyService;
56
import eu.etaxonomy.cdm.api.service.IPreferenceService;
56 57
import eu.etaxonomy.cdm.api.service.IProgressMonitorService;
57 58
import eu.etaxonomy.cdm.api.service.IReferenceService;
58 59
import eu.etaxonomy.cdm.api.service.IService;
......
168 169
	@Autowired
169 170
	private IEntityValidationService entityValidationService;
170 171
	@Autowired
172
    private IPreferenceService preferenceService;
173
	@Autowired
171 174
	private IEntityConstraintViolationService entityConstraintViolationService;
172 175
	@Autowired
173 176
	private ICdmPermissionEvaluator permissionEvaluator;
......
364 367
	}
365 368

  
366 369
	@Override
370
    public IPreferenceService getPreferenceService(){
371
        return preferenceService;
372
    }
373

  
374
	@Override
367 375
	public IVocabularyService getVocabularyService(){
368 376
		return vocabularyService;
369 377
	}
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/application/ICdmApplicationConfiguration.java
37 37
import eu.etaxonomy.cdm.api.service.IOccurrenceService;
38 38
import eu.etaxonomy.cdm.api.service.IPolytomousKeyNodeService;
39 39
import eu.etaxonomy.cdm.api.service.IPolytomousKeyService;
40
import eu.etaxonomy.cdm.api.service.IPreferenceService;
40 41
import eu.etaxonomy.cdm.api.service.IProgressMonitorService;
41 42
import eu.etaxonomy.cdm.api.service.IReferenceService;
42 43
import eu.etaxonomy.cdm.api.service.IService;
......
193 194
	 */
194 195
	public IGroupService getGroupService();
195 196

  
197
	/**
198
    *
199
    * @return
200
    */
201
   public IPreferenceService getPreferenceService();
196 202

  
197 203
	/**
198 204
	 *
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/PreferenceServiceImpl.java
60 60
        return find(key);
61 61
    }
62 62

  
63

  
63 64
	@Override
65
    @Transactional(readOnly = false)
64 66
	public void set(CdmPreference preference) {
65 67
		dao.set(preference);
66 68
	}
cdmlib-services/src/main/resources/eu/etaxonomy/cdm/httpInvokerServices.xml
70 70
      <value>eu.etaxonomy.cdm.api.service.ICommonService</value>
71 71
    </property>
72 72
  </bean>
73
  
74
  <bean id="httpPreferenceService"
75
    class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter">
76
    <property name="service">
77
      <ref bean="preferenceServiceImpl" />
78
    </property>
79
    <property name="serviceInterface">
80
      <value>eu.etaxonomy.cdm.api.service.IPreferenceService</value>
81
    </property>
82
  </bean>
73 83

  
74 84
  <bean id="httpDescriptionService"
75 85
    class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter">
cdmlib-services/src/main/resources/eu/etaxonomy/cdm/remoting-services.xml
51 51
        <prop key="/remoting/polytomouskey.service">httpPolytomousKeyService</prop>
52 52
        <prop key="/remoting/primer.service">httpPrimerService</prop>
53 53
        <prop key="/remoting/progressmonitor.service">httpProgressMonitorService</prop>
54
        <prop key="/remoting/reference.service">httpReferenceService</prop>        
54
        <prop key="/remoting/reference.service">httpReferenceService</prop>   
55
         <prop key="/remoting/preference.service">httpPreferenceService</prop>         
55 56
        <prop key="/remoting/sequence.service">httpSequenceService</prop> 
56 57
        <prop key="/remoting/eventbase.service">httpEventBaseService</prop> 
57 58
        <prop key="/remoting/taxonnode.service">httpTaxonNodeService</prop>

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)