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