@Transactional @Service(value="resourcebundleDomainService") public class ResourcebundleDomainService extends de.alpharogroup.service.domain.AbstractDomainService<Integer,Resourcebundle,de.alpharogroup.db.resource.bundles.entities.Resourcebundles,de.alpharogroup.db.resource.bundles.daos.ResourcebundlesDao,ResourcebundlesMapper> implements ResourcebundleService
ResourcebundleDomainService.| Constructor and Description |
|---|
ResourcebundleDomainService() |
| Modifier and Type | Method and Description |
|---|---|
Resourcebundle |
contains(String baseName,
Locale locale,
String key)
Checks if a resource exists with the given parameters.
|
Resourcebundle |
find(String baseName,
Locale locale,
String key)
Gets the entry from the given parameters.
|
Resourcebundle |
find(String baseName,
String locale,
String key)
Gets the entry from the given parameters.
|
List<Resourcebundle> |
find(String baseName,
String locale,
String key,
String value)
Finds all entries from the given parameters that can be null if it shell be ignored.
|
List<Resourcebundle> |
findResourceBundles(String baseName,
Locale locale)
Find resource bundles from the given parameters.
|
Properties |
getProperties(String baseName,
Locale locale)
Get the
Properties object from the given baseName and the given Locale
object. |
Properties |
getProperties(String baseName,
String locale)
Get the
Properties object from the given baseName and the given locale code as
String object. |
Resourcebundle |
getResourcebundle(String baseName,
Locale locale,
String key)
Gets the entry from the given parameters.
|
String |
getString(de.alpharogroup.resourcebundle.locale.BundleKey bundleKey)
Gets the resource
String from the given BundleKey. |
String |
getString(String baseName,
String locale,
String key)
Gets the resource
String from the given arguments. |
String |
getString(String baseName,
String locale,
String key,
Object[] params)
Gets the resource
String from the given arguments. |
String |
getString(String baseName,
String locale,
String key,
String defaultValue)
Gets the resource
String from the given arguments. |
String |
getString(String baseName,
String locale,
String key,
String defaultValue,
Object[] params)
Gets the resource
String from the given arguments. |
void |
setResourcebundlesDao(de.alpharogroup.db.resource.bundles.daos.ResourcebundlesDao resourcebundlesDao)
Sets the resourcebundles dao.
|
void |
setResourcebundlesMapper(ResourcebundlesMapper mapper)
Sets the specific
ResourcebundlesMapper. |
void |
updateProperties(Properties properties,
String baseName,
Locale locale)
Update the given properties to the db.
|
void |
updateProperties(Properties properties,
String baseName,
Locale locale,
boolean update)
Update the given properties to the db.
|
create, delete, exists, findAll, getDao, getDomainObjectClass, getEntityClass, getMapper, persist, read, setDao, setMapper, updatepublic Resourcebundle contains(String baseName, Locale locale, String key)
contains in interface ResourcebundleServicebaseName - the base namelocale - the localekey - the keyResourcebundle or null if it does not exists.public Resourcebundle find(String baseName, Locale locale, String key)
find in interface ResourcebundleServicebaseName - the base namelocale - the localekey - the keypublic Resourcebundle find(String baseName, String locale, String key)
find in interface ResourcebundleServicebaseName - the base namelocale - the localekey - the keypublic List<Resourcebundle> find(String baseName, String locale, String key, String value)
find in interface ResourcebundleServicebaseName - the base namelocale - the localekey - the keyvalue - the valuepublic List<Resourcebundle> findResourceBundles(String baseName, Locale locale)
findResourceBundles in interface ResourcebundleServicebaseName - the base namelocale - the localepublic Properties getProperties(String baseName, Locale locale)
Properties object from the given baseName and the given Locale
object.getProperties in interface ResourcebundleServicebaseName - the base namelocale - the localeProperties object.public Properties getProperties(String baseName, String locale)
Properties object from the given baseName and the given locale code as
String object.getProperties in interface ResourcebundleServicebaseName - the base namelocale - the localeProperties object.public Resourcebundle getResourcebundle(String baseName, Locale locale, String key)
getResourcebundle in interface ResourcebundleServicebaseName - the base namelocale - the localekey - the keypublic String getString(de.alpharogroup.resourcebundle.locale.BundleKey bundleKey)
String from the given BundleKey.getString in interface ResourcebundleServicebundleKey - the bundle keyStringpublic String getString(String baseName, String locale, String key)
String from the given arguments.getString in interface ResourcebundleServicebaseName - the base namelocale - the localekey - the keyStringpublic String getString(String baseName, String locale, String key, Object[] params)
String from the given arguments.getString in interface ResourcebundleServicebaseName - the base namelocale - the localekey - the keyparams - the parametersStringpublic String getString(String baseName, String locale, String key, String defaultValue)
String from the given arguments.getString in interface ResourcebundleServicebaseName - the base namelocale - the localekey - the keydefaultValue - the default valueStringpublic String getString(String baseName, String locale, String key, String defaultValue, Object[] params)
String from the given arguments.getString in interface ResourcebundleServicebaseName - the base namelocale - the localekey - the keydefaultValue - the default valueparams - the parametersString@Autowired public void setResourcebundlesDao(de.alpharogroup.db.resource.bundles.daos.ResourcebundlesDao resourcebundlesDao)
resourcebundlesDao - the new resourcebundles dao@Autowired public void setResourcebundlesMapper(ResourcebundlesMapper mapper)
ResourcebundlesMapper.mapper - the new ResourcebundlesMapper.public void updateProperties(Properties properties, String baseName, Locale locale)
updateProperties in interface ResourcebundleServiceproperties - the propertiesbaseName - the base namelocale - the localepublic void updateProperties(Properties properties, String baseName, Locale locale, boolean update)
updateProperties in interface ResourcebundleServiceproperties - the propertiesbaseName - the base namelocale - the localeupdate - flag that indicates if an existing property shell be updatedCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.