public class LangridServiceServiceImpl<T extends ServiceModel> extends Object implements LangridServiceService<T>, ServiceInformationService
Modifier and Type | Field and Description |
---|---|
protected String |
serviceGridId |
protected String |
userGridId |
protected String |
userId |
Constructor and Description |
---|
LangridServiceServiceImpl() |
protected String serviceGridId
protected String userGridId
protected String userId
public LangridServiceServiceImpl() throws ServiceManagerException
ServiceManagerException
public void activate(String serviceId) throws ServiceManagerException
activate
in interface LangridServiceService<T extends ServiceModel>
ServiceManagerException
public void add(T obj) throws ServiceManagerException
add
in interface DataService<T extends ServiceModel>
ServiceManagerException
public void approveService(String serviceId) throws ServiceManagerException
approveService
in interface LangridServiceService<T extends ServiceModel>
ServiceManagerException
public void deactivate(String serviceId) throws ServiceManagerException
deactivate
in interface LangridServiceService<T extends ServiceModel>
ServiceManagerException
public void delete(T condition) throws ServiceManagerException
delete
in interface DataService<T extends ServiceModel>
ServiceManagerException
public void deleteById(String serviceId) throws ServiceManagerException
deleteById
in interface LangridServiceService<T extends ServiceModel>
ServiceManagerException
public void edit(T obj) throws ServiceManagerException
edit
in interface DataService<T extends ServiceModel>
ServiceManagerException
public final T get(String id) throws ServiceManagerException
get
in interface DataService<T extends ServiceModel>
ServiceManagerException
public LangridList<ServiceModel> getOtherList(String serviceGridId, Order order) throws ServiceManagerException
getOtherList
in interface LangridServiceService<T extends ServiceModel>
ServiceManagerException
public final LangridList<T> getList(int index, int count, MatchingCondition[] conditions, Order[] orders, Scope scope) throws ServiceManagerException
getList
in interface DataService<T extends ServiceModel>
ServiceManagerException
public int getTotalCount(MatchingCondition[] conditions, Scope scope) throws ServiceManagerException
getTotalCount
in interface DataService<T extends ServiceModel>
ServiceManagerException
public LangridList<ExecutionInformationStatisticsModel> getStatisticsList(int index, int count, String serviceId, Calendar start, Calendar end, Period period, Order[] orders) throws ServiceManagerException
getStatisticsList
in interface ServiceInformationService
ServiceManagerException
public int getStatisticsTotalCount(String serviceId, Calendar start, Calendar end, Period period) throws ServiceManagerException
getStatisticsTotalCount
in interface ServiceInformationService
ServiceManagerException
public LangridList<IndividualExecutionInformationModel> getVerboseList(int index, int count, String userId, String serviceId, Calendar start, Calendar end, MatchingCondition[] conditions, Order[] orders) throws ServiceManagerException
getVerboseList
in interface ServiceInformationService
ServiceManagerException
public int getVerboseTotalCount(int index, int count, String userId, String serviceId, Calendar start, Calendar end, MatchingCondition[] conditions) throws ServiceManagerException
getVerboseTotalCount
in interface ServiceInformationService
ServiceManagerException
public LangridList<IndividualExecutionInformationModel> getLimitOverVerboseList(int index, int count, String userId, String serviceId, Calendar start, Calendar end, MatchingCondition[] conditions, Order[] orders, int limitCount) throws ServiceManagerException
getLimitOverVerboseList
in interface ServiceInformationService
ServiceManagerException
public int getLimitOverVerboseTotalCount(int index, int count, String userId, String serviceId, Calendar start, Calendar end, MatchingCondition[] conditions, int limitCount) throws ServiceManagerException
getLimitOverVerboseTotalCount
in interface ServiceInformationService
ServiceManagerException
public void addEndpoint(ServiceEndpointModel endpoint) throws ServiceManagerException
addEndpoint
in interface LangridServiceService<T extends ServiceModel>
ServiceManagerException
public void deleteEndpoint(ServiceEndpointModel obj) throws ServiceManagerException
deleteEndpoint
in interface LangridServiceService<T extends ServiceModel>
ServiceManagerException
public void editEndpoint(String serviceId, String beforeUrl, String beforeUserName, ServiceEndpointModel model) throws ServiceManagerException
editEndpoint
in interface LangridServiceService<T extends ServiceModel>
ServiceManagerException
public List<ServiceEndpointModel> getEndpointList(String serviceId) throws ServiceManagerException
getEndpointList
in interface LangridServiceService<T extends ServiceModel>
ServiceManagerException
public boolean isActive(String serviceId) throws ServiceManagerException
isActive
in interface LangridServiceService<T extends ServiceModel>
ServiceManagerException
public boolean isExternalService(String serviceId) throws ServiceManagerException
isExternalService
in interface LangridServiceService<T extends ServiceModel>
ServiceManagerException
public void setScopeParametar(String serviceGridId, String userGridId, String userId)
setScopeParametar
in interface DataService<T extends ServiceModel>
setScopeParametar
in interface ServiceInformationService
public boolean isExist(String dataId) throws ServiceManagerException
isExist
in interface DataService<T extends ServiceModel>
ServiceManagerException
protected T createNewObject()
protected ServiceLogic getLogic() throws ServiceManagerException
ServiceManagerException
protected T makeServiceModel(Service service) throws ServiceManagerException
ServiceManagerException
protected Service setProperty(T model, Service service) throws ServiceManagerException
ServiceManagerException