Package org.apache.ofbiz.service
Class ModelNotification
java.lang.Object
org.apache.ofbiz.service.ModelNotification
ModelNotification
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildBcc()
Build bcc string.buildCc()
Build cc string.buildContext
(Map<String, ? extends Object> context, Map<String, Object> result, ModelService model) Build context map.Build from string.buildTo()
Build to string.void
callNotify
(DispatchContext dctx, ModelService model, Map<String, ? extends Object> context, Map<String, Object> result) Call notify.Gets notification event.static NotificationGroup
getNotificationGroup
(String group) Gets notification group name.Gets notification mode.Gets screen.Gets service.Gets subject.void
setNotificationEvent
(String notificationEvent) Sets notification event.void
setNotificationGroupName
(String notificationGroupName) Sets notification group name.void
setNotificationMode
(String notificationMode) Sets notification mode.
-
Constructor Details
-
ModelNotification
public ModelNotification()
-
-
Method Details
-
getNotificationGroupName
Gets notification group name.- Returns:
- the notification group name
-
setNotificationGroupName
Sets notification group name.- Parameters:
notificationGroupName
- the notification group name
-
getNotificationEvent
Gets notification event.- Returns:
- the notification event
-
setNotificationEvent
Sets notification event.- Parameters:
notificationEvent
- the notification event
-
getNotificationMode
Gets notification mode.- Returns:
- the notification mode
-
setNotificationMode
Sets notification mode.- Parameters:
notificationMode
- the notification mode
-
callNotify
public void callNotify(DispatchContext dctx, ModelService model, Map<String, ? extends Object> context, Map<String, Object> result) Call notify.- Parameters:
dctx
- the dctxmodel
- the modelcontext
- the contextresult
- the result
-
buildContext
public Map<String,Object> buildContext(Map<String, ? extends Object> context, Map<String, throws GenericServiceExceptionObject> result, ModelService model) Build context map.- Parameters:
context
- the contextresult
- the resultmodel
- the model- Returns:
- the map
- Throws:
GenericServiceException
- the generic service exception
-
buildTo
Build to string.- Returns:
- the string
-
buildCc
Build cc string.- Returns:
- the string
-
buildBcc
Build bcc string.- Returns:
- the string
-
buildFrom
Build from string.- Returns:
- the string
-
getSubject
Gets subject.- Returns:
- the subject
-
getScreen
Gets screen.- Returns:
- the screen
-
getService
Gets service.- Returns:
- the service
-
getNotificationGroup
- Throws:
GenericConfigException
-