com.atomizesoftware.spin.data.repositories.LocationRepositoryComponent

LocationRepositoryImpl

class LocationRepositoryImpl extends LocationRepository

Implements functions related to com.atomizesoftware.spin.models.Location and its references: com.atomizesoftware.spin.models.LocationType and com.atomizesoftware.spin.models.Shape

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

Instance Constructors

  1. new LocationRepositoryImpl()

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

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

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

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def childrenOfLocationWithId(id: Long, filter: String = "", filterOr: String, include: String = "", timeZoneId: String = "")(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Location]

    Gets the children of the specified location.

    Gets the children of the specified location.

    returns

    a list of locations that are children of the specified location.

    Definition Classes
    LocationRepositoryImplLocationRepository
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def deleteLocation(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Deletes a location as well as all the group associations and location paths that relate to it.

    Deletes a location as well as all the group associations and location paths that relate to it.

    returns

    true if the operation was successful, false otherwise.

    Definition Classes
    LocationRepositoryImplLocationRepository
  11. def deleteLocationType(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

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

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  18. def incrementCounterAndReturnNewValueIn(location: Location)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Long

    Increments the counter of a location and returns the new counter value

    Increments the counter of a location and returns the new counter value

    Definition Classes
    LocationRepositoryImplLocationRepository
  19. def insertLocation(location: Location)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Location

    Inserts a location as well as the location paths needed

    Inserts a location as well as the location paths needed

    returns

    the id of the location inserted or none if there was an error

    Definition Classes
    LocationRepositoryImplLocationRepository
  20. def insertLocationType(locationType: LocationType)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): LocationType

    Creates a location type.

    Creates a location type.

    returns

    the newly created location type.

    Definition Classes
    LocationRepositoryImplLocationRepository
    Exceptions thrown
    com.atomizesoftware.spin.util.InternalErrorException

    if we can't create the location type.

  21. def insertShape(shape: Shape)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Shape

  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. def locationAndAssociationsWithId(id: Long, filter: String = "", filterOr: String = "", references: String = "", associations: List[String])(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Location]

    Gets a location by its id with the specified associations.

    Gets a location by its id with the specified associations.

    Definition Classes
    LocationRepositoryImplLocationRepository
  24. def locationTotalCountForFilters(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
    LocationRepositoryImplLocationRepository
  25. def locationTypeTotalCountForFilters(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
    LocationRepositoryImplLocationRepository
  26. def locationTypeWithId(id: Long, references: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[LocationType]

  27. def locationTypeWithId(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[LocationType]

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

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

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

    Definition Classes
    LocationRepositoryImplLocationRepository
  29. def locationTypesForSync(syncTimestamp: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[LocationType]

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

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

    Definition Classes
    LocationRepositoryImplLocationRepository
  30. def locationWithCode(code: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Location

  31. def locationWithId(id: Long, filter: String, filterOr: String, references: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Location]

  32. def locationWithId(id: Long, filter: String, filterOr: String)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Location]

  33. def locationWithId(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Location]

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

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

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

    Definition Classes
    LocationRepositoryImplLocationRepository
  35. def locationsForSync(syncTimestamp: Long, filter: String = "", filterOr: String = "", references: String, timeZoneId: String = "")(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Location]

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

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

    Definition Classes
    LocationRepositoryImplLocationRepository
  36. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  37. def nearestAncestorWithPrefixOf(location: Location)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Location]

    Traverses up the tree to find the com.atomizesoftware.spin.models.Location first ascendant that has a prefix defined

    Traverses up the tree to find the com.atomizesoftware.spin.models.Location first ascendant that has a prefix defined

    Definition Classes
    LocationRepositoryImplLocationRepository
  38. final def notify(): Unit

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

    Definition Classes
    AnyRef
  40. def parentLocationIdOfLocationWithId(locationId: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Long]

    Gets the parent location id of a location.

    Gets the parent location id of a location.

    returns

    the Id of the parent location, can be Some(id) or None

    Definition Classes
    LocationRepositoryImplLocationRepository
  41. def shapeTotalCountForFilters(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
    LocationRepositoryImplLocationRepository
  42. def shapeWithId(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Shape]

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

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

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

    Definition Classes
    LocationRepositoryImplLocationRepository
  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  45. def toString(): String

    Definition Classes
    AnyRef → Any
  46. def topMostAncestorOfLocationWithId(id: Long, include: String = "", timeZoneId: String = "", visible: Boolean = false)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Location

    Gets the top most ancestor of a given location.

    Gets the top most ancestor of a given location.

    returns

    the top most ancestor.

    Definition Classes
    LocationRepositoryImplLocationRepository
  47. def updateLocation(location: Location)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Updates a com.atomizesoftware.spin.models.Location

    Updates a com.atomizesoftware.spin.models.Location

    Also takes care of updating the closure table if needed.

    location

    to update

    Definition Classes
    LocationRepositoryImplLocationRepository
  48. def updateLocationAssociations(location: Location)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Updates the associations between a com.atomizesoftware.spin.models.Location and its com.atomizesoftware.spin.models.Groups.

    Updates the associations between a com.atomizesoftware.spin.models.Location and its com.atomizesoftware.spin.models.Groups.

    Receives a list representing the current groups that are to be associated with the specified location, removes all associations that aren't present in that list and adds those that are.

    location

    that we want to update the associations.

    Definition Classes
    LocationRepositoryImplLocationRepository
  49. def updateLocationType(locationType: LocationType)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Updates a com.atomizesoftware.spin.models.LocationType

    locationType

    to update

    Definition Classes
    LocationRepositoryImplLocationRepository
  50. def updateShape(shape: Shape)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Updates a com.atomizesoftware.spin.models.Shape

  51. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from LocationRepository

Inherited from AnyRef

Inherited from Any

Ungrouped