Class SerialVoucherCodesGeneratorInset
java.lang.Object
de.hybris.platform.voucher.backoffice.cockpitng.editor.insets.SerialVoucherCodesGeneratorInset
- All Implemented Interfaces:
com.hybris.cockpitng.editors.CockpitEditorRenderer<Object>
public class SerialVoucherCodesGeneratorInset
extends Object
implements com.hybris.cockpitng.editors.CockpitEditorRenderer<Object>
Inset for generating serial voucher codes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringstatic final Stringprotected static final Stringstatic final Stringprotected static final StringFields inherited from interface com.hybris.cockpitng.editors.CockpitEditorRenderer
INITIAL_EDIT_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MediaModelcreateMedia(List<String> codes, String actionCode, int quantity) protected voidgenerateVoucherCodes(SerialVoucherModel serialVoucher, Integer quantity) protected MediaServiceprotected VoucherModelServiceprotected booleanisDisabled(SerialVoucherModel serialVoucher) voidrender(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.editors.EditorContext<Object> context, com.hybris.cockpitng.editors.EditorListener<Object> listener) voidsetMediaService(MediaService mediaService) voidsetModelService(ModelService modelService) voidsetVoucherModelService(VoucherModelService voucherModelService)
-
Field Details
-
ERROR_WRONG_PARENT_TYPE_MSG
- See Also:
-
EDITOR_PLACEHOLDER
- See Also:
-
GENERATE_BUTTON_LABEL
- See Also:
-
UNEXPECTED_ERROR_MSG
- See Also:
-
INSET_SCLASS
- See Also:
-
BUTTON_SCLASS
- See Also:
-
TEXTBOX_SCLASS
- See Also:
-
PARENT_OBJECT_PARAM
- See Also:
-
CURRENT_OBJECT_PARAM
- See Also:
-
-
Constructor Details
-
SerialVoucherCodesGeneratorInset
public SerialVoucherCodesGeneratorInset()
-
-
Method Details
-
render
public void render(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.editors.EditorContext<Object> context, com.hybris.cockpitng.editors.EditorListener<Object> listener) - Specified by:
renderin interfacecom.hybris.cockpitng.editors.CockpitEditorRenderer<Object>
-
generateVoucherCodes
protected void generateVoucherCodes(SerialVoucherModel serialVoucher, Integer quantity) throws IOException, JaloBusinessException - Throws:
IOExceptionJaloBusinessException
-
createMedia
-
isDisabled
-
getModelService
-
setModelService
-
getVoucherModelService
-
setVoucherModelService
-
getMediaService
-
setMediaService
-