类 Y9TenantAppServiceImpl
- java.lang.Object
-
- net.risesoft.y9public.service.tenant.impl.Y9TenantAppServiceImpl
-
- 所有已实现的接口:
Y9TenantAppService
@Service("tenantAppService") public class Y9TenantAppServiceImpl extends Object implements Y9TenantAppService- 作者:
- dingzhaojun, mengjuhua, qinman, shidaobang
-
-
构造器概要
构造器 构造器 说明 Y9TenantAppServiceImpl()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 longcountByTenantIdAndSystemId(String tenantId, String systemId)根据租户id和系统id计数voiddeleteByAppId(String appId)根据appId删除对象voiddeleteByTenantIdAndAppId(String tenantId, String appId)禁用应用,(修改租用状态)voiddeleteByTenantIdAndSystemId(String tenantId, String systemId)按租户id和系统id取消租用系统下的所有应用Optional<Y9TenantApp>findById(String id)根据id,获取租户应用Y9TenantAppgetById(String id)根据id,获取租户应用Optional<Y9TenantApp>getByTenantIdAndAppIdAndTenancy(String tenantId, String appId, Boolean tenancy)根据appId和tenantId,获取租户应用List<String>listAppIdByTenantId(String tenantId, Boolean verify, Boolean tenancy)根据租户id,获取已审核且还在租用的应用id列表List<String>listAppIdByTenantIdAndTenancy(String tenantId, Boolean tenancy)根据租户Id,获取租户应用id列表List<Y9TenantApp>listByAppIdAndTenancy(String appId, Boolean tenancy)根据应用Id,查询租户应用列表List<Y9TenantApp>listByTenantIdAndTenancy(String tenantId, Boolean verify, Boolean tenancy)根据租户id,审核状态和租用状态,获取租户应用列表voidonAppDeleted(net.risesoft.y9.pubsub.event.Y9EntityDeletedEvent<Y9App> event)org.springframework.data.domain.Page<Y9TenantApp>page(Integer page, Integer rows, Boolean verify, String tenantName, String createTime, String verifyTime, Boolean tenancy, String systemId)根据搜索条件,获取租户应用列表分页信息org.springframework.data.domain.Page<Y9TenantApp>page(Integer page, Integer rows, Boolean verify, String tenantName, String createTime, String verifyTime, Boolean tenancy, String appName, String systemIds)获取租户应用租用情况信息Y9TenantAppsave(String appId, String tenantId, String applyReason)租户租用应用,已租用系统的应用自动审核通过Y9TenantAppsave(Y9TenantApp y9TenantApp)保存租户应用voidsaveOrUpdate(String appId, String appName)保存或更新intupdateByAppIdAndTenantId(Boolean tenancy, String deletedName, Date deletedTime, String appId, String tenantId, Boolean currentTenancy)根据id,修改租用状态Y9TenantAppverify(Y9TenantApp y9TenantApp, String reason)审核租户应用
-
-
-
方法详细资料
-
countByTenantIdAndSystemId
public long countByTenantIdAndSystemId(String tenantId, String systemId)
从接口复制的说明:Y9TenantAppService根据租户id和系统id计数- 指定者:
countByTenantIdAndSystemId在接口中Y9TenantAppService- 参数:
tenantId- 租户idsystemId- 系统id- 返回:
- long 租户应用数
-
deleteByAppId
@Transactional(readOnly=false) public void deleteByAppId(String appId)
从接口复制的说明:Y9TenantAppService根据appId删除对象- 指定者:
deleteByAppId在接口中Y9TenantAppService- 参数:
appId- 应用id
-
deleteByTenantIdAndAppId
@Transactional(readOnly=false) public void deleteByTenantIdAndAppId(String tenantId, String appId)
从接口复制的说明:Y9TenantAppService禁用应用,(修改租用状态)- 指定者:
deleteByTenantIdAndAppId在接口中Y9TenantAppService- 参数:
tenantId- 租户idappId- 应用id
-
deleteByTenantIdAndSystemId
@Transactional(readOnly=false) public void deleteByTenantIdAndSystemId(String tenantId, String systemId)
从接口复制的说明:Y9TenantAppService按租户id和系统id取消租用系统下的所有应用- 指定者:
deleteByTenantIdAndSystemId在接口中Y9TenantAppService- 参数:
tenantId- 租户idsystemId- 系统id
-
findById
public Optional<Y9TenantApp> findById(String id)
从接口复制的说明:Y9TenantAppService根据id,获取租户应用- 指定者:
findById在接口中Y9TenantAppService- 参数:
id- 租户应用id- 返回:
- 租户应用对象 或 null
-
getById
public Y9TenantApp getById(String id)
从接口复制的说明:Y9TenantAppService根据id,获取租户应用- 指定者:
getById在接口中Y9TenantAppService- 参数:
id- id- 返回:
Y9TenantApp
-
getByTenantIdAndAppIdAndTenancy
public Optional<Y9TenantApp> getByTenantIdAndAppIdAndTenancy(String tenantId, String appId, Boolean tenancy)
从接口复制的说明:Y9TenantAppService根据appId和tenantId,获取租户应用- 指定者:
getByTenantIdAndAppIdAndTenancy在接口中Y9TenantAppService- 参数:
tenantId- 租户idappId- 应用id
-
listAppIdByTenantId
public List<String> listAppIdByTenantId(String tenantId, Boolean verify, Boolean tenancy)
从接口复制的说明:Y9TenantAppService根据租户id,获取已审核且还在租用的应用id列表- 指定者:
listAppIdByTenantId在接口中Y9TenantAppService- 参数:
tenantId- 租户idverify- 是否已审核tenancy- 是否已租用- 返回:
List<String>
-
listAppIdByTenantIdAndTenancy
public List<String> listAppIdByTenantIdAndTenancy(String tenantId, Boolean tenancy)
从接口复制的说明:Y9TenantAppService根据租户Id,获取租户应用id列表- 指定者:
listAppIdByTenantIdAndTenancy在接口中Y9TenantAppService- 参数:
tenantId- 租户idtenancy- 是否已租用- 返回:
List<String>
-
listByAppIdAndTenancy
public List<Y9TenantApp> listByAppIdAndTenancy(String appId, Boolean tenancy)
从接口复制的说明:Y9TenantAppService根据应用Id,查询租户应用列表- 指定者:
listByAppIdAndTenancy在接口中Y9TenantAppService- 参数:
appId- 应用idtenancy- 是否已租用- 返回:
List<Y9TenantApp>
-
listByTenantIdAndTenancy
public List<Y9TenantApp> listByTenantIdAndTenancy(String tenantId, Boolean verify, Boolean tenancy)
从接口复制的说明:Y9TenantAppService根据租户id,审核状态和租用状态,获取租户应用列表- 指定者:
listByTenantIdAndTenancy在接口中Y9TenantAppService- 参数:
tenantId- 租户idverify- 是否已审核tenancy- 是否已租用- 返回:
List<Y9TenantApp>
-
page
public org.springframework.data.domain.Page<Y9TenantApp> page(Integer page, Integer rows, Boolean verify, String tenantName, String createTime, String verifyTime, Boolean tenancy, String systemId)
从接口复制的说明:Y9TenantAppService根据搜索条件,获取租户应用列表分页信息- 指定者:
page在接口中Y9TenantAppService- 参数:
page- 页数rows- 每页的行数verify- 是否已审核tenantName- 租户名createTime- 创建时间verifyTime- 审核事件tenancy- 是否已租用systemId- 系统id- 返回:
Page<Y9TenantApp>
-
page
public org.springframework.data.domain.Page<Y9TenantApp> page(Integer page, Integer rows, Boolean verify, String tenantName, String createTime, String verifyTime, Boolean tenancy, String appName, String systemIds)
从接口复制的说明:Y9TenantAppService获取租户应用租用情况信息- 指定者:
page在接口中Y9TenantAppService- 参数:
page- pagerows- rowsverify- 审核状态tenantName- 租户名称createTime- 创建时间verifyTime- 审核时间tenancy- 租户状态appName- 应用名称systemIds- 管理的应用ids- 返回:
Page<Y9TenantApp>
-
save
@Transactional(readOnly=false) public Y9TenantApp save(String appId, String tenantId, String applyReason)
从接口复制的说明:Y9TenantAppService租户租用应用,已租用系统的应用自动审核通过- 指定者:
save在接口中Y9TenantAppService- 参数:
appId- 应用idtenantId- 租户idapplyReason- 申请原因- 返回:
Y9TenantApp
-
save
@Transactional(readOnly=false) public Y9TenantApp save(Y9TenantApp y9TenantApp)
从接口复制的说明:Y9TenantAppService保存租户应用- 指定者:
save在接口中Y9TenantAppService- 参数:
y9TenantApp- 租户应用对象- 返回:
Y9TenantApp
-
saveOrUpdate
@Transactional(readOnly=false) public void saveOrUpdate(String appId, String appName)
从接口复制的说明:Y9TenantAppService保存或更新- 指定者:
saveOrUpdate在接口中Y9TenantAppService- 参数:
appId- 应用idappName- 应用名称
-
updateByAppIdAndTenantId
@Transactional(readOnly=false) public int updateByAppIdAndTenantId(Boolean tenancy, String deletedName, Date deletedTime, String appId, String tenantId, Boolean currentTenancy)
从接口复制的说明:Y9TenantAppService根据id,修改租用状态- 指定者:
updateByAppIdAndTenantId在接口中Y9TenantAppService- 参数:
tenancy- 是否已租用deletedName- 删除名称deletedTime- 删除时间appId- 应用idtenantId- 租户idcurrentTenancy- 当前是否已租用- 返回:
- int
-
verify
@Transactional(readOnly=false) public Y9TenantApp verify(Y9TenantApp y9TenantApp, String reason)
从接口复制的说明:Y9TenantAppService审核租户应用- 指定者:
verify在接口中Y9TenantAppService- 参数:
y9TenantApp- 租户应用reason- 审核理由- 返回:
Y9TenantApp
-
onAppDeleted
@EventListener @Transactional(readOnly=false) public void onAppDeleted(net.risesoft.y9.pubsub.event.Y9EntityDeletedEvent<Y9App> event)
-
-