Class AbstractWarehousingCommentService
java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
de.hybris.platform.comments.services.impl.DefaultCommentService
de.hybris.platform.warehousing.comment.impl.AbstractWarehousingCommentService
- All Implemented Interfaces:
CommentService,WarehousingCommentService,Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
DefaultAsnCommentService,DefaultConsignmentEntryCommentService,DefaultOrderEntryCommentService,DefaultStockLevelCommentService
public abstract class AbstractWarehousingCommentService
extends DefaultCommentService
implements WarehousingCommentService
Abstract implementation of the
WarehousingCommentService provides implementations for comment creation and
initialization. It only requires that subclasses provide a means to obtain the comments associated with the item
model provided.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO -
Field Summary
FieldsFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManagerFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAndSaveComment(WarehousingCommentContext context, String code) Create and save the comment subject, text, code and creation time in the associated item.Get the comment type for the requestedWarehousingCommentEventTypegetOrCreateComponent(WarehousingCommentEventType eventType) Get the component for the requestedWarehousingCommentEventTypeGet the domain with code "warehousing"protected TimeServiceprotected UserServicevoidsetTimeService(TimeService timeService) voidsetUserService(UserService userService) Methods inherited from class de.hybris.platform.comments.services.impl.DefaultCommentService
createReply, getAvailableCommentTypes, getCommentDao, getComments, getComments, getComments, getComments, getCommentTypeByCode, getCommentTypeForCode, getComponentByCode, getComponentForCode, getDirectReplies, getDomainByCode, getDomainForCode, getFlexibleSearchService, getItemComments, getItemComments, getItemComments, getItemComments, getUserSetting, setCommentDao, setFlexibleSearchServiceMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.comments.services.CommentService
createReply, getAvailableCommentTypes, getComments, getComments, getComments, getComments, getCommentTypeByCode, getCommentTypeForCode, getComponentByCode, getComponentForCode, getDirectReplies, getDomainByCode, getDomainForCode, getItemComments, getItemComments, getItemComments, getItemComments, getUserSetting
-
Field Details
-
DOMAIN_CODE
- See Also:
-
DOMAIN_NAME
- See Also:
-
-
Constructor Details
-
AbstractWarehousingCommentService
public AbstractWarehousingCommentService()
-
-
Method Details
-
createAndSaveComment
Description copied from interface:WarehousingCommentServiceCreate and save the comment subject, text, code and creation time in the associated item.- Specified by:
createAndSaveCommentin interfaceWarehousingCommentService- Parameters:
context- the comment context to process; cannot be nullcode- the comment code- Returns:
- the created
CommentModel
-
getOrCreateDomainForCodeWarehousing
Description copied from interface:WarehousingCommentServiceGet the domain with code "warehousing"- Specified by:
getOrCreateDomainForCodeWarehousingin interfaceWarehousingCommentService- Returns:
- the domain model
-
getOrCreateCommentType
Description copied from interface:WarehousingCommentServiceGet the comment type for the requestedWarehousingCommentEventType- Specified by:
getOrCreateCommentTypein interfaceWarehousingCommentService- Parameters:
eventType- - the event type specifying the comment type code and name- Returns:
- the requested comment type model
-
getOrCreateComponent
Description copied from interface:WarehousingCommentServiceGet the component for the requestedWarehousingCommentEventType- Specified by:
getOrCreateComponentin interfaceWarehousingCommentService- Parameters:
eventType- - the event type specifying the component code and name- Returns:
- the requested component model
-
getTimeService
-
setTimeService
-
getUserService
-
setUserService
-