com.atomizesoftware.spin.data.repositories.ContainerRepositoryComponent

ContainerRepositoryImpl

class ContainerRepositoryImpl extends ContainerRepository

Implements functions related to com.atomizesoftware.spin.models.Container and its references: com.atomizesoftware.spin.models.ContainerType, com.atomizesoftware.spin.models.ItemStatus and com.atomizesoftware.spin.models.CustomsStatus

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

Instance Constructors

  1. new ContainerRepositoryImpl()

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

  5. def allContainers(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Container]

  6. def allCustomsStatus(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[CustomsStatus]

  7. def allItemSnapshots(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[MovableItemSnapshot]

  8. def allItemStatuses(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[ItemStatus]

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def containerTotalCountForFilters(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
    ContainerRepositoryImplContainerRepository
  12. def containerTypeTotalCountForFilters(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
    ContainerRepositoryImplContainerRepository
  13. def containerTypeWithId(id: Long, references: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[ContainerType]

  14. def containerTypeWithId(id: Long, filter: String, filterOr: String, references: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[ContainerType]

  15. def containerTypeWithId(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[ContainerType]

  16. def containerTypeWithNumberStandard(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[ContainerType]

  17. def containerTypesForFilters(limit: Int, offset: Int, references: String, filter: String, filterOr: String, search: String, sortBy: String, timeZoneId: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[ContainerType]

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

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

    Definition Classes
    ContainerRepositoryImplContainerRepository
  18. def containerTypesForSync(syncTimestamp: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[ContainerType]

    Gets a list of com.atomizesoftware.spin.models.ContainerType for synchronization with mobile devices.

    Gets a list of com.atomizesoftware.spin.models.ContainerType for synchronization with mobile devices.

    Definition Classes
    ContainerRepositoryImplContainerRepository
  19. def containerWithId(id: Long, filter: String, filterOr: String, references: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Container]

  20. def containerWithId(id: Long, references: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Container]

  21. def containerWithId(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Container]

  22. def containerWithNumber(number: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Container]

    Gets a com.atomizesoftware.spin.models.Container based on its Number.

    Gets a com.atomizesoftware.spin.models.Container based on its Number.

    number

    of the container to get

    returns

    a container if one matches the number, nothing otherwise.

    Definition Classes
    ContainerRepositoryImplContainerRepository
  23. def containersAndTotalCountForFilters(references: String, filter: String, filterOr: String, search: String, sortBy: String, timeZoneId: String, limit: Int, offset: Int)(implicit s: scala.slick.jdbc.JdbcBackend.Session): (List[Container], Long)

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

    Returns a tuple with the list of containers 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
    ContainerRepositoryImplContainerRepository
  24. def containersForFilters(references: String, filter: String, filterOr: String, search: String, sortBy: String, timeZoneId: String, limit: Int, offset: Int)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Container]

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

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

    Definition Classes
    ContainerRepositoryImplContainerRepository
  25. def containersForSync(syncTimestamp: Long, references: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Container]

    Gets a list of com.atomizesoftware.spin.models.Container for synchronization with mobile devices.

    Gets a list of com.atomizesoftware.spin.models.Container for synchronization with mobile devices.

    Definition Classes
    ContainerRepositoryImplContainerRepository
  26. def containersInLocationOfId(locationId: Long, include: String = "")(implicit session: scala.slick.jdbc.JdbcBackend.Session): List[Container]

    Gets the com.atomizesoftware.spin.models.Containers that are in a given location and its children.

    Gets the com.atomizesoftware.spin.models.Containers that are in a given location and its children. The containers that are parked in the given location and its children.

    returns

    a list of containers in the location.

    Definition Classes
    ContainerRepositoryImplContainerRepository
  27. def containersInsideOf(containerId: Long, depth: Int = 1)(implicit session: scala.slick.jdbc.JdbcBackend.Session): List[Container]

    Gets the com.atomizesoftware.spin.models.Containers inside a given parent recursively until the provided depth level.

    Gets the com.atomizesoftware.spin.models.Containers inside a given parent recursively until the provided depth level.

    Definition Classes
    ContainerRepositoryImplContainerRepository
  28. def containersWithNumbers(numbers: List[String])(implicit session: scala.slick.jdbc.JdbcBackend.Session): List[Container]

  29. def containersWithParentOfId(parentId: Long)(implicit session: scala.slick.jdbc.JdbcBackend.Session): List[Container]

    Gets the com.atomizesoftware.spin.models.Containers with a given parent.

    Gets the com.atomizesoftware.spin.models.Containers with a given parent. The containers that are children of the given parent.

    returns

    a list of containers with the given parent.

    Definition Classes
    ContainerRepositoryImplContainerRepository
  30. def customsStatusForFilters(references: String, filter: String, search: String, sortBy: String, timeZoneId: String, limit: Int, offset: Int)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[CustomsStatus]

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

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

    Definition Classes
    ContainerRepositoryImplContainerRepository
  31. def customsStatusForSync(syncTimestamp: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[CustomsStatus]

    Gets a list of com.atomizesoftware.spin.models.CustomsStatus for synchronization with mobile devices.

    Gets a list of com.atomizesoftware.spin.models.CustomsStatus for synchronization with mobile devices.

    Definition Classes
    ContainerRepositoryImplContainerRepository
  32. def customsStatusTotalCountForFilters(filter: 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
    ContainerRepositoryImplContainerRepository
  33. def customsStatusWithCode(code: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): CustomsStatus

    Gets a com.atomizesoftware.spin.models.CustomsStatus by the provided code

    returns

    a com.atomizesoftware.spin.models.CustomsStatus if one is found

    Definition Classes
    ContainerRepositoryImplContainerRepository
    Exceptions thrown
    InternalErrorException

    if no customs status was found.

  34. def customsStatusWithId(id: Long, filter: String, filterOr: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[CustomsStatus]

  35. def customsStatusWithId(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[CustomsStatus]

  36. def defaultItemStatusForCargos()(implicit s: scala.slick.jdbc.JdbcBackend.Session): ItemStatus

    Gets the default com.atomizesoftware.spin.models.ItemStatus.

    returns

    the default item status for cargos.

    Definition Classes
    ContainerRepositoryImplContainerRepository
  37. def defaultItemStatusForContainers()(implicit s: scala.slick.jdbc.JdbcBackend.Session): ItemStatus

    Gets the default com.atomizesoftware.spin.models.ItemStatus.

    returns

    the default item status for containers.

    Definition Classes
    ContainerRepositoryImplContainerRepository
  38. def deleteContainer(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Deletes a container and the associated movable item.

    Deletes a container and the associated movable item.

    id

    of the container to delete.

    Definition Classes
    ContainerRepositoryImplContainerRepository
  39. def deleteContainerType(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

  40. def deleteCustomsStatus(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

  41. def deleteItemStatus(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  47. def insertContainer(container: Container)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Try[Container]

    Creates a container and its associated current detail

    Creates a container and its associated current detail

    returns

    the newly created container with the current detail information.

    Definition Classes
    ContainerRepositoryImplContainerRepository
    Exceptions thrown
    InternalErrorException

    if the container doesn't have current detail information, if we can't create the current detail and if we can't create the container.

  48. def insertContainerType(containerType: ContainerType)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): ContainerType

    Creates a container type.

    Creates a container type.

    returns

    the newly created container type.

    Definition Classes
    ContainerRepositoryImplContainerRepository
    Exceptions thrown
    InternalErrorException

    if we can't create the container type.

  49. def insertCustomsStatus(customsStatus: CustomsStatus)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): CustomsStatus

    Creates a customs status.

    Creates a customs status.

    returns

    the newly created customs status.

    Definition Classes
    ContainerRepositoryImplContainerRepository
    Exceptions thrown
    InternalErrorException

    if we can't create the customs status.

  50. def insertItemSnapshot(snapshot: MovableItemSnapshot)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): MovableItemSnapshot

    Creates a movable item snapshot.

    Creates a movable item snapshot.

    returns

    the newly created movable item snapshot.

    Definition Classes
    ContainerRepositoryImplContainerRepository
    Exceptions thrown
    InternalErrorException

    if we can't create the snapshot.

  51. def insertItemStatus(itemStatus: ItemStatus)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): ItemStatus

    Creates a item status.

    Creates a item status.

    returns

    the newly created item status.

    Definition Classes
    ContainerRepositoryImplContainerRepository
    Exceptions thrown
    InternalErrorException

    if we can't create the item status.

  52. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  53. def itemSnapshotTotalCountForFilters(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
    ContainerRepositoryImplContainerRepository
  54. def itemSnapshotWithId(id: Long, references: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[MovableItemSnapshot]

  55. def itemSnapshotWithId(id: Long, filter: String, filterOr: String, references: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[MovableItemSnapshot]

  56. def itemSnapshotWithId(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[MovableItemSnapshot]

  57. def itemSnapshotsForFilters(references: String, filter: String, filterOr: String, search: String, sortBy: String, timeZoneId: String, limit: Int, offset: Int)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[MovableItemSnapshot]

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

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

    Definition Classes
    ContainerRepositoryImplContainerRepository
  58. def itemStatusWithCode(code: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): ItemStatus

    Gets a Item Status by the provided code

    Gets a Item Status by the provided code

    returns

    a com.atomizesoftware.spin.models.ItemStatus if one is found

    Definition Classes
    ContainerRepositoryImplContainerRepository
    Exceptions thrown
    InternalErrorException

    if no item status was found.

  59. def itemStatusWithId(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[ItemStatus]

  60. def itemStatusesForFilters(limit: Int, offset: Int, references: String, filter: String, filterOr: String, search: String, sortBy: String, timeZoneId: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[ItemStatus]

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

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

    Definition Classes
    ContainerRepositoryImplContainerRepository
  61. def itemStatusesForSync(syncTimestamp: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[ItemStatus]

    Gets a list of com.atomizesoftware.spin.models.ItemStatus for synchronization with mobile devices.

    Gets a list of com.atomizesoftware.spin.models.ItemStatus for synchronization with mobile devices.

    Definition Classes
    ContainerRepositoryImplContainerRepository
  62. def itemStatusesTotalCountForFilters(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
    ContainerRepositoryImplContainerRepository
  63. def locationIdOfContainerWithId(containerId: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Long]

    Gets a container location id.

    Gets a container location id.

    returns

    an Option[Long] representing the location of the container.

    Definition Classes
    ContainerRepositoryImplContainerRepository
    Exceptions thrown
    NotFoundException

    when the container is not found.

  64. def locationIdOfContainersWithIds(containerIds: List[Long])(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Option[Long]]

    Gets the location id of several containers by their ids.

    Gets the location id of several containers by their ids.

    returns

    a list of Option[Long] that represents the location ids of the containers.

    Definition Classes
    ContainerRepositoryImplContainerRepository
    Exceptions thrown
    NotFoundException

    when one of the containers wasn't found.

  65. val logger: Logger

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

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

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

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

    Definition Classes
    AnyRef
  70. def toString(): String

    Definition Classes
    AnyRef → Any
  71. def topMostParentOf(id: Long, timeZoneId: String = "")(implicit session: scala.slick.jdbc.JdbcBackend.Session): Option[Container]

    Gets the top most parent of a movable item

    Gets the top most parent of a movable item

    returns

    a com.atomizesoftware.spin.models.Container if found, None otherwise.

    Definition Classes
    ContainerRepositoryImplContainerRepository
  72. def updateContainer(container: Container)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Updates a container and the associated current movable item.

    Updates a container and the associated current movable item.

    returns

    true if the changes were successful, false otherwise.

    Definition Classes
    ContainerRepositoryImplContainerRepository
  73. def updateContainerType(containerType: ContainerType)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Updates a com.atomizesoftware.spin.models.ContainerType

  74. def updateCustomsStatus(customsStatus: CustomsStatus)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Updates a com.atomizesoftware.spin.models.CustomsStatus

  75. def updateItemSnapshot(snapshot: MovableItemSnapshot)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Updates a com.atomizesoftware.spin.models.MovableItemSnapshot

  76. def updateItemStatus(itemStatus: ItemStatus)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Updates a com.atomizesoftware.spin.models.ItemStatus

  77. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ContainerRepository

Inherited from AnyRef

Inherited from Any

Ungrouped