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
,java.io.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 theWarehousingCommentService
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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
DOMAIN_CODE
protected static java.lang.String
DOMAIN_NAME
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManager
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant
-
-
Constructor Summary
Constructors Constructor Description AbstractWarehousingCommentService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommentModel
createAndSaveComment(WarehousingCommentContext context, java.lang.String code)
Create and save the comment subject, text, code and creation time in the associated item.CommentTypeModel
getOrCreateCommentType(WarehousingCommentEventType eventType)
Get the comment type for the requestedWarehousingCommentEventType
ComponentModel
getOrCreateComponent(WarehousingCommentEventType eventType)
Get the component for the requestedWarehousingCommentEventType
DomainModel
getOrCreateDomainForCodeWarehousing()
Get the domain with code "warehousing"protected TimeService
getTimeService()
protected UserService
getUserService()
void
setTimeService(TimeService timeService)
void
setUserService(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, setFlexibleSearchService
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManager
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods 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 Detail
-
DOMAIN_CODE
protected static final java.lang.String DOMAIN_CODE
- See Also:
- Constant Field Values
-
DOMAIN_NAME
protected static final java.lang.String DOMAIN_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
createAndSaveComment
public CommentModel createAndSaveComment(WarehousingCommentContext context, java.lang.String code)
Description copied from interface:WarehousingCommentService
Create and save the comment subject, text, code and creation time in the associated item.- Specified by:
createAndSaveComment
in interfaceWarehousingCommentService
- Parameters:
context
- the comment context to process; cannot be nullcode
- the comment code- Returns:
- the created
CommentModel
-
getOrCreateDomainForCodeWarehousing
public DomainModel getOrCreateDomainForCodeWarehousing()
Description copied from interface:WarehousingCommentService
Get the domain with code "warehousing"- Specified by:
getOrCreateDomainForCodeWarehousing
in interfaceWarehousingCommentService
- Returns:
- the domain model
-
getOrCreateCommentType
public CommentTypeModel getOrCreateCommentType(WarehousingCommentEventType eventType)
Description copied from interface:WarehousingCommentService
Get the comment type for the requestedWarehousingCommentEventType
- Specified by:
getOrCreateCommentType
in interfaceWarehousingCommentService
- Parameters:
eventType
- - the event type specifying the comment type code and name- Returns:
- the requested comment type model
-
getOrCreateComponent
public ComponentModel getOrCreateComponent(WarehousingCommentEventType eventType)
Description copied from interface:WarehousingCommentService
Get the component for the requestedWarehousingCommentEventType
- Specified by:
getOrCreateComponent
in interfaceWarehousingCommentService
- Parameters:
eventType
- - the event type specifying the component code and name- Returns:
- the requested component model
-
getTimeService
protected TimeService getTimeService()
-
setTimeService
public void setTimeService(TimeService timeService)
-
getUserService
protected UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
-