com.atomizesoftware.spin.managers.MovementManagerComponent

MovementManager

class MovementManager extends AnyRef

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

Instance Constructors

  1. new MovementManager()

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 cancelInvoiceOfMovements(movements: List[Movement])(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Cancels the invoicing of the movements received.

    Cancels the invoicing of the movements received.

    returns

    true or false depending on the success of the operation

  6. implicit val cargoRepo: CargoRepository

  7. def changePriceOfMovements(movements: List[Movement], price: BigDecimal)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Changes the price of the movements received.

    Changes the price of the movements received.

    returns

    true or false depending on the success of the operation.

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. implicit val containerRepo: ContainerRepository

  10. def createIncidentType(incidentType: IncidentType)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): IncidentType

    Creates an com.atomizesoftware.spin.models.IncidentType.

    returns

    the newly created incident type.

  11. def createMovement(movement: Movement)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Try[Option[Movement]]

    Creates a new movement based on the movement received and the rules defined in the handlers.

    Creates a new movement based on the movement received and the rules defined in the handlers.

    returns

    a Success with the created movement or a Failure with the thrown exception.

  12. def createMovementStatus(movementStatus: MovementStatus)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): MovementStatus

    Creates a com.atomizesoftware.spin.models.MovementStatus.

    returns

    the newly created movement status.

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

    Creates a com.atomizesoftware.spin.models.MovementType.

    returns

    movement type created

  14. implicit val deviceRepo: DeviceRepository

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  20. def insertInDatabase(movement: Movement)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Try[Movement]

    Creates a movement when its movement type didn't match any of those defined in create movement.

    Creates a movement when its movement type didn't match any of those defined in create movement.

    returns

    Success with the new movement if successful, Failure with the exception otherwise.

  21. def invoiceMovements(movementIds: List[Long])(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Invoices the received movements.

    Invoices the received movements.

    returns

    true or false depending on the success of the operation

  22. def invoiceMovementsFromSearch(search: String, references: String = "", filter: String = "", filterOr: String = "")(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Invoices all the movements that correspond to the search parameters.

    Invoices all the movements that correspond to the search parameters.

    returns

    true or false depending on the success of the operation

  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. implicit val locationRepo: LocationRepository

  25. def lock(movementId: Long, userId: Long, deviceId: Long, references: String = "")(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Option[Movement]

    Verifies if the conditions to lock a movement are met and locks it, or not.

    Verifies if the conditions to lock a movement are met and locks it, or not.

    returns

    a Movement if the lock operation was successful, None otherwise

  26. val logger: Logger

  27. implicit val movementRepo: MovementRepository

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

    Definition Classes
    AnyRef
  29. def nonInvoicedMovementsFrom(movements: List[Movement])(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Movement]

    Checks if the provided movements all exist and if they weren't already invoiced.

    Checks if the provided movements all exist and if they weren't already invoiced.

    returns

    a list of the movements to change

    Exceptions thrown
    InternalErrorException,

    if one or more of the movements don't exist or if one of them was already invoiced

  30. final def notify(): Unit

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

    Definition Classes
    AnyRef
  32. implicit val orderRepo: OrderRepository

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

    Definition Classes
    AnyRef
  34. def toString(): String

    Definition Classes
    AnyRef → Any
  35. def unlock(movementId: Long, userId: Long, deviceId: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Unlocks a movement so other users can execute it.

    Unlocks a movement so other users can execute it.

    returns

    true if successful, false otherwise

  36. def updateIncidentType(incidentType: IncidentType)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Updates a com.atomizesoftware.spin.models.IncidentType.

    incidentType

    to update

    returns

    true if incident type was updated, false otherwise.

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

    Updates a movement using the movement repository.

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

    Updates a com.atomizesoftware.spin.models.MovementStatus.

    movementStatus

    to update

    returns

    true if movement status was updated, false otherwise

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

    Updates a com.atomizesoftware.spin.models.MovementType.

    movementType

    to update

    returns

    true if movement type was updated, false otherwise

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

    Updates a several movements using the movement repository.

  41. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped