public class ScheduleServiceImpl extends Object implements ScheduleService
Constructor and Description |
---|
ScheduleServiceImpl() |
public ScheduleModel get(String id) throws ServiceManagerException
get
in interface DataService<ScheduleModel>
ServiceManagerException
public ScheduleModel getByConditions(String targetGridId, String targetId, ScheduleActionType actionType, ScheduleTargetType targetType, boolean isRelated) throws ServiceManagerException
getByConditions
in interface ScheduleService
ServiceManagerException
public LangridList<ScheduleModel> getList(int index, int count, MatchingCondition[] conditions, Order[] orders, Scope scope) throws ServiceManagerException
getList
in interface DataService<ScheduleModel>
ServiceManagerException
public List<ScheduleModel> getListByConditions(int index, int count, String targetGridId, String targetId, ScheduleActionType actionType, ScheduleTargetType targetType) throws ServiceManagerException
getListByConditions
in interface ScheduleService
ServiceManagerException
public LangridList<ScheduleModel> getListPassedBookingTime(ScheduleTargetType type, Calendar fiducialTime) throws ServiceManagerException
getListPassedBookingTime
in interface ScheduleService
ServiceManagerException
public ScheduleModel getNearestStatus(String targetId, ScheduleTargetType targetType) throws ServiceManagerException
getNearestStatus
in interface ScheduleService
ServiceManagerException
public int getTotalCount(MatchingCondition[] conditions, Scope scope) throws ServiceManagerException
getTotalCount
in interface DataService<ScheduleModel>
ServiceManagerException
public void add(ScheduleModel obj) throws ServiceManagerException
add
in interface DataService<ScheduleModel>
ServiceManagerException
public void edit(ScheduleModel obj) throws ServiceManagerException
edit
in interface DataService<ScheduleModel>
ServiceManagerException
public void delete(ScheduleModel condition) throws ServiceManagerException
delete
in interface DataService<ScheduleModel>
ServiceManagerException
public boolean canSchedule(String id, ScheduleTargetType targetType, ScheduleActionType actionType) throws ServiceManagerException
canSchedule
in interface ScheduleService
ServiceManagerException
public void setScopeParametar(String serviceGridId, String userGridId, String userId)
setScopeParametar
in interface DataService<ScheduleModel>
public boolean isExist(String dataId) throws ServiceManagerException
isExist
in interface DataService<ScheduleModel>
ServiceManagerException