com.atomizesoftware.spin.managers.DeviceManagerComponent

DeviceManager

class DeviceManager extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DeviceManager
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DeviceManager(devicePort: String, deviceNotificationsActor: ActorRef)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def createDevice(device: Device)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Try[Device]

    Create device, and generate code based in their serial number and macaddress

    Create device, and generate code based in their serial number and macaddress

    device

    to create

    returns

    Success with created device when Successfull, Failure with exception otherwise

  7. implicit val ec: ExecutionContext { val threadPool: java.util.concurrent.ExecutorService }

  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def generateDeviceCode(device: Device)(implicit s: scala.slick.jdbc.JdbcBackend.Session): String

    Generate Random code for device based in its serial number and macaddress.

    Generate Random code for device based in its serial number and macaddress.

    device

    to generate code

    returns

    the generated code for the device

  12. def generateRandomCode: String

    Generates random code to add to the end of device code

    Generates random code to add to the end of device code

    returns

    a string with 3 aplhanumeric characters

  13. def getAssignedMovements(userIds: String, groupIds: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. val logger: Logger

  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def newMovements(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def notifyDevicesOfAvailableAppUpdate(implicit s: scala.slick.jdbc.JdbcBackend.Session): Unit

    Makes a post request to all registered devices to notify for available update.

    Makes a post request to all registered devices to notify for available update.

    returns

    a list with the response code of the post requests.

  23. def notifyDevicesTo(notification: (DeviceManagerComponent.this)#Notification): Unit

  24. def publishMqttMessage(message: String): Unit

  25. def registerDevice(device: Device)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Try[Device]

    Registers a device.

    Registers a device. If the device doesn't exist, a new device is created. If it exists and is unarchived, it updates the device, if it's archived, an error is thrown.

    device

    to register

    returns

    Success with registered device when Successful, Failure with exception otherwise

  26. def removeDuplicatedIPAddressesFromDevices(device: Device)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Fetches the devices with the provided ip address removes it

    Fetches the devices with the provided ip address removes it

    returns

    true if all devices were updated, false otherwise

  27. def syncCargoTypes(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  28. def syncCargos(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  29. def syncCompanies(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  30. def syncContainerTypes(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  31. def syncContainers(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  32. def syncContracts(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  33. def syncCustomers(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  34. def syncCustomsStatus(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  35. def syncDeviceCurrentUser(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  36. def syncDocumentTypes(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  37. def syncEquipmentTypes(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  38. def syncEquipments(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  39. def syncIncidentTypes(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  40. def syncItemStatuses(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  41. def syncLocationTypes(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  42. def syncLocations(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  43. def syncMobileActions(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  44. def syncMovementStatus(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  45. def syncMovementTypes(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  46. def syncMovements(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  47. def syncOrderStatuses(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  48. def syncOrderTypes(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  49. def syncOrders(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  50. def syncPagesWithDevice(deviceId: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Int

    Makes a post request to a given device to updated mobile pages

    Makes a post request to a given device to updated mobile pages

    returns

    the response code of the post requests.

  51. def syncPagesWithDevices(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  52. def syncPagesWithDevicesHttpOnly(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  53. def syncPrices(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  54. def syncUserDefinedFields(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  55. def syncUsers(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Future[(Device, Int)]]

  56. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  57. def toString(): String

    Definition Classes
    AnyRef → Any
  58. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped