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
ConstructorDescriptionDefaultScheduledJobContextService
(com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionbuildContextInfo
(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef, OperationType operationType) Creates theContextInfo
for the specified scheduled job with the specified change operation andScheduledJobRef.getTenantId()
.protected ContextInfo
createContextInfo
(OperationType operationType) protected ContextRequest
protected List<ContextRequestHydrator>
protected com.broadleafcommerce.common.extension.data.DataRouteReference
protected com.broadleafcommerce.common.extension.TypeFactory
protected ContextRequest
hydrate
(ContextRequest contextRequest) void
setContextRequestHydratorProvider
(org.springframework.beans.factory.ObjectProvider<ContextRequestHydrator> contextRequestHydratorProvider) void
setReference
(com.broadleafcommerce.common.extension.data.DataRouteReference reference) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 theContextInfo
for the specified scheduled job with the specified change operation andScheduledJobRef.getTenantId()
.- Specified by:
buildContextInfo
in interfaceScheduledJobContextService
- Parameters:
scheduledJobRef
- the scheduled job to build theContextInfo
operationType
- the operation type for theContextInfo
- Returns:
- the
ContextInfo
for 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()
-