Note |
---|
Timetracker version 4.7.5 or higher is required to access this API |
Note |
---|
Wage manager permission required for the user this service |
A cost rate with a date can be added to a user via this service.
API
Code Block |
---|
package org.everit.jira.reporting.service.costrate; import java.time.LocalDate; import java.util.List; /** * Semi-Public User Cost Service. */ public interface UserCostService { /** * Add cost rate. Requires Wage Manager permission. * * @param userKey * the user key * @param validFromIncl * the from date (inclusive). * @param costRate * the cost rate. */ void addCostRate(String userKey, LocalDate validFromIncl, double costRate); /** * Delete cost rate. Requires Wage Manager permission. * * @param costRateId * the id of cost rate. */ void deleteCostRate(long costRateId); /** * List all cost rates for the specific users. Requires Wage Manager permission, else returns an empty list. * * @param userKey * the user key. * @return list of cost rates. */ List<CostRateInfo> listCostRates(String userKey); /** * Update cost rate. Requires Wage Manager permission. * * @param costRateId * the id of cost rate. * @param userKey * the user key * @param validFromIncl * the from date (inclusive). * @param costRate * the cost rate. */ void updateCostRate(long costRateId, String userKey, LocalDate validFromIncl, double costRate); } |
...