Package com.foxinmy.weixin4j.qy.jssdk
Class JSSDKContactConfigurator
- java.lang.Object
-
- com.foxinmy.weixin4j.qy.jssdk.JSSDKContactConfigurator
-
public class JSSDKContactConfigurator extends Object
JSSDK联系人筛选配置- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Constructor Summary
Constructors Constructor Description JSSDKContactConfigurator(com.foxinmy.weixin4j.token.TokenManager ticketTokenManager)ticket保存类 可调用WeixinProxy#getTicketManager获取
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSSDKContactConfiguratorlimitDepartment()限制部门JSSDKContactConfiguratorlimitTag()限制标签JSSDKContactConfiguratorlimitUser()限制用户JSSDKContactConfiguratormultiMode()多选模式JSSDKContactConfiguratorpartyIds(Integer... partyIds)可选范围:部门ID列表(如果partyIds为0则表示显示管理组下所有部门)JSSDKContactConfiguratorselectedDepartmentIds(Integer... selectedDepartmentIds)已选部门IDJSSDKContactConfiguratorselectedTagIds(Integer... selectedTagIds)已选标签IDJSSDKContactConfiguratorselectedUserIds(String... selectedUserIds)已选用户IDJSSDKContactConfiguratorsingleMode()单选模式JSSDKContactConfiguratortagIds(Integer... tagIds)可选范围:标签ID列表(如果tagIds为0则表示显示所有标签)StringtoJSONConfig(String url)生成config配置JSON串StringtoJSONConfig(String url, JSSDKContactParameter parameter)生成config配置JSON串JSSDKContactConfiguratoruserIds(String... userIds)可选范围:用户ID列表
-
-
-
Method Detail
-
partyIds
public JSSDKContactConfigurator partyIds(Integer... partyIds)
可选范围:部门ID列表(如果partyIds为0则表示显示管理组下所有部门)- Parameters:
departmentIds-- Returns:
-
tagIds
public JSSDKContactConfigurator tagIds(Integer... tagIds)
可选范围:标签ID列表(如果tagIds为0则表示显示所有标签)- Parameters:
tagIds-- Returns:
-
userIds
public JSSDKContactConfigurator userIds(String... userIds)
可选范围:用户ID列表- Parameters:
userIds-- Returns:
-
singleMode
public JSSDKContactConfigurator singleMode()
单选模式- Returns:
-
multiMode
public JSSDKContactConfigurator multiMode()
多选模式- Returns:
-
limitDepartment
public JSSDKContactConfigurator limitDepartment()
限制部门- Returns:
-
limitTag
public JSSDKContactConfigurator limitTag()
限制标签- Returns:
-
limitUser
public JSSDKContactConfigurator limitUser()
限制用户- Returns:
-
selectedDepartmentIds
public JSSDKContactConfigurator selectedDepartmentIds(Integer... selectedDepartmentIds)
已选部门ID- Parameters:
selectedDepartmentIds-- Returns:
-
selectedTagIds
public JSSDKContactConfigurator selectedTagIds(Integer... selectedTagIds)
已选标签ID- Parameters:
selectedTagIds-- Returns:
-
selectedUserIds
public JSSDKContactConfigurator selectedUserIds(String... selectedUserIds)
已选用户ID- Parameters:
selectedUserIds-- Returns:
-
toJSONConfig
public String toJSONConfig(String url) throws com.foxinmy.weixin4j.exception.WeixinException
生成config配置JSON串- Parameters:
url- 当前网页的URL,不包含#及其后面部分- Returns:
- Throws:
com.foxinmy.weixin4j.exception.WeixinException
-
toJSONConfig
public String toJSONConfig(String url, JSSDKContactParameter parameter) throws com.foxinmy.weixin4j.exception.WeixinException
生成config配置JSON串- Parameters:
url- 当前网页的URL,不包含#及其后面部分parameter- 自定义传入参数对象- Returns:
- Throws:
com.foxinmy.weixin4j.exception.WeixinException
-
-