T - The type of item that this business process service is used for.public abstract class AbstractWarehousingCommentService<T extends ItemModel> extends DefaultCommentService implements WarehousingCommentService<T>
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.AbstractService.SerializableDTO| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DOMAIN_CODE |
protected static java.lang.String |
DOMAIN_NAME |
modelService, sessionService, txManagertenant| Constructor and Description |
|---|
AbstractWarehousingCommentService() |
| Modifier and Type | Method and 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 requested
WarehousingCommentEventType |
ComponentModel |
getOrCreateComponent(WarehousingCommentEventType eventType)
Get the component for the requested
WarehousingCommentEventType |
DomainModel |
getOrCreateDomainForCodeWarehousing()
Get the domain with code "warehousing"
|
protected TimeService |
getTimeService() |
protected UserService |
getUserService() |
void |
setTimeService(TimeService timeService) |
void |
setUserService(UserService userService) |
createReply, getAvailableCommentTypes, getCommentDao, getComments, getComments, getComments, getComments, getCommentTypeByCode, getCommentTypeForCode, getComponentByCode, getComponentForCode, getDirectReplies, getDomainByCode, getDomainForCode, getFlexibleSearchService, getItemComments, getItemComments, getItemComments, getItemComments, getUserSetting, setCommentDao, setFlexibleSearchServicegetModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateReply, getAvailableCommentTypes, getComments, getComments, getComments, getComments, getCommentTypeByCode, getCommentTypeForCode, getComponentByCode, getComponentForCode, getDirectReplies, getDomainByCode, getDomainForCode, getItemComments, getItemComments, getItemComments, getItemComments, getUserSettingprotected static final java.lang.String DOMAIN_CODE
protected static final java.lang.String DOMAIN_NAME
public CommentModel createAndSaveComment(WarehousingCommentContext context, java.lang.String code)
WarehousingCommentServicecreateAndSaveComment in interface WarehousingCommentService<T extends ItemModel>context - the comment context to process; cannot be nullcode - the comment codeCommentModelpublic DomainModel getOrCreateDomainForCodeWarehousing()
WarehousingCommentServicegetOrCreateDomainForCodeWarehousing in interface WarehousingCommentService<T extends ItemModel>public CommentTypeModel getOrCreateCommentType(WarehousingCommentEventType eventType)
WarehousingCommentServiceWarehousingCommentEventTypegetOrCreateCommentType in interface WarehousingCommentService<T extends ItemModel>eventType - - the event type specifying the comment type code and namepublic ComponentModel getOrCreateComponent(WarehousingCommentEventType eventType)
WarehousingCommentServiceWarehousingCommentEventTypegetOrCreateComponent in interface WarehousingCommentService<T extends ItemModel>eventType - - the event type specifying the component code and nameprotected TimeService getTimeService()
public void setTimeService(TimeService timeService)
protected UserService getUserService()
public void setUserService(UserService userService)
Copyright © 2018 SAP SE. All Rights Reserved.