DelegateService.java 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. package jnpf.flowable.service;
  2. import jnpf.base.service.SuperService;
  3. import jnpf.base.vo.ListVO;
  4. import jnpf.exception.WorkFlowException;
  5. import jnpf.flowable.entity.DelegateEntity;
  6. import jnpf.flowable.entity.DelegateInfoEntity;
  7. import jnpf.flowable.model.candidates.CandidateUserVo;
  8. import jnpf.flowable.model.delegate.DelegateCrForm;
  9. import jnpf.flowable.model.delegate.DelegateListVO;
  10. import jnpf.flowable.model.delegate.DelegatePagination;
  11. import jnpf.flowable.model.delegate.DelegateUpForm;
  12. import java.util.List;
  13. /**
  14. * 类的描述
  15. *
  16. * @author JNPF@YinMai Info. Co., Ltd
  17. * @version 5.0.x
  18. * @since 2024/5/13 16:55
  19. */
  20. public interface DelegateService extends SuperService<DelegateEntity> {
  21. /**
  22. * 列表
  23. *
  24. * @param pagination 分页参数
  25. */
  26. List<DelegateListVO> getList(DelegatePagination pagination);
  27. /**
  28. * 详情
  29. *
  30. * @param id 委托主键
  31. */
  32. DelegateEntity getInfo(String id);
  33. /**
  34. * 创建
  35. *
  36. * @param fo 参数
  37. */
  38. void create(DelegateCrForm fo);
  39. /**
  40. * 更新
  41. *
  42. * @param entity 实体
  43. * @param fo 参数
  44. */
  45. boolean update(DelegateEntity entity, DelegateUpForm fo);
  46. /**
  47. * 委托结束
  48. *
  49. * @param id 主键
  50. * @param entity 实体
  51. */
  52. boolean updateStop(String id, DelegateEntity entity);
  53. /**
  54. * 删除
  55. *
  56. * @param entity 实体
  57. */
  58. void delete(DelegateEntity entity);
  59. /**
  60. * 获取被委托人/代理人
  61. *
  62. * @param userId 委托人
  63. * @param flowId 流程主键
  64. */
  65. List<String> getToUser(String userId, String flowId);
  66. /**
  67. * 根据 被委托人/代理人id 获取列表
  68. *
  69. * @param toUserId 被委托人/代理人id
  70. */
  71. List<DelegateEntity> getByToUserId(String toUserId);
  72. /**
  73. * 根据 被委托人/代理人id 获取列表
  74. *
  75. * @param toUserId 被委托人/代理人id
  76. * @param type 类型
  77. */
  78. List<DelegateEntity> getByToUserId(String toUserId, Integer type);
  79. /**
  80. * 获取委托人列表
  81. */
  82. ListVO<CandidateUserVo> getUserList(String templateId) throws WorkFlowException;
  83. /**
  84. * 获取当前用户所有发起委托列表
  85. */
  86. List<DelegateEntity> getLaunchDelagateList();
  87. /**
  88. * 根据条件查询相关委托信息
  89. *
  90. * @param fo 参数
  91. */
  92. List<DelegateEntity> selectSameParamAboutDelaget(DelegateCrForm fo);
  93. /**
  94. * 列表
  95. */
  96. List<DelegateEntity> getList();
  97. /**
  98. * 确认
  99. *
  100. * @param delegateInfo 委托信息
  101. */
  102. void notarize(DelegateInfoEntity delegateInfo);
  103. }