Package ru.bgcrm.plugin.mobile

# Class ExpressionObject

java.lang.Object
org.bgerp.dao.expression.ExpressionContextAccessingObject
ru.bgcrm.plugin.mobile.ExpressionObject

All Implemented Interfaces:
  `ExpressionObject`

public class ExpressionObject extends ExpressionContextAccessingObject

- ## Field Summary

  ### Fields inherited from class org.bgerp.dao.expression.ExpressionContextAccessingObject

  `context`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `sendMessageToExecutors(String subject, String text)`
  Sends mobile app push notification to executors, except ones from the current `DynActionForm`.
  `void`
  `sendMessageToUsers(String subject, String text, Iterable<Integer> userIds)`
  Sends mobile app push notification to executors.
  `void`
  `toContext(Map<String,Object> context)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### toContext

    public void toContext(Map<String,Object> context)
    Specified by:
      `toContext` in interface `ExpressionObject`
    Overrides:
      `toContext` in class `ExpressionContextAccessingObject`

  - ### sendMessageToExecutors

    public void sendMessageToExecutors(String subject, String text) throws SQLException
    Sends mobile app push notification to executors, except ones from the current `DynActionForm`.
    Parameters:
      `subject` - message subject.
      `text` - message text.
    Throws:
      `SQLException`

  - ### sendMessageToUsers

    public void sendMessageToUsers(String subject, String text, Iterable<Integer> userIds) throws SQLException
    Sends mobile app push notification to executors.
    Parameters:
      `subject` - message subject.
      `text` - message text.
      `userIds` - recipient user IDs.
    Throws:
      `SQLException`