接口 Y9SystemService

  • 所有已知实现类:
    Y9SystemServiceImpl

    public interface Y9SystemService
    SystemService
    作者:
    shidaobang
    Date:
    2022/3/2
    • 方法详细资料

      • delete

        void delete​(String id)
        根据id删除
        参数:
        id - 唯一标识
      • findById

        Optional<Y9System> findById​(String id)
        根据id获取系统对象
        参数:
        id - 唯一标识
        返回:
        系统对象 或 null
      • getById

        Y9System getById​(String id)
        根据id查询System实体
        参数:
        id - 唯一标识
        返回:
        系统对象
        抛出:
        net.risesoft.y9.exception.Y9NotFoundException - id 对应的记录不存在的情况
      • getByName

        Y9System getByName​(String systemName)
        根据名字查询System实体
        参数:
        systemName - 系统名称
        返回:
        Y9System
        抛出:
        net.risesoft.y9.exception.Y9NotFoundException - systemName 对应的记录不存在的情况
      • isNameAvailable

        boolean isNameAvailable​(String id,
                                String name)
        检查系统名称可用性
        参数:
        id - id
        name - 系统名
        返回:
        boolean
      • listAll

        List<Y9System> listAll()
        查询所有Y9System
        返回:
        List
      • listByAutoInit

        List<String> listByAutoInit​(Boolean autoInit)
        获取系统id列表
        参数:
        autoInit - 是否自动租用系统
        返回:
        List<String>
      • listByCnNameContaining

        List<Y9System> listByCnNameContaining​(String cnName)
        根据系统中文名称,模糊搜索系统列表
        参数:
        cnName - 系统中文名称
        返回:
        List<Y9System>
      • listByContextPath

        List<Y9System> listByContextPath​(String contextPath)
        根据contextPath获取系统实体
        参数:
        contextPath - 上下文路径
        返回:
        List<Y9System>
      • page

        org.springframework.data.domain.Page<Y9System> page​(net.risesoft.pojo.Y9PageQuery pageQuery)
        分页查询系统列表
        参数:
        pageQuery - 分页查询参数
        返回:
        Page<Y9System>
      • saveAndRegister4Tenant

        Y9System saveAndRegister4Tenant​(Y9System y9System)
      • saveOrUpdate

        Y9System saveOrUpdate​(Y9System y9System)
        保存系统
        参数:
        y9System - 系统对象
        返回:
        Y9System
      • saveOrder

        void saveOrder​(String[] systemIds)
        保存系统排序
        参数:
        systemIds - 系统id数组