Class DefaultScheduledJobContextService
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.core.service.scheduledjob.DefaultScheduledJobContextService
-
- All Implemented Interfaces:
ScheduledJobContextService
public class DefaultScheduledJobContextService extends Object implements ScheduledJobContextService
The default implementation ofScheduledJobContextService
.- Author:
- Dima Myroniuk (dmyroniuk)
-
-
Constructor Summary
Constructors Constructor Description DefaultScheduledJobContextService(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
.protected ContextInfo
createContextInfo(OperationType operationType)
protected ContextRequest
createContextRequest()
protected List<ContextRequestHydrator>
getContextRequestHydrators()
protected com.broadleafcommerce.common.extension.data.DataRouteReference
getReference()
protected com.broadleafcommerce.common.extension.TypeFactory
getTypeFactory()
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
-
-
-
-
Method Detail
-
getContextRequestHydrators
protected List<ContextRequestHydrator> 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
protected ContextInfo createContextInfo(OperationType operationType)
-
createContextRequest
protected ContextRequest createContextRequest()
-
hydrate
protected ContextRequest hydrate(ContextRequest contextRequest)
-
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()
-
-