The service layer interfaces
The service layer interfaces define methods that will be exposed to clients. These methods define the core actions required by our 3T application. Each method has a String actionUsername
argument to identify the user executing this request. The actionUsername
can be used in the implementation for logging purposes or to ensure a valid user is requesting data. The definition of valid will depend on the action being performed. Each interface will use generic types to define the returned Result
value object.
The CompanyService
interface will return a data payload that is either a Company object (Result<Company>
) or a list of Company objects (Result<List<Company>>
). The definition of this interface follows:
package com.gieman.tttracker.service; import java.util.List; import com.gieman.tttracker.domain.Company; import com.gieman.tttracker.vo.Result; public interface CompanyService { public Result<Company> store( Integer idCompany...