Class ZoneDeliveryModeManager
- java.lang.Object
-
- de.hybris.platform.jalo.Manager
-
- de.hybris.platform.jalo.extension.Extension
-
- de.hybris.platform.deliveryzone.jalo.GeneratedZoneDeliveryModeManager
-
- de.hybris.platform.deliveryzone.jalo.ZoneDeliveryModeManager
-
- All Implemented Interfaces:
ItemLifecycleListener,java.io.Serializable
public class ZoneDeliveryModeManager extends GeneratedZoneDeliveryModeManager
The manager class of the zonedelivery Extension.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.extension.Extension
Extension.RestrictedLanguagesProvider, Extension.RightsProvider
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.Manager
Manager.GenericManagerSingletonCreator, Manager.ManagerSingletonCreator
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.deliveryzone.jalo.GeneratedZoneDeliveryModeManager
DEFAULT_INITIAL_ATTRIBUTES, ZONECOUNTRYRELATION_MARKMODIFIED, ZONECOUNTRYRELATION_SRC_ORDERED, ZONECOUNTRYRELATION_TGT_ORDERED
-
-
Constructor Summary
Constructors Constructor Description ZoneDeliveryModeManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidcheckBeforeItemRemoval(SessionContext ctx, Item item)Superclass method overridden to avoid calls to ejb layer.ZonecreateZone(java.lang.String zoneCode)Creates a new zone.java.util.Collection<Zone>getAllZones()Returns all zones within the system.java.util.CollectiongetCurrencies(ZoneDeliveryMode mode, Zone zone)Deprecated.since ages - useZoneDeliveryMode.getCurrencies(Zone)static ZoneDeliveryModeManagergetInstance()java.util.MapgetValues(ZoneDeliveryMode mode, Currency curr, Zone zone)Deprecated.since ages - useZoneDeliveryMode.getValues(Currency, Zone)ZonegetZone(java.lang.String code)Locates a zone by its code.java.util.CollectiongetZones(ZoneDeliveryMode mode)Deprecated.since ages - useZoneDeliveryMode.getZones()booleanisCreatorDisabled()Part ofDataCreatorinterface.protected voidnotifyItemRemoval(SessionContext ctx, Item item)Deprecated.since ages - Since 4.3 cascading removal is handled by the remove interceptors on Zone and Currency.booleanremoveCost(ZoneDeliveryMode mode, Currency curr, double min, Zone zone)Deprecated.since ages - useZoneDeliveryMode.removeCost(Currency, double, Zone)ZoneDeliveryModeValuesetCost(ZoneDeliveryMode mode, Currency curr, double min, double value, Zone zone)Deprecated.since ages - useZoneDeliveryMode.setCost(Currency, double, double, Zone)-
Methods inherited from class de.hybris.platform.deliveryzone.jalo.GeneratedZoneDeliveryModeManager
addToZones, addToZones, createZone, createZone, createZoneDeliveryMode, createZoneDeliveryMode, createZoneDeliveryModeValue, createZoneDeliveryModeValue, getDefaultAttributeModes, getName, getZones, getZones, getZonesCount, getZonesCount, removeFromZones, removeFromZones, setZones, setZones
-
Methods inherited from class de.hybris.platform.jalo.extension.Extension
createEssentialData, createProjectData, createSampleData, getCreatorDescription, getCreatorName, getCreatorParameterDefault, getCreatorParameterNames, getCreatorParameterPossibleValues, getRemote, notifyInitializationEnd, notifyInitializationStart, onFirstSessionCreation, writeReplace
-
Methods inherited from class de.hybris.platform.jalo.Manager
afterItemCreation, beforeItemCreation, destroy, extractNonRequiredRemoteFromItem, extractRequiredRemoteFromItem, getAllValuesSessionContext, getAttribute, getAttributeMap, getFirstItemByAttribute, getFirstItemByAttribute, getRemoteManagerClass, getSession, getSingletonManagerInstance, getTenant, getTransientObject, getTransientObjectMap, init, setAttribute, setTenant, setTransientObject, wrap
-
-
-
-
Method Detail
-
getInstance
public static ZoneDeliveryModeManager getInstance()
- Returns:
- instance of this manager
-
checkBeforeItemRemoval
protected void checkBeforeItemRemoval(SessionContext ctx, Item item) throws ConsistencyCheckException
Superclass method overridden to avoid calls to ejb layer.- Overrides:
checkBeforeItemRemovalin classExtension- Parameters:
ctx- the current session contextitem- the item which should be removed- Throws:
ConsistencyCheckException- thrown to abort removal due to consistency errors
-
notifyItemRemoval
@Deprecated protected void notifyItemRemoval(SessionContext ctx, Item item)
Deprecated.since ages - Since 4.3 cascading removal is handled by the remove interceptors on Zone and Currency.Superclass method overridden to avoid calls to ejb layer except forCountry,Zone,CurrencyandDeliveryModeinstances.- Overrides:
notifyItemRemovalin classExtension- Parameters:
ctx- the currency session contextitem- the item which is going to be removed
-
getZone
public Zone getZone(java.lang.String code)
Locates a zone by its code. Please note that this method simply returns the first zone which matches the code even if there are multiple ones with the same code.- Parameters:
code-
-
getAllZones
public java.util.Collection<Zone> getAllZones()
Returns all zones within the system.
-
createZone
public Zone createZone(java.lang.String zoneCode) throws ConsistencyCheckException
Creates a new zone.- Parameters:
zoneCode- the code of the new zone. must be unique- Throws:
ConsistencyCheckException- if the specified code is already used
-
setCost
@Deprecated public ZoneDeliveryModeValue setCost(ZoneDeliveryMode mode, Currency curr, double min, double value, Zone zone) throws JaloDeliveryModeException
Deprecated.since ages - useZoneDeliveryMode.setCost(Currency, double, double, Zone)- Throws:
JaloDeliveryModeException
-
removeCost
@Deprecated public boolean removeCost(ZoneDeliveryMode mode, Currency curr, double min, Zone zone) throws JaloDeliveryModeException
Deprecated.since ages - useZoneDeliveryMode.removeCost(Currency, double, Zone)- Throws:
JaloDeliveryModeException
-
getValues
@Deprecated public java.util.Map getValues(ZoneDeliveryMode mode, Currency curr, Zone zone) throws JaloDeliveryModeException
Deprecated.since ages - useZoneDeliveryMode.getValues(Currency, Zone)- Throws:
JaloDeliveryModeException
-
getCurrencies
@Deprecated public java.util.Collection getCurrencies(ZoneDeliveryMode mode, Zone zone) throws JaloDeliveryModeException
Deprecated.since ages - useZoneDeliveryMode.getCurrencies(Zone)- Throws:
JaloDeliveryModeException
-
getZones
@Deprecated public java.util.Collection getZones(ZoneDeliveryMode mode)
Deprecated.since ages - useZoneDeliveryMode.getZones()
-
isCreatorDisabled
public boolean isCreatorDisabled()
Part ofDataCreatorinterface. Returnstrue.- Overrides:
isCreatorDisabledin classExtension- Returns:
true
-
-