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,Serializable
The manager class of the zonedelivery Extension.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.jalo.extension.Extension
Extension.RestrictedLanguagesProvider, Extension.RightsProviderNested 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckBeforeItemRemoval(SessionContext ctx, Item item) Superclass method overridden to avoid calls to ejb layer.createZone(String zoneCode) Creates a new zone.Returns all zones within the system.getCurrencies(ZoneDeliveryMode mode, Zone zone) Deprecated.static ZoneDeliveryModeManagergetValues(ZoneDeliveryMode mode, Currency curr, Zone zone) Deprecated.since ages - useZoneDeliveryMode.getValues(Currency, Zone)Locates a zone by its code.getZones(ZoneDeliveryMode mode) Deprecated.since ages - useZoneDeliveryMode.getZones()booleanPart 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)setCost(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, setZonesMethods inherited from class de.hybris.platform.jalo.extension.Extension
checkBeforeInitialization, createEssentialData, createProjectData, createSampleData, getCreatorDescription, getCreatorName, getCreatorParameterDefault, getCreatorParameterNames, getCreatorParameterPossibleValues, getRemote, notifyInitializationEnd, notifyInitializationStart, onFirstSessionCreation, writeReplaceMethods 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
-
Constructor Details
-
ZoneDeliveryModeManager
public ZoneDeliveryModeManager()
-
-
Method Details
-
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(since="ages", forRemoval=false) 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
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
Returns all zones within the system. -
createZone
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(since="ages", forRemoval=false) 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(since="ages", forRemoval=false) 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(since="ages", forRemoval=false) public Map getValues(ZoneDeliveryMode mode, Currency curr, Zone zone) throws JaloDeliveryModeException Deprecated.since ages - useZoneDeliveryMode.getValues(Currency, Zone)- Throws:
JaloDeliveryModeException
-
getCurrencies
@Deprecated(since="ages", forRemoval=false) public Collection getCurrencies(ZoneDeliveryMode mode, Zone zone) throws JaloDeliveryModeException Deprecated.since ages - useZoneDeliveryMode.getCurrencies(Zone)- Throws:
JaloDeliveryModeException
-
getZones
Deprecated.since ages - useZoneDeliveryMode.getZones() -
isCreatorDisabled
public boolean isCreatorDisabled()Part ofDataCreatorinterface. Returnstrue.- Overrides:
isCreatorDisabledin classExtension- Returns:
true
-
ZoneDeliveryMode.getCurrencies(Zone)