Class DefaultScheduledJobContextService
java.lang.Object
com.broadleafcommerce.data.tracking.core.service.scheduledjob.DefaultScheduledJobContextService
- All Implemented Interfaces:
ScheduledJobContextService
The default implementation of
ScheduledJobContextService.- Author:
- Dima Myroniuk (dmyroniuk)
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultScheduledJobContextService(com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionbuildContextInfo(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef, OperationType operationType) Creates theContextInfofor the specified scheduled job with the specified change operation andScheduledJobRef.getTenantId().protected ContextInfocreateContextInfo(OperationType operationType) protected ContextRequestprotected List<ContextRequestHydrator>protected com.broadleafcommerce.common.extension.data.DataRouteReferenceprotected com.broadleafcommerce.common.extension.TypeFactoryprotected ContextRequesthydrate(ContextRequest contextRequest) voidsetContextRequestHydratorProvider(org.springframework.beans.factory.ObjectProvider<ContextRequestHydrator> contextRequestHydratorProvider) voidsetReference(com.broadleafcommerce.common.extension.data.DataRouteReference reference) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.data.tracking.core.service.scheduledjob.ScheduledJobContextService
buildCreateContextInfo, buildDeleteContextInfo, buildReadContextInfo, buildUpdateContextInfo
-
Constructor Details
-
DefaultScheduledJobContextService
public DefaultScheduledJobContextService(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
getContextRequestHydrators
-
buildContextInfo
public ContextInfo buildContextInfo(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef, OperationType operationType) Creates theContextInfofor the specified scheduled job with the specified change operation andScheduledJobRef.getTenantId().- Specified by:
buildContextInfoin interfaceScheduledJobContextService- Parameters:
scheduledJobRef- the scheduled job to build theContextInfooperationType- the operation type for theContextInfo- Returns:
- the
ContextInfofor the specified scheduled job with the specified change operation
-
createContextInfo
-
createContextRequest
-
hydrate
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory() -
setContextRequestHydratorProvider
@Autowired public void setContextRequestHydratorProvider(org.springframework.beans.factory.ObjectProvider<ContextRequestHydrator> contextRequestHydratorProvider) -
setReference
@Autowired public void setReference(@Nullable com.broadleafcommerce.common.extension.data.DataRouteReference reference) -
getReference
@Nullable protected com.broadleafcommerce.common.extension.data.DataRouteReference getReference()
-