TemplateNodeService.java 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. package jnpf.flowable.service;
  2. import jnpf.base.service.SuperService;
  3. import jnpf.exception.WorkFlowException;
  4. import jnpf.flowable.entity.TemplateNodeEntity;
  5. import java.util.List;
  6. public interface TemplateNodeService extends SuperService<TemplateNodeEntity> {
  7. /**
  8. * 列表
  9. *
  10. * @return
  11. */
  12. List<TemplateNodeEntity> getList(String flowId);
  13. /**
  14. * 获取节点
  15. *
  16. * @param flowIds 版本主键集合
  17. */
  18. List<TemplateNodeEntity> getList(List<String> flowIds, String nodeType);
  19. /**
  20. * 根据用户主键 获取节点
  21. *
  22. * @param userId 用户主键
  23. */
  24. List<TemplateNodeEntity> getListLikeUserId(String userId);
  25. /**
  26. * 信息
  27. *
  28. * @param id 主键值
  29. * @return ignore
  30. */
  31. TemplateNodeEntity getInfo(String id) throws WorkFlowException;
  32. /**
  33. * 创建
  34. *
  35. * @param entity 实体对象
  36. */
  37. void create(TemplateNodeEntity entity);
  38. /**
  39. * 更新
  40. *
  41. * @param id 主键值
  42. * @param entity 实体对象
  43. * @return ignore
  44. */
  45. boolean update(String id, TemplateNodeEntity entity);
  46. /**
  47. * 删除
  48. *
  49. * @param entity 实体对象
  50. */
  51. void delete(TemplateNodeEntity entity);
  52. /**
  53. * 删除
  54. *
  55. * @param idList
  56. */
  57. void deleteList(List<String> idList);
  58. /**
  59. * 删除
  60. *
  61. * @param idList
  62. */
  63. void delete(List<String> idList);
  64. /**
  65. * 获取开始节点表单列表
  66. */
  67. List<TemplateNodeEntity> getListStart();
  68. }