com.atomizesoftware.spin.data.repositories.MovementRepositoryComponent

MovementRepositoryImpl

class MovementRepositoryImpl extends MovementRepository

Implements functions related to com.atomizesoftware.spin.models.Movement and its related entities: com.atomizesoftware.spin.models.InvoicingStatus, com.atomizesoftware.spin.models.MovementStatus, com.atomizesoftware.spin.models.MovementType and com.atomizesoftware.spin.models.IncidentType

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

Instance Constructors

  1. new MovementRepositoryImpl()

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

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

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

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

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

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def canceledInvoicingStatus()(implicit s: scala.slick.jdbc.JdbcBackend.Session): InvoicingStatus

    Gets the invoicing status corresponding to the canceled status.

    Gets the invoicing status corresponding to the canceled status.

    Definition Classes
    MovementRepositoryImplMovementRepository
  11. def canceledMovementStatus(implicit s: scala.slick.jdbc.JdbcBackend.Session): MovementStatus

    Gets the Canceled movement status, throws an exception if none is found.

    Gets the Canceled movement status, throws an exception if none is found.

    Definition Classes
    MovementRepositoryImplMovementRepository
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def completedDeliveriesCountForDaysWithLateOrOnTimeInformation(days: Int, date: github.nscala_time.time.Imports.DateTime, filter: String = "", filterOr: String, references: String = "", timeZoneId: String = "")(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Map[String, Any]]

    Fetches movements based on the days and date specified and returns them as well as the information about their expected devlivery date and their creation.

    Fetches movements based on the days and date specified and returns them as well as the information about their expected devlivery date and their creation. Telling if the movements were on time or late.

    returns

    a list with a map with the count of late and on time movements as well as the date analised.

    Definition Classes
    MovementRepositoryImplMovementRepository
  14. def completedMovementStatus(implicit s: scala.slick.jdbc.JdbcBackend.Session): MovementStatus

    Gets the Completed movement status, throws an exception if none is found.

    Gets the Completed movement status, throws an exception if none is found.

    Definition Classes
    MovementRepositoryImplMovementRepository
  15. def completedNonInvoicedMovementsWithOrder(orderId: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Movement]

    Gets the movements for a specific order that are completed an non-invoiced

    Gets the movements for a specific order that are completed an non-invoiced

    returns

    a list of movements pertaining to the filters applied.

    Definition Classes
    MovementRepositoryImplMovementRepository
  16. def createLocationIdOfMovementWithId(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Long]

    Gets the movement by id in order to fetch its create location and returns its id.

    Gets the movement by id in order to fetch its create location and returns its id.

    Definition Classes
    MovementRepositoryImplMovementRepository
  17. def createLocationIdOfMovementsWithIds(ids: List[Long])(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Option[Long]]

  18. def defaultMovementStatus()(implicit s: scala.slick.jdbc.JdbcBackend.Session): MovementStatus

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

    returns

    the default movement status.

    Definition Classes
    MovementRepositoryImplMovementRepository
  19. def deleteIncidentType(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

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

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

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

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

  24. def duplicateOf(movement: Movement)(implicit session: scala.slick.jdbc.JdbcBackend.Session): Option[Movement]

    Finds a duplicate for the given movement if one exists.

    Finds a duplicate for the given movement if one exists.

    returns

    the movement if any.

    Definition Classes
    MovementRepositoryImplMovementRepository
  25. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Definition Classes
    AnyRef → Any
  30. def incidentTypeTotalCountForFilters(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
    MovementRepositoryImplMovementRepository
  31. def incidentTypeWithCode(code: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): IncidentType

    Gets a Incident Type by the provided code

    Gets a Incident Type by the provided code

    returns

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

    Definition Classes
    MovementRepositoryImplMovementRepository
    Exceptions thrown
    InternalErrorException

    if no incident type was found.

  32. def incidentTypeWithId(id: Long, references: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[IncidentType]

  33. def incidentTypeWithId(id: Long, filter: String, filterOr: String, references: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[IncidentType]

  34. def incidentTypeWithId(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[IncidentType]

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

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

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

    Definition Classes
    MovementRepositoryImplMovementRepository
  36. def incidentTypesForSync(syncTimestamp: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[IncidentType]

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

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

    Definition Classes
    MovementRepositoryImplMovementRepository
  37. def insertIncidentType(incidentType: IncidentType)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): IncidentType

    Creates an incident type.

    Creates an incident type.

    returns

    the newly created incident type.

    Definition Classes
    MovementRepositoryImplMovementRepository
    Exceptions thrown
    InternalErrorException

    if we can't create the incident type.

  38. def insertInvoicingStatus(status: InvoicingStatus)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Option[Long]

  39. def insertMovement(movement: Movement)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Movement

    Inserts a com.atomizesoftware.spin.models.Movement

  40. def insertMovementStatus(status: MovementStatus)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): MovementStatus

  41. def insertMovementType(movementType: MovementType)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): MovementType

  42. def invoicedInvoicingStatus()(implicit s: scala.slick.jdbc.JdbcBackend.Session): InvoicingStatus

    Gets the invoicing status corresponding to the invoiced status.

    Gets the invoicing status corresponding to the invoiced status.

    Definition Classes
    MovementRepositoryImplMovementRepository
  43. def invoicingStatusTotalCountForFilters(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
    MovementRepositoryImplMovementRepository
  44. def invoicingStatusWithCode(code: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): InvoicingStatus

    Gets a Invoicing Status by the provided code

    Gets a Invoicing Status by the provided code

    returns

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

    Definition Classes
    MovementRepositoryImplMovementRepository
    Exceptions thrown
    InternalErrorException

    if no invoicing status was found.

  45. def invoicingStatusWithId(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[InvoicingStatus]

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

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

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

    Definition Classes
    MovementRepositoryImplMovementRepository
  47. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  48. def mostRecentMovementForEachUser(filter: String = "", filterOr: String = "", references: String = "", timeZoneId: String = "")(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Movement]

    Gets a list of the most recent movement for each user.

    Gets a list of the most recent movement for each user.

    Definition Classes
    MovementRepositoryImplMovementRepository
  49. def movementStatusForSync(syncTimestamp: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[MovementStatus]

  50. def movementStatusTotalCountForFilters(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
    MovementRepositoryImplMovementRepository
  51. def movementStatusWithCode(code: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): MovementStatus

    Gets a Movement Status by the provided code

    Gets a Movement Status by the provided code

    returns

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

    Definition Classes
    MovementRepositoryImplMovementRepository
    Exceptions thrown
    InternalErrorException

    if no movement status was found.

  52. def movementStatusWithId(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[MovementStatus]

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

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

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

    Definition Classes
    MovementRepositoryImplMovementRepository
  54. def movementTypeCountFromDateMinus24Hours(date: github.nscala_time.time.Imports.DateTime, filter: String = "", filterOr: String = "", timeZoneId: String = "")(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[(MovementType, Int)]

    Gets a list with the movement types and a counter of completed movements on the previous 24 hours.

    Gets a list with the movement types and a counter of completed movements on the previous 24 hours.

    Definition Classes
    MovementRepositoryImplMovementRepository
  55. def movementTypeIdsFilterForUser(userId: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): String

    Gets a list of com.atomizesoftware.spin.models.MovementType for the given user

    Gets a list of com.atomizesoftware.spin.models.MovementType for the given user

    Definition Classes
    MovementRepositoryImplMovementRepository
  56. def movementTypeTotalCountForFilters(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
    MovementRepositoryImplMovementRepository
  57. def movementTypeWithCode(code: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): MovementType

    Gets a Movement Type by the provided code

    Gets a Movement Type by the provided code

    returns

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

    Definition Classes
    MovementRepositoryImplMovementRepository
    Exceptions thrown
    InternalErrorException

    if no movement type was found.

  58. def movementTypeWithId(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[MovementType]

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

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

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

    Definition Classes
    MovementRepositoryImplMovementRepository
  60. def movementTypesForSync(syncTimestamp: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[MovementType]

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

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

    Definition Classes
    MovementRepositoryImplMovementRepository
  61. def movementWithId(id: Long, filter: String, filterOr: String, references: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Movement]

  62. def movementWithId(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Movement]

  63. def movementWithId(id: Long, references: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Movement]

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

    Gets a list of com.atomizesoftware.spin.models.Movement with the requested filters for a given user.

    Gets a list of com.atomizesoftware.spin.models.Movement with the requested filters for a given user.

    Definition Classes
    MovementRepositoryImplMovementRepository
  65. def movementsForOrderWithId(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Movement]

    Gets the movements that have an order id equal to the one specified and are not archived.

    Gets the movements that have an order id equal to the one specified and are not archived.

    returns

    a list of non archived movements with the specified order id.

    Definition Classes
    MovementRepositoryImplMovementRepository
  66. def movementsForSync(timestamp: Long, filter: String = "", filterOr: String = "", include: String = "", timeZoneId: String = "")(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Movement]

    Gets all the movements that were changed after the specified timestamp.

    Gets all the movements that were changed after the specified timestamp.

    Definition Classes
    MovementRepositoryImplMovementRepository
  67. def movementsTotalCountForFilters(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
    MovementRepositoryImplMovementRepository
  68. def movementsWithIds(ids: List[Long])(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Movement]

  69. def movementsWithTotalCountForFilters(references: String, filter: String, filterOr: String, search: String, sortBy: String, timeZoneId: String, limit: Int, offset: Int)(implicit s: scala.slick.jdbc.JdbcBackend.Session): (List[Movement], Long)

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

    Returns a tuple with the list of movements 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
    MovementRepositoryImplMovementRepository
  70. final def ne(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef
  74. def toString(): String

    Definition Classes
    AnyRef → Any
  75. def updateIncidentType(incidentType: IncidentType)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Updates a com.atomizesoftware.spin.models.IncidentType

  76. def updateInvoicingStatus(status: InvoicingStatus)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Updates a com.atomizesoftware.spin.models.InvoicingStatus

  77. def updateMovement(movement: Movement)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Updates a com.atomizesoftware.spin.models.Movement

  78. def updateMovementStatus(status: MovementStatus)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Updates a com.atomizesoftware.spin.models.MovementStatus

  79. def updateMovementType(movementType: MovementType)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Updates a com.atomizesoftware.spin.models.MovementType

  80. def updateMovements(movements: List[Movement])(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

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

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

    Definition Classes
    MovementRepositoryImplMovementRepository
  81. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def planMovementsForOrderWithId(orderId: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Movement]

    Returns a list of movements that have the plan flag true and have the specified order id.

    Returns a list of movements that have the plan flag true and have the specified order id.

    returns

    list of movements that are plan and have the specified order id.

    Definition Classes
    MovementRepositoryImplMovementRepository
    Annotations
    @deprecated
    Deprecated

    (Since version 2016-03-17) Is part of plugin logic, please implement your own

Inherited from MovementRepository

Inherited from AnyRef

Inherited from Any

Ungrouped