com.atomizesoftware.spin.data.repositories.CompanyRepositoryComponent

CompanyRepositoryImpl

class CompanyRepositoryImpl extends CompanyRepository with ExtensionMethods

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

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CompanyRepositoryImpl
  2. ExtensionMethods
  3. CompanyRepository
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CompanyRepositoryImpl()

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

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def companiesAndTotalCountForFilters(references: String, filter: String, filterOr: String, search: String, sortBy: String, timeZoneId: String, limit: Int, offset: Int)(implicit s: scala.slick.jdbc.JdbcBackend.Session): (List[Company], Long)

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

    Returns a tuple with the list of companies 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
    CompanyRepositoryImplCompanyRepository
  8. def companiesForSync(syncTimestamp: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Company]

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

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

    Definition Classes
    CompanyRepositoryImplCompanyRepository
  9. def companyTotalCountForFilters(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
    CompanyRepositoryImplCompanyRepository
  10. def companyWithId(id: Long)(implicit s: scala.slick.jdbc.JdbcBackend.Session): Option[Company]

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

  12. def encodePassword(password: String): String

    Receives a password string and encodes it to md5.

    Receives a password string and encodes it to md5.

    Definition Classes
    ExtensionMethods
  13. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  15. def filteredCompanies(references: String, filter: String, filterOr: String, search: String, sortBy: String, timeZoneId: String, limit: Int, offset: Int)(implicit s: scala.slick.jdbc.JdbcBackend.Session): List[Company]

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

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

    references

    of the company that are to be included

    filter

    to apply to the requested companies.

    filterOr

    to apply to the requested companies.

    search

    to apply to the requested companies.

    limit

    of companies to return

    offset

    where to start the list of returned companies from.

    Definition Classes
    CompanyRepositoryImplCompanyRepository
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def generateNewApiKey: String

    Generates a random api key.

    Generates a random api key.

    Definition Classes
    ExtensionMethods
  18. final def getClass(): Class[_]

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

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

  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef
  26. def toString(): String

    Definition Classes
    AnyRef → Any
  27. def updateCompanies(companies: List[Company])(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

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

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

    Definition Classes
    CompanyRepositoryImplCompanyRepository
  28. def updateCompany(company: Company, fields: Option[Seq[String]] = None)(implicit s: scala.slick.jdbc.JdbcBackend.Session, currentUser: AuthenticatedUser): Boolean

    Updates a com.atomizesoftware.spin.models.Company

    Updates a com.atomizesoftware.spin.models.Company

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

    company

    to update

    fields

    of the company to update

    Definition Classes
    CompanyRepositoryImplCompanyRepository
  29. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ExtensionMethods

Inherited from CompanyRepository

Inherited from AnyRef

Inherited from Any

Ungrouped