Class SerialVoucherCodesGeneratorInset
- java.lang.Object
-
- de.hybris.platform.voucher.backoffice.cockpitng.editor.insets.SerialVoucherCodesGeneratorInset
-
- All Implemented Interfaces:
com.hybris.cockpitng.editors.CockpitEditorRenderer<java.lang.Object>
public class SerialVoucherCodesGeneratorInset extends java.lang.Object implements com.hybris.cockpitng.editors.CockpitEditorRenderer<java.lang.Object>
Inset for generating serial voucher codes
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BUTTON_SCLASS
protected static java.lang.String
CURRENT_OBJECT_PARAM
protected static java.lang.String
EDITOR_PLACEHOLDER
protected static java.lang.String
ERROR_WRONG_PARENT_TYPE_MSG
protected static java.lang.String
GENERATE_BUTTON_LABEL
static java.lang.String
INSET_SCLASS
protected static java.lang.String
PARENT_OBJECT_PARAM
static java.lang.String
TEXTBOX_SCLASS
protected static java.lang.String
UNEXPECTED_ERROR_MSG
-
Constructor Summary
Constructors Constructor Description SerialVoucherCodesGeneratorInset()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MediaModel
createMedia(java.util.List<java.lang.String> codes, java.lang.String actionCode, int quantity)
protected void
generateVoucherCodes(SerialVoucherModel serialVoucher, java.lang.Integer quantity)
protected MediaService
getMediaService()
ModelService
getModelService()
protected VoucherModelService
getVoucherModelService()
protected boolean
isDisabled(SerialVoucherModel serialVoucher)
void
render(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context, com.hybris.cockpitng.editors.EditorListener<java.lang.Object> listener)
void
setMediaService(MediaService mediaService)
void
setModelService(ModelService modelService)
void
setVoucherModelService(VoucherModelService voucherModelService)
-
-
-
Field Detail
-
ERROR_WRONG_PARENT_TYPE_MSG
protected static final java.lang.String ERROR_WRONG_PARENT_TYPE_MSG
- See Also:
- Constant Field Values
-
EDITOR_PLACEHOLDER
protected static final java.lang.String EDITOR_PLACEHOLDER
- See Also:
- Constant Field Values
-
GENERATE_BUTTON_LABEL
protected static final java.lang.String GENERATE_BUTTON_LABEL
- See Also:
- Constant Field Values
-
UNEXPECTED_ERROR_MSG
protected static final java.lang.String UNEXPECTED_ERROR_MSG
- See Also:
- Constant Field Values
-
INSET_SCLASS
public static final java.lang.String INSET_SCLASS
- See Also:
- Constant Field Values
-
BUTTON_SCLASS
public static final java.lang.String BUTTON_SCLASS
- See Also:
- Constant Field Values
-
TEXTBOX_SCLASS
public static final java.lang.String TEXTBOX_SCLASS
- See Also:
- Constant Field Values
-
PARENT_OBJECT_PARAM
protected static final java.lang.String PARENT_OBJECT_PARAM
- See Also:
- Constant Field Values
-
CURRENT_OBJECT_PARAM
protected static final java.lang.String CURRENT_OBJECT_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
render
public void render(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.editors.EditorContext<java.lang.Object> context, com.hybris.cockpitng.editors.EditorListener<java.lang.Object> listener)
- Specified by:
render
in interfacecom.hybris.cockpitng.editors.CockpitEditorRenderer<java.lang.Object>
-
generateVoucherCodes
protected void generateVoucherCodes(SerialVoucherModel serialVoucher, java.lang.Integer quantity) throws java.io.IOException, JaloBusinessException
- Throws:
java.io.IOException
JaloBusinessException
-
createMedia
protected MediaModel createMedia(java.util.List<java.lang.String> codes, java.lang.String actionCode, int quantity)
-
isDisabled
protected boolean isDisabled(SerialVoucherModel serialVoucher)
-
getModelService
public ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getVoucherModelService
protected VoucherModelService getVoucherModelService()
-
setVoucherModelService
public void setVoucherModelService(VoucherModelService voucherModelService)
-
getMediaService
protected MediaService getMediaService()
-
setMediaService
public void setMediaService(MediaService mediaService)
-
-