com.atomizesoftware.spin.data.repositories.DeviceRepositoryComponent

DeviceRepositoryImpl

class DeviceRepositoryImpl extends DeviceRepository

Implements functions related to com.atomizesoftware.spin.models.Device

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

Instance Constructors

  1. new DeviceRepositoryImpl(deviceLogsDir: String)

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. def allDevices(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Device]

    Definition Classes
    DeviceRepositoryImplDeviceRepository
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def createLog(deviceId: Long, log: String): String

    Stores a log sent by a given device on the server.

    Stores a log sent by a given device on the server.

    returns

    the filePath of the file created.

    Definition Classes
    DeviceRepositoryImplDeviceRepository
  8. def deleteDevice(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Definition Classes
    DeviceRepositoryImplDeviceRepository
  9. val deviceLogsFile: File

  10. def deviceTotalCountForFilters(filter: String, filterOr: String, search: String, references: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Long

    Gets the number of records that correspond to the complex select statement.

    Gets the number of records that correspond to the complex select statement.

    Definition Classes
    DeviceRepositoryImplDeviceRepository
  11. def deviceWithCode(code: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Device]

    Definition Classes
    DeviceRepositoryImplDeviceRepository
  12. def deviceWithId(id: Long, references: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Device]

    Definition Classes
    DeviceRepositoryImplDeviceRepository
  13. def deviceWithId(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Device]

    Definition Classes
    DeviceRepositoryImplDeviceRepository
  14. def deviceWithMacAddress(macAddress: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Device]

    Gets a device by its mac address.

    Gets a device by its mac address.

    Definition Classes
    DeviceRepositoryImplDeviceRepository
  15. def devicesAndTotalCountForFilters(references: String, filter: String, filterOr: String, search: String, sortBy: String, timeZoneId: String, limit: Int, offset: Int)(implicit s: scala.slick.jdbc.JdbcBackend.Session): (List[Device], Long)

    Returns a tuple with the list of devices that pertain to the selection filters and the total number of matching records that were found.

    Returns a tuple with the list of devices that pertain to the selection filters and the total number of matching records that were found.

    If no limit was imposed in the selection filters, we do not make another query to get the total number of records, as they were already returned.

    Definition Classes
    DeviceRepositoryImplDeviceRepository
  16. def devicesForFilters(references: String, filter: String, filterOr: String, search: String, sortBy: String, timeZoneId: String, limit: Int, offset: Int)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Device]

    Gets a list of com.atomizesoftware.spin.models.Device with the requested filters.

    Gets a list of com.atomizesoftware.spin.models.Device with the requested filters.

    Definition Classes
    DeviceRepositoryImplDeviceRepository
  17. def devicesWithDefinedIPAddress(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Device]

    Returns a list container all devices that have an IP address set

    Returns a list container all devices that have an IP address set

    Definition Classes
    DeviceRepositoryImplDeviceRepository
  18. def devicesWithIPAddress(ipAddress: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Device]

    Returns a list with all the devices with the chosen IP address

    Returns a list with all the devices with the chosen IP address

    Definition Classes
    DeviceRepositoryImplDeviceRepository
  19. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  24. def insertDevice(device: Device)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Try[Device]

    Definition Classes
    DeviceRepositoryImplDeviceRepository
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. val logger: Logger

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

    Definition Classes
    AnyRef
  28. final def notify(): Unit

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

    Definition Classes
    AnyRef
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. val systemSeparator: String

  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. def updateDevice(device: Device)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Updates a com.atomizesoftware.spin.models.Device

    Updates a com.atomizesoftware.spin.models.Device

    If fields are specified, only those are updated, otherwise the whole entity is updated.

    device

    to update

    Definition Classes
    DeviceRepositoryImplDeviceRepository
  34. def updateDevices(devices: List[Device])(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Updates several devices taking into account the fields chosen to be updated.

    Updates several devices taking into account the fields chosen to be updated.

    Definition Classes
    DeviceRepositoryImplDeviceRepository
  35. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DeviceRepository

Inherited from AnyRef

Inherited from Any

Ungrouped