Class ModelNotification

java.lang.Object
org.apache.ofbiz.service.ModelNotification

public class ModelNotification extends Object
ModelNotification
  • Constructor Details

    • ModelNotification

      public ModelNotification()
  • Method Details

    • getNotificationGroupName

      public String getNotificationGroupName()
      Gets notification group name.
      Returns:
      the notification group name
    • setNotificationGroupName

      public void setNotificationGroupName(String notificationGroupName)
      Sets notification group name.
      Parameters:
      notificationGroupName - the notification group name
    • getNotificationEvent

      public String getNotificationEvent()
      Gets notification event.
      Returns:
      the notification event
    • setNotificationEvent

      public void setNotificationEvent(String notificationEvent)
      Sets notification event.
      Parameters:
      notificationEvent - the notification event
    • getNotificationMode

      public String getNotificationMode()
      Gets notification mode.
      Returns:
      the notification mode
    • setNotificationMode

      public void setNotificationMode(String notificationMode)
      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 dctx
      model - the model
      context - the context
      result - the result
    • buildContext

      public Map<String,Object> buildContext(Map<String,? extends Object> context, Map<String,Object> result, ModelService model) throws GenericServiceException
      Build context map.
      Parameters:
      context - the context
      result - the result
      model - the model
      Returns:
      the map
      Throws:
      GenericServiceException - the generic service exception
    • buildTo

      public String buildTo()
      Build to string.
      Returns:
      the string
    • buildCc

      public String buildCc()
      Build cc string.
      Returns:
      the string
    • buildBcc

      public String buildBcc()
      Build bcc string.
      Returns:
      the string
    • buildFrom

      public String buildFrom()
      Build from string.
      Returns:
      the string
    • getSubject

      public String getSubject()
      Gets subject.
      Returns:
      the subject
    • getScreen

      public String getScreen()
      Gets screen.
      Returns:
      the screen
    • getService

      public String getService()
      Gets service.
      Returns:
      the service
    • getNotificationGroup

      public static NotificationGroup getNotificationGroup(String group) throws GenericConfigException
      Throws:
      GenericConfigException