Package com.hybris.backoffice.wizard
Class MultiMediaReferenceCreateHandler
- java.lang.Object
-
- com.hybris.backoffice.wizard.MediaReferenceCreateHandler
-
- com.hybris.backoffice.wizard.MultiMediaReferenceCreateHandler
-
- All Implemented Interfaces:
com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
public class MultiMediaReferenceCreateHandler extends MediaReferenceCreateHandler
Wizard handler which allows to crete multipleMediaModelfor uploaded content collection. It uses the same parameters as parent class and following one:- append - if true then created medias will be appended to current value
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringPARAM_APPEND-
Fields inherited from class com.hybris.backoffice.wizard.MediaReferenceCreateHandler
EVENT_CREATE_MEDIA_REFERENCE, NOTIFICATION_SOURCE, PARAM_CATALOG_VERSION, PARAM_MEDIA_CODE_EXP, PARAM_MEDIA_CONTAINER, PARAM_MEDIA_CONTENT_PROPERTY, PARAM_MEDIA_FOLDER, PARAM_MEDIA_FORMAT, PARAM_MEDIA_PROPERTY, PARAM_MEDIA_TYPE, PARAM_SAVE_PARENT_OBJECT, PARAM_THROW_EXCEPTIONS_ON_ERROR
-
-
Constructor Summary
Constructors Constructor Description MultiMediaReferenceCreateHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<MediaModel>createMediaCollection(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, java.util.Map<java.lang.String,java.lang.String> params, java.lang.String mediaProperty)protected java.util.Optional<java.util.List<MediaModel>>createMediasForContent(java.util.List<com.hybris.cockpitng.editor.defaultfileupload.FileUploadResult> uploadedMediaList, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, java.util.Map<java.lang.String,java.lang.String> params)protected booleanisAppendMode(java.util.Map<java.lang.String,java.lang.String> params)voidperform(com.hybris.cockpitng.config.jaxb.wizard.CustomType customType, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, java.util.Map<java.lang.String,java.lang.String> params)protected java.lang.StringtoFilesNames(java.util.Collection<com.hybris.cockpitng.editor.defaultfileupload.FileUploadResult> mediasContent)-
Methods inherited from class com.hybris.backoffice.wizard.MediaReferenceCreateHandler
beginTransaction, commitTransaction, createMediaReference, createMediaReference, generateMediaCode, getCatalogVersion, getExpressionResolverFactory, getFolder, getMediaContainer, getMediaContent, getMediaFormat, getMediaProperty, getMediaService, getMediaType, getNotificationService, getObjectFacade, getPropertyValue, getReferenceParent, getReferenceProperty, getRetryCount, getTypeService, isCatalogVersionRequired, isSaveParentObjectEnabled, notifyCreateMediaFailed, rethrowExceptionsIfEnabled, rollbackTransaction, saveReference, setExpressionResolverFactory, setMediaContent, setMediaService, setNotificationService, setObjectFacade, setRetryCount, setTypeService, tryToCreateMedia
-
-
-
-
Field Detail
-
PARAM_APPEND
protected static final java.lang.String PARAM_APPEND
- See Also:
- Constant Field Values
-
-
Method Detail
-
perform
public void perform(com.hybris.cockpitng.config.jaxb.wizard.CustomType customType, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, java.util.Map<java.lang.String,java.lang.String> params)- Specified by:
performin interfacecom.hybris.cockpitng.widgets.configurableflow.FlowActionHandler- Overrides:
performin classMediaReferenceCreateHandler
-
createMediasForContent
protected java.util.Optional<java.util.List<MediaModel>> createMediasForContent(java.util.List<com.hybris.cockpitng.editor.defaultfileupload.FileUploadResult> uploadedMediaList, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, java.util.Map<java.lang.String,java.lang.String> params)
-
createMediaCollection
protected java.util.List<MediaModel> createMediaCollection(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, java.util.Map<java.lang.String,java.lang.String> params, java.lang.String mediaProperty)
-
isAppendMode
protected boolean isAppendMode(java.util.Map<java.lang.String,java.lang.String> params)
-
toFilesNames
protected java.lang.String toFilesNames(java.util.Collection<com.hybris.cockpitng.editor.defaultfileupload.FileUploadResult> mediasContent)
-
-