eu.etaxonomy.cdm.api.service
Class LocationServiceImpl
java.lang.Object
eu.etaxonomy.cdm.api.service.ServiceBase<DefinedTermBase,IDefinedTermDao>
eu.etaxonomy.cdm.api.service.LocationServiceImpl
- All Implemented Interfaces:
- ILocationService, IService<DefinedTermBase>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
@Service
@Transactional(readOnly=true)
public class LocationServiceImpl
- extends ServiceBase<DefinedTermBase,IDefinedTermDao>
- implements ILocationService
Quick and dirty implementation of a location service as needed by the editor.
NOTE: Current implementation does not support the IService methods like #save(DefinedTermBase)
as no base dao is loaded by autowiring.
- Version:
- 1.0
- Author:
- n.hoffman
| Methods inherited from class eu.etaxonomy.cdm.api.service.ServiceBase |
clear, count, delete, exists, find, find, find, findById, getSession, group, list, list, load, load, lock, merge, page, refresh, refresh, rows, save, save, saveOrUpdate, saveOrUpdate, setApplicationContext, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface eu.etaxonomy.cdm.api.service.IService |
clear, count, delete, exists, find, find, find, findById, getSession, group, list, list, load, load, lock, merge, page, refresh, refresh, rows, save, save, saveOrUpdate, saveOrUpdate, update |
vocabularyDao
@Autowired
protected ITermVocabularyDao vocabularyDao
definedTermDao
@Autowired
protected IDefinedTermDao definedTermDao
orderedVocabularyDao
@Autowired
protected IOrderedTermVocabularyDao orderedVocabularyDao
LocationServiceImpl
public LocationServiceImpl()
setDao
protected void setDao(IDefinedTermDao dao)
- Specified by:
setDao in class ServiceBase<DefinedTermBase,IDefinedTermDao>
getAbsenceTermVocabulary
public OrderedTermVocabulary<AbsenceTerm> getAbsenceTermVocabulary()
- (non-Javadoc)
- Specified by:
getAbsenceTermVocabulary in interface ILocationService
- Returns:
- See Also:
FIXME Candidate for harmonization
is this method a duplicate of termService.getVocabulary(VocabularyEnum.AbsenceTerm)?
getPresenceTermVocabulary
public OrderedTermVocabulary<PresenceTerm> getPresenceTermVocabulary()
- (non-Javadoc)
- Specified by:
getPresenceTermVocabulary in interface ILocationService
- Returns:
- See Also:
FIXME Candidate for harmonization
is this method a duplicate of termService.getVocabulary(VocabularyEnum.PresenceTerm)
getNamedAreaVocabularyTypes
public List<ILocationService.NamedAreaVocabularyType> getNamedAreaVocabularyTypes()
- Description copied from interface:
ILocationService
- Returns a list of NamedArea Types "TDWG Areas", "ISO Country Codes"
- Specified by:
getNamedAreaVocabularyTypes in interface ILocationService
- Returns:
getNamedAreaVocabulary
public OrderedTermVocabulary<NamedArea> getNamedAreaVocabulary(ILocationService.NamedAreaVocabularyType vocabularyType)
- Description copied from interface:
ILocationService
- - these would be top-level areas for nested area vocabularies, e.g. North America and Europe, but NOT USA, Germany - alternatively:
- Specified by:
getNamedAreaVocabulary in interface ILocationService
- Returns:
getNamedAreaLevelVocabulary
public OrderedTermVocabulary<NamedAreaLevel> getNamedAreaLevelVocabulary()
- Specified by:
getNamedAreaLevelVocabulary in interface ILocationService
- Returns:
getNamedAreaTypeVocabulary
public TermVocabulary<NamedAreaType> getNamedAreaTypeVocabulary()
- (non-Javadoc)
- Specified by:
getNamedAreaTypeVocabulary in interface ILocationService
- Returns:
- See Also:
FIXME Candidate for harmonization
is this method a duplicate of termService.getVocabulary(VocabularyEnum.NamedAreaType)
getTopLevelNamedAreasByVocabularyType
public List<NamedArea> getTopLevelNamedAreasByVocabularyType(ILocationService.NamedAreaVocabularyType vocabularyType)
- Specified by:
getTopLevelNamedAreasByVocabularyType in interface ILocationService
Copyright © 2007-2013 EDIT. All Rights Reserved.