class ProductService
For reaching Product entity.
User: Kirill, Date: 05.08.13 18:00.
ProductService(url: URL, credentials: Credentials?, transport: Transport)
For reaching Product entity. |
fun create(version: Int, productInfo: ProductInfo): IdentifierInfo
Create product on the server. |
|
fun delete(version: Int, identifier: String): Unit
Delete entity from the server. |
|
fun deletePicture(version: Int, productIdentifier: String, pictureFilename: String): Unit
Deletes specified picture. |
|
operator fun get(version: Int?, identifier: String): ProductInfo?
Returns an entity. |
|
fun getPicture(version: Int?, productIdentifier: String, pictureFilename: String): InputStream?
Returns body of the picture. |
|
fun getPictureFromHistory(pictureVersion: Int?, productIdentifier: String, pictureFilename: String): InputStream?
Returns body of the picture for particular version number. |
|
fun getPicturePath(version: Int?, productIdentifier: String): List<String>
Returns list of picture relative paths . |
|
fun list(version: Int?, firstResult: Int? = null, maxResults: Int? = null, like: String? = null, orderBy: ProductInfo.Fields? = null, orderDesc: Boolean? = null): List<ProductInfo>?
Returns list of entities. |
|
fun listAdvanced(version: Int?, firstResult: Int?, maxResults: Int?, like: String?, orderBy: ProductInfo.Fields?, orderDesc: Boolean?): List<ProductAdvancedInfo>?
Returns list of advanced entities. |
|
fun listDiff(versionFrom: Int, versionTo: Int): List<ProductInfo>
Returns list of item changes between two versions. |
|
fun listDiffPicture(versionFrom: Int, versionTo: Int): List<ProductPictureInfo>
Returns list of product pictures changes between two versions. |
|
fun put(version: Int, productInfo: ProductInfo): Unit
Put product to the server. |
|
fun putPicture(version: Int, productIdentifier: String, pictureFilename: String, picture: InputStream, contentType: String): Unit
Send picture to the server. |
|
fun stats(period: String?, cashRegisterName: String?): ProductsStatsInfo?
Returns stats by products. |