com.github.houbbbbb.sso.service.SSOPAppService Maven / Gradle / Ivy
The newest version!
package com.github.houbbbbb.sso.service;
import com.github.houbbbbb.sso.entity.AppDO;
import com.github.houbbbbb.sso.nt.opt.ClientOpt;
import com.github.houbbbbb.sso.nt.entity.AppDTO;
import com.github.houbbbbb.sso.nt.util.AppConvertUtil;
import java.util.List;
/**
* @todo:
* @author: hbw
* @date: 2020/7/16
**/
public class SSOPAppService {
public List getAll () {
return AppConvertUtil.convert(ClientOpt.getAppInfo());
}
public List getByServiceIdNameType (String serviceId, String type, String name) {
return AppConvertUtil.convert(ClientOpt.getAppByServiceIdTypeName(serviceId, type, name));
}
public List getByServiceId (String serviceId) {
return AppConvertUtil.convert(ClientOpt.getAppByServiceId(serviceId));
}
public List getByName (String name) {
return AppConvertUtil.convert(ClientOpt.getAppByName(name));
}
public List getByType (String type) {
return AppConvertUtil.convert(ClientOpt.getAppByType(type));
}
public List getBySsoServiceId (String ssoServiceId) {
return AppConvertUtil.convert(ClientOpt.getAppBySsoServiceId(ssoServiceId));
}
public List getByServiceIdOrName (String serviceId, String name) {
return AppConvertUtil.convert(ClientOpt.getAppByServiceIdOrName(serviceId, name));
}
public List getByServiceIdOrType (String serviceId, String type) {
return AppConvertUtil.convert(ClientOpt.getAppByServiceIdOrType(serviceId, type));
}
public List getByServiceIdOrSsoServiceId (String serviceId, String ssoServiceId) {
return AppConvertUtil.convert(ClientOpt.getAppByServiceIdOrSsoServiceId(serviceId, ssoServiceId));
}
public List getByNameOrType (String name, String type) {
return AppConvertUtil.convert(ClientOpt.getAppByNameOrType(name, type));
}
public List getBySsoServiceIdOrName (String ssoServiceId, String name) {
return AppConvertUtil.convert(ClientOpt.getAppBySsoServiceIdOrName(ssoServiceId, name));
}
public List getSsoServiceIdOrType (String ssoServiceId, String type) {
return AppConvertUtil.convert(ClientOpt.getAppBySsoServiceIdOrType(ssoServiceId, type));
}
public List getByServiceIdAndName (String serviceId, String name) {
return AppConvertUtil.convert(ClientOpt.getAppByServiceIdAndName(serviceId, name));
}
public List getByServiceIdAndType (String serviceId, String type) {
return AppConvertUtil.convert(ClientOpt.getAppByServiceIdAndType(serviceId, type));
}
public List getByServiceIdAndSsoServiceId (String serviceId, String ssoServiceId) {
return AppConvertUtil.convert(ClientOpt.getAppByServiceIdAndSsoServiceId(serviceId, ssoServiceId));
}
public List getByNameAndType (String name, String type) {
return AppConvertUtil.convert(ClientOpt.getAppByNameAndType(name, type));
}
public List getBySsoServiceIdAndName (String ssoServiceId, String name) {
return AppConvertUtil.convert(ClientOpt.getAppBySsoServiceIdAndName(ssoServiceId, name));
}
public List getSsoServiceIdAndType (String ssoServiceId, String type) {
return AppConvertUtil.convert(ClientOpt.getAppBySsoServiceIdAndType(ssoServiceId, type));
}
public List getByServiceIdNot (String serviceId) {
return AppConvertUtil.convert(ClientOpt.getAppByServiceIdNot(serviceId));
}
public List getByNameNot (String name) {
return AppConvertUtil.convert(ClientOpt.getAppByNameNot(name));
}
public List getByTypeNot (String type) {
return AppConvertUtil.convert(ClientOpt.getAppByTypeNot(type));
}
public List getBySsoServiceIdNot (String ssoServiceId) {
return AppConvertUtil.convert(ClientOpt.getAppBySsoServiceIdNot(ssoServiceId));
}
public String getBalancedIp (String serviceId) {
return ClientOpt.getAppIpByServiceIdLoadBalanced(serviceId);
}
public String getBalancedHost (String serviceId) {
return ClientOpt.getAppHostByServiceIdLoadBalanced(serviceId);
}
public String getBalancedIp (String serviceId, String key) {
return ClientOpt.getAppIpByServiceIdLoadBalanced(serviceId, key);
}
public String getBalancedHost (String serviceId, String key) {
return ClientOpt.getAppHostByServiceIdLoadBalanced(serviceId, key);
}
}