@Transactional(propagation=REQUIRED) public abstract class MasterDataManagementBase extends Object implements MasterDataManagement
Spring Service base class for MasterDataManagement
, provides access to all services
and entities referenced by this service.
MasterDataManagement
MASTERDATA_LANGUAGE_PREFIX
Constructor and Description |
---|
MasterDataManagementBase() |
Modifier and Type | Method and Description |
---|---|
Country |
findCountryByCode(String countryCode)
Finds a country by the country code.
|
Language |
findLanguageByCode(String languageCode)
Finds a language by the language code.
|
List<Country> |
getCountries(Locale locale)
Returns a list of all countries in the database.
|
List<Language> |
getLanguages() |
protected Principal |
getPrincipal()
Gets the current
principal if one has been set, otherwise returns
null . |
List<SimplifiedTimeZone> |
getTimeZones() |
protected abstract Country |
handleFindCountryByCode(String countryCode)
Performs the core logic for
findCountryByCode(String) |
protected abstract Language |
handleFindLanguageByCode(String languageCode)
Performs the core logic for
findLanguageByCode(String) |
protected abstract List<Country> |
handleGetCountries(Locale locale)
Performs the core logic for
getCountries(Locale) |
protected abstract List<Language> |
handleGetLanguages()
Performs the core logic for
getLanguages() |
protected abstract List<SimplifiedTimeZone> |
handleGetTimeZones()
Performs the core logic for
getTimeZones() |
protected abstract void |
handlePostInitialization()
Performs the core logic for
postInitialization() |
void |
postInitialization() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLanguage, getAllLanguages, getAvailableLanguages, getUsedLanguages, isAvailableLanguage, removeLanguage
@Transactional(readOnly=true) public Country findCountryByCode(String countryCode)
MasterDataManagement
Finds a country by the country code.
findCountryByCode
in interface MasterDataManagement
MasterDataManagement.findCountryByCode(String)
@Transactional(readOnly=true) public Language findLanguageByCode(String languageCode)
MasterDataManagement
Finds a language by the language code.
findLanguageByCode
in interface MasterDataManagement
MasterDataManagement.findLanguageByCode(String)
@Transactional(readOnly=true) public List<Country> getCountries(Locale locale)
MasterDataManagement
Returns a list of all countries in the database.
getCountries
in interface MasterDataManagement
MasterDataManagement.getCountries(Locale)
@Transactional(readOnly=true) public List<Language> getLanguages()
getLanguages
in interface MasterDataManagement
MasterDataManagement.getLanguages()
protected Principal getPrincipal()
principal
if one has been set, otherwise returns
null
.@Transactional(readOnly=true) public List<SimplifiedTimeZone> getTimeZones()
MasterDataManagement
getTimeZones
in interface MasterDataManagement
MasterDataManagement.getTimeZones()
protected abstract Country handleFindCountryByCode(String countryCode)
findCountryByCode(String)
protected abstract Language handleFindLanguageByCode(String languageCode)
findLanguageByCode(String)
protected abstract List<Country> handleGetCountries(Locale locale)
getCountries(Locale)
protected abstract List<Language> handleGetLanguages()
getLanguages()
protected abstract List<SimplifiedTimeZone> handleGetTimeZones()
getTimeZones()
protected abstract void handlePostInitialization()
postInitialization()
public void postInitialization()
postInitialization
in interface MasterDataManagement
MasterDataManagement.postInitialization()
Copyright © 2019 Communote team. All rights reserved.