public class C2LManager extends Manager
Items of this package.
JaloSession,
Cart,
Order,
Address,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
C2LManager.C2LCacheKey |
protected static class |
C2LManager.C2LManagerSerializableDTO |
Manager.GenericManagerSingletonCreator, Manager.ManagerSingletonCreator| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BEAN_NAME |
| Constructor and Description |
|---|
C2LManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkBeforeItemRemoval(SessionContext ctx,
Item item)
Deprecated.
since ages - use
RemoveInterceptor instead. |
Country |
createCountry(PK pkBase,
java.lang.String isoCode)
Deprecated.
since ages - use plain
CountryModel creation instead see
createCountry(String), see also model saving example |
Country |
createCountry(java.lang.String isoCode)
Deprecated.
since ages - use plain
CountryModel creation instead :
final CountryModel model = modelService.create(CountryModel.class);
model.setIsocode("tinyRed");
modelService.save(model);
see also model saving
example. |
Currency |
createCurrency(PK pkBase,
java.lang.String isoCode)
Deprecated.
since ages - use plain
CurrencyModel creation instead see
createCurrency(String) see also model saving example. |
Currency |
createCurrency(java.lang.String isoCode)
Deprecated.
since ages - use plain
CurrencyModel creation instead :
final CurrencyModel model = modelService.create(CurrencyModel.class);
model.setIsocode("tinyRed");
modelService.save(model);
see also model saving
example |
Language |
createLanguage(PK pk,
java.lang.String isoCode)
Deprecated.
since ages - use plain
LanguageModel creation see
createLanguage(String) see also model saving example. |
Language |
createLanguage(java.lang.String isoCode)
Deprecated.
since ages - use plain
LanguageModel creation instead :
final LanguageModel lmodel = modelService.create(LanguageModel.class);
lmodel.setIsocode("tinyRed");
modelService.save(lmodel);
see also model saving
example. |
Region |
createRegion(PK pkBase,
java.lang.String code,
Country country)
Deprecated.
since ages - use plain
RegionModel creation instead see also model saving example. |
Region |
createRegion(java.lang.String code,
Country country)
Deprecated.
since ages - please use
Country.addNewRegion(String) instead |
java.util.Set<Country> |
getActiveCountries()
Deprecated.
since ages - use
CommonI18NService.getAllCountries() instead. |
java.util.Set<Currency> |
getActiveCurrencies()
Deprecated.
since ages - use
CommonI18NService.getAllCurrencies() instead. |
java.util.Set<Language> |
getActiveLanguages()
Deprecated.
since ages - use
CommonI18NService.getAllLanguages() instead. |
java.util.Set<Region> |
getActiveRegions()
Deprecated.
since ages - use
CommonI18NService.getAllRegions() instead. |
java.util.Set<Country> |
getAllCountries()
Deprecated.
since ages - use
CommonI18NService.getAllCountries() instead. |
java.util.Set<Currency> |
getAllCurrencies()
Deprecated.
since ages - use
CommonI18NService.getAllCurrencies() instead. |
java.util.Set<Language> |
getAllLanguages()
Deprecated.
since ages - use
CommonI18NService.getAllLanguages() instead. |
java.util.Set<Region> |
getAllRegions()
Deprecated.
since ages - use
CommonI18NService.getAllRegions() instead. |
Currency |
getBaseCurrency()
Deprecated.
since ages - use
CommonI18NService.getBaseCurrency() instead. |
Country |
getCountryByIsoCode(java.lang.String iso)
Deprecated.
since ages - use
CommonI18NService.getCountry(String) instead. |
Currency |
getCurrencyByIsoCode(java.lang.String iso)
Deprecated.
since ages - use
CommonI18NService.getCurrency(String) instead. |
Currency |
getDefaultCurrencyForTenant(Tenant t) |
Language |
getDefaultLanguageForTenant(Tenant t) |
static C2LManager |
getInstance() |
Language |
getLanguageByIsoCode(java.lang.String iso)
Deprecated.
since ages - use
CommonI18NService.getLanguage(String) instead. |
Region |
getRegionByCode(Country country,
java.lang.String code)
Deprecated.
since ages - use
CommonI18NService.getRegion(de.hybris.platform.core.model.c2l.CountryModel, String)
instead. |
Region |
getRegionByCode(java.lang.String code)
Deprecated.
since ages - You should consider not using region data without its country context , in that case use
CommonI18NService.getRegion(de.hybris.platform.core.model.c2l.CountryModel, String)
instead. |
java.util.Collection<Region> |
getRegions(Country country)
Deprecated.
since ages - please use
GeneratedCountry.getRegions() instead |
java.util.Collection<Region> |
getRegionsByCode(java.lang.String code)
Deprecated.
since ages - You should consider not using region data without its country context, in that use
CommonI18NService.getRegion(de.hybris.platform.core.model.c2l.CountryModel, String)
instead. |
void |
init()
called once for each tenant, so this method fits best to perform some initialization stuff
|
protected void |
notifyItemRemoval(SessionContext ctx,
Item item)
TODO improve API doc Is called just before a item is being removed.
|
void |
setBaseCurrency(Currency currency)
Deprecated.
since ages - use {Currency#setBase()} instead.
|
java.lang.Object |
writeReplace() |
afterItemCreation, beforeItemCreation, destroy, extractNonRequiredRemoteFromItem, extractRequiredRemoteFromItem, getAllValuesSessionContext, getAttribute, getAttributeMap, getFirstItemByAttribute, getFirstItemByAttribute, getRemote, getRemoteManagerClass, getSession, getSingletonManagerInstance, getTenant, getTransientObject, getTransientObjectMap, setAttribute, setTenant, setTransientObject, wrappublic static final java.lang.String BEAN_NAME
public static C2LManager getInstance()
public void init()
Manager@Deprecated protected void checkBeforeItemRemoval(SessionContext ctx, Item item) throws ConsistencyCheckException
RemoveInterceptor instead.checkBeforeItemRemoval in class Managerctx - the current session contextitem - the item which should be removedConsistencyCheckException - thrown to abort removal due to consistency errors@Deprecated public Language getLanguageByIsoCode(java.lang.String iso) throws JaloItemNotFoundException
CommonI18NService.getLanguage(String) instead.Language with the specified iso code. If there exists no Language with the
specified iso code a JaloItemNotFoundException is thrown.iso - the isocode of the searched LanguageLanguage with the specified isocodeJaloItemNotFoundException - if there exists no Language with the specified iso code@Deprecated public Language createLanguage(java.lang.String isoCode) throws ConsistencyCheckException
LanguageModel creation instead :
final LanguageModel lmodel = modelService.create(LanguageModel.class);
lmodel.setIsocode("tinyRed");
modelService.save(lmodel);
see also model saving
example.Language with the specified iso code.isoCode - the iso code of the new LanguageLanguage with the specified iso codeConsistencyCheckException - if there already exists a language with the specified iso code@Deprecated public Language createLanguage(PK pk, java.lang.String isoCode) throws ConsistencyCheckException
LanguageModel creation see
createLanguage(String) see also model saving example.Language with the specified iso code and pk.pk - the primary key of the new LanguageisoCode - the iso code of the new LanguageLanguage with the specified iso codeConsistencyCheckException - if there already exists a language with the specified iso code@Deprecated public java.util.Set<Language> getAllLanguages()
CommonI18NService.getAllLanguages() instead.Set of all languages.Set of all languages@Deprecated public java.util.Set<Language> getActiveLanguages()
CommonI18NService.getAllLanguages() instead.Collection of all active languages (GeneratedC2LItem.isActive() == true ). This is meant to
provide a way to select only the languages which are to be shown in applications ( web ) even though a
large number of them exists.Collection of all active languages@Deprecated public Currency getCurrencyByIsoCode(java.lang.String iso) throws JaloItemNotFoundException
CommonI18NService.getCurrency(String) instead.Currency with the specified iso code. If there exists no Currency with the
specified iso code a JaloItemNotFoundException is thrown.iso - the iso code of the searched CurrencyCurrency with the specified iso codeJaloItemNotFoundException - if there exists no Currency with the specified iso code@Deprecated public Currency createCurrency(java.lang.String isoCode) throws ConsistencyCheckException
CurrencyModel creation instead :
final CurrencyModel model = modelService.create(CurrencyModel.class);
model.setIsocode("tinyRed");
modelService.save(model);
see also model saving
exampleCurrency with the specified iso code.isoCode - the iso code of the new CurrencyCurrencyConsistencyCheckException - if there already exists a Currency with this iso code@Deprecated public Currency createCurrency(PK pkBase, java.lang.String isoCode) throws ConsistencyCheckException
CurrencyModel creation instead see
createCurrency(String) see also model saving example.Currency with the specified iso code.pkBase - the PK of the new CurrencyisoCode - the iso code of the new CurrencyCurrencyConsistencyCheckException - if there already exists a Currency with this iso code@Deprecated public java.util.Set<Currency> getAllCurrencies()
CommonI18NService.getAllCurrencies() instead.Collection of all currencies.Collection of all currencies@Deprecated public java.util.Set<Currency> getActiveCurrencies()
CommonI18NService.getAllCurrencies() instead.Collection of all active currencies (GeneratedC2LItem.isActive() == true ). This is meant to
provide a way to select only the currencies which should be shown in applications ( web ) even though a
larger number of them exists.Collection of all active currencies@Deprecated public Currency getBaseCurrency()
CommonI18NService.getBaseCurrency() instead.GeneratedCurrency.isBase()) of this system or Null if no base currency is
set. There should be always one such Currency in the hybris Platform. The base currency should be the
most likely-to-us currency.Currency or Null if no base currency is set@Deprecated public void setBaseCurrency(Currency currency)
Currency as the base currency of this system.currency - the new base currencygetBaseCurrency()@Deprecated public Country getCountryByIsoCode(java.lang.String iso) throws JaloItemNotFoundException
CommonI18NService.getCountry(String) instead.Country with the specified isocode.iso - the isocode of the searched CountryCountry with the specified isocodeJaloItemNotFoundException - if no Country with the specified isocode exists@Deprecated public Country createCountry(java.lang.String isoCode) throws ConsistencyCheckException
CountryModel creation instead :
final CountryModel model = modelService.create(CountryModel.class);
model.setIsocode("tinyRed");
modelService.save(model);
see also model saving
example.Country with the specified isocode. The isocode of the Country must be
unique within the countries.isoCode - the isocode of the new countryCountryConsistencyCheckException - if the isocode is not unique within the countries@Deprecated public Country createCountry(PK pkBase, java.lang.String isoCode) throws ConsistencyCheckException
CountryModel creation instead see
createCountry(String), see also model saving exampleCountry with the specified isocode. The isocode of the Country must be
unique within the countries.pkBase - the primary key of the new CountryisoCode - the isocode of the new countryCountryConsistencyCheckException - if the isocode is not unique within the countries@Deprecated public java.util.Set<Country> getAllCountries()
CommonI18NService.getAllCountries() instead.Collection of all countries.Collection of all countries@Deprecated public java.util.Set<Country> getActiveCountries()
CommonI18NService.getAllCountries() instead.Collection of all active countries.Collection of all active countries.@Deprecated public Region getRegionByCode(java.lang.String code) throws JaloItemNotFoundException, JaloSystemException
CommonI18NService.getRegion(de.hybris.platform.core.model.c2l.CountryModel, String)
instead.Region with the specified code. If there exists no Region with the specified
code, a JaloItemNotFoundException is thrown.
If there are more than one Region with the specified code, a JaloSystemException is
thrown.code - the code of the searched RegionRegion with the specified codeJaloItemNotFoundException - if there exists no Region with the specified codeJaloSystemException - if there are more than one Region with the specified code@Deprecated public java.util.Collection<Region> getRegionsByCode(java.lang.String code)
CommonI18NService.getRegion(de.hybris.platform.core.model.c2l.CountryModel, String)
instead.Collection of regions which match the specified code code.code - the code of the searched regionsCollection of regions which match the specified code code@Deprecated public Region getRegionByCode(Country country, java.lang.String code) throws JaloItemNotFoundException
CommonI18NService.getRegion(de.hybris.platform.core.model.c2l.CountryModel, String)
instead.Region with the specified code which is assigned to the specified Country.
Throws a JaloItemNotFoundException if no matching Region is found.country - the Country, the Region should belong tocode - the code of the searched regionRegion with the specified code which is assigned to the specified Country.JaloItemNotFoundException - if no matching Region is found@Deprecated public Region createRegion(java.lang.String code, Country country) throws ConsistencyCheckException
Country.addNewRegion(String) insteadCountry with the given code.code - the code of the new Regioncountry - the Country the new Region belongs toRegionConsistencyCheckException - if a Region with the specified code already exists for the specified Country@Deprecated public Region createRegion(PK pkBase, java.lang.String code, Country country) throws ConsistencyCheckException
RegionModel creation instead see also model saving example.Country with the given code.pkBase - the primary key of the new region. Must be unique.code - the code of the new Regioncountry - the Country the new Region belongs toRegionConsistencyCheckException - if a Region with the specified code already exists for the specified Country@Deprecated public java.util.Collection<Region> getRegions(Country country)
GeneratedCountry.getRegions() insteadCollection of all regions which are assigned to the specified Country.country - the Country whose regions should be returnedCollection of all regions which are assigned to the specified Country@Deprecated public java.util.Set<Region> getAllRegions()
CommonI18NService.getAllRegions() instead.Collection of all regions, regardless which Country they belong to.Collection of all regions, regardless which Country they belong to@Deprecated public java.util.Set<Region> getActiveRegions()
CommonI18NService.getAllRegions() instead.Collection of all active regions, regardless which Country they belong to.Collection of all active regions, regardless which Country they belong topublic java.lang.Object writeReplace()
throws java.io.ObjectStreamException
writeReplace in class Managerjava.io.ObjectStreamExceptionprotected void notifyItemRemoval(SessionContext ctx, Item item)
ManagerManager.checkBeforeItemRemoval(SessionContext, Item) instead.
This method does nothing and may be overridden.
notifyItemRemoval in class Managerctx - the currency session contextitem - the item which is going to be removedCopyright © 2018 SAP SE. All Rights Reserved.