public class OnlineService
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
OnlineService.AccountInfoByTypeCallback
获取账户信息回调
|
static interface |
OnlineService.LoginCallback
登录回调接口, 用于验证用户登录情况
|
构造器和说明 |
---|
OnlineService(android.content.Context context)
构造函数
|
限定符和类型 | 方法和说明 |
---|---|
static void |
applyToGroups(java.util.List<java.lang.String> groupIds, java.lang.String applyReason, java.lang.String applicant, OnlineCallBack.CallBackString callBackString)
用户申请加入群组。
|
static void |
bindEmail(java.lang.String email, OnlineCallBack.CallBackString callBackString)
绑定邮箱
|
static void |
bindPhoneNumber(java.lang.String phoneNumber, java.lang.String verifyCode, OnlineCallBack.CallBackString callBackString)
绑定手机号
|
static void |
changeDataVisiblity(java.lang.String id, boolean isPublic, OnlineCallBack.CallBackString callBackString)
改变我的数据状态
|
static void |
changeServiceVisiblity(java.lang.String id, boolean isPublic, OnlineCallBack.CallBackString callBackString)
改变服务状态,设置为公有或者私有
|
static void |
checkGroupApply(java.lang.String groupId, java.util.List<java.lang.Integer> applyIds, boolean isAccepted, OnlineCallBack.CallBackString callBackString)
批量审核群组中的申请,支持根据申请 id 审核指定的申请。
|
static void |
createGroup(java.lang.String groupName, java.lang.String tags, boolean isPublic, java.lang.String description, GroupRole groupRole, boolean isNeedCheck, OnlineCallBack.CallBackString callBackString)
创建群组
|
static void |
deleteData(java.lang.String dataName, OnlineCallBack.CallBackString callBackString)
通过名字删除数据
|
static void |
deleteGroup(java.util.List<java.lang.String> groupsIds, GroupDeleteListener groupDeleteListener)
批量删除群组
|
static void |
deleteGroupMembers(java.util.List<java.lang.String> userIds, java.lang.String groupId, GroupDeleteListener groupDeleteListener)
批量删除群组成员
|
static void |
deleteService(java.lang.String dataName, EnumServiceType serviceType, OnlineCallBack.CallBackString callBackString)
删除服务
|
static void |
deleteServiceById(java.lang.String id, OnlineCallBack.CallBackString callBackString)
通过id删除服务
|
static void |
deleteServiceByName(java.lang.String serviceName, OnlineCallBack.CallBackString callBackString)
通过服务名称删除服务
|
static void |
downloadFile(android.content.Context mContext, java.lang.String filename, java.lang.String filePath)
下载文件
|
static void |
downloadFile(android.content.Context mContext, java.lang.String filename, java.lang.String filePath, DownloadFile.DownLoadListener downloadListener)
下载文件
|
static void |
downloadResourceFileById(android.content.Context context, java.lang.String fileId, java.lang.String filePath, DownloadResourceFile.DownloadListener downloadListener)
下载数据资源中公开的文件,或群组中的共享文件
|
static void |
getAccountInfoByType(java.lang.String name, AccountInfoType type, OnlineService.AccountInfoByTypeCallback accountInfoByTypeCallback)
通过昵称获取用户id
|
static void |
getAllColorTable(int currentPage, OnlineCallBack.CallBackString callBackString)
获取颜色表数据 颜色表固定为每页9条数据,获取其中某一页的数据
|
static void |
getAllUserDataList(int currentPage, OnlineCallBack.CallBackString callBackString)
获取用户数据 用户数据固定为每页9条数据
|
static void |
getAllUserSymbolyLibList(int currentPage, OnlineCallBack.CallBackString callBackString)
获取符号库数据 符号库数据固定为每页9条数据
|
static void |
getDataInfo(java.lang.String dataId, OnlineCallBack.CallBackString callBackString)
根据ID查询数据基本信息
|
static void |
getDataList(int currentPage, int pageSize, OnlineCallBack.CallBackString callBackString)
获取我的数据
|
static java.lang.String |
getDefaultJsessionidCookie()
获取JsessionidCookie
|
static void |
getGroupApply(java.lang.String groupId, int currentPage, int pageSize, GroupCheckStatus groupCheckStatus, OrderType orderType, OnlineCallBack.CallBackString callBackString)
获取当前群组中的申请列表信息。
|
static void |
getGroupInfo(java.lang.String groupId, OnlineCallBack.CallBackString callBackString)
查看单个群组资源信息
|
static void |
getGroupResources(java.lang.String groupId, int currentPage, int pageSize, java.lang.String keywords, ResourceOrderBy resourceOrderBy, OrderType orderType, java.lang.String resourceCreator, OnlineCallBack.CallBackString callBackString)
查看群组的数据资源 群组成员取得数据资源的ID即可下载对应的共享数据
|
static void |
getGroupsInfo(int currentPage, int pageSize, GroupOrderBy groupOrderBy, java.lang.String keywords, JoinTypes[] joinTypes, OrderType odrerType, OnlineCallBack.CallBackString callBackString)
获取当前用户有权限查看的群组列表信息 如果希望获取指定的群组列表信息,可用群组名称的关键字查询 根据群组的类型joinTypes查询,包含:CREATE(我创建的)、JOINED(我已加入的)、CANJOIN(我可加入的)
|
static void |
getMyGroupsInfo(int currentPage, int pageSize, GroupOrderBy groupOrderBy, java.lang.String keywords, OrderType orderType, OnlineCallBack.CallBackString callBackString)
获取当前用户创建的群组列表信息
|
static void |
getMyInvatation(int currentPage, int pageSize, InviteFeedbackStatus feedbackStatus, OrderType orderType, InviteOrderby inviteOrderby, GroupInviteRole groupInviteRole, OnlineCallBack.CallBackString callBackString)
获取当前用户相关的邀请列表信息。
|
java.lang.String |
getNickName()
返回用户昵称 登录成功后获取
|
static void |
getServiceList(int currentPage, int pageSize, OnlineCallBack.CallBackString commonDataCallBack)
获取服务列表 默认按照时间降序排序
|
java.lang.String |
getUserName()
返回用户名 登录成功后获取
|
static void |
init(android.content.Context context)
构造函数
|
static void |
inviteUsersToGroup(java.lang.String groupId, java.lang.String inviteReason, java.util.List<java.lang.String> inviteNames, OnlineCallBack.CallBackString callBackString)
邀请用户加入指定群组。
|
static void |
login(java.lang.String userName, java.lang.String userPassword, OnlineService.LoginCallback callback)
用于登录online,邮箱,昵称登录
|
static void |
loginByPhoneNumber(java.lang.String phoneNumber, java.lang.String userPassword, OnlineService.LoginCallback callback)
用于登录online,手机号登录
|
static void |
logout(OnlineCallBack.CallBackString callBackString)
用于online注销
|
static void |
modifyNickname(java.lang.String newNickname, OnlineCallBack.CallBackString callBackString)
修改昵称
|
static void |
modifyPassword(java.lang.String oldPassword, java.lang.String newPassword, OnlineCallBack.CallBackString callBackString)
修改密码
|
static void |
processMyInvatation(java.util.List<java.lang.Integer> inviteIds, InviteFeedbackStatus feedbackStatus, java.lang.String feedbackInfo, OnlineCallBack.CallBackString callBackString)
接受或拒绝邀请(更新多个群组的邀请状态。)
|
static void |
publishService(java.lang.String dataName, EnumServiceType serviceType, OnlineCallBack.CallBackString callBackString)
发布服务
|
static void |
registerWithEmail(java.lang.String email, java.lang.String nikeName, java.lang.String password, OnlineCallBack.CallBackString callBackString)
邮箱注册
|
static void |
registerWithPhone(java.lang.String phoneNumber, java.lang.String nikename, java.lang.String SMSVerifyCode, java.lang.String password, OnlineCallBack.CallBackString callBackString)
手机号注册
|
static void |
retrievePassword(java.lang.String verifyCode, java.lang.String accountStr, boolean isPhoneAccount, OnlineCallBack.CallBackString commonCallBack)
找回密码第一步,输入图片验证码和账号
|
static void |
retrievePasswordFourth(java.lang.String newPassword, OnlineCallBack.CallBackString callBackString)
找回密码第四步,修改密码
|
static void |
retrievePasswordSecond(OnlineCallBack.CallBackString callBackString)
发送密码第二步,发送安全码
|
static void |
retrievePasswordThird(java.lang.String safeCode, OnlineCallBack.CallBackString commonCallBack)
找回密码第三步,输入安全码
|
static void |
sendSMSVerifyCodeWithPhoneNumber(java.lang.String phoneNumber, OnlineCallBack.CallBackString CallBackString)
获取手机注册验证码
|
static void |
sendVerficationCode(java.lang.String phoneNumber, OnlineCallBack.CallBackString callBackString)
绑定手机号时发送手机验证码
|
static void |
shareDataToGroup(java.util.List<java.lang.String> dataIds, java.lang.String groupId, OnlineCallBack.CallBackString callBackString)
通过数据Id共享用户数据中的私有数据到群组资源(批量更新)
|
static void |
uploadFile(java.lang.String filename, java.lang.String filePath)
上传文件
|
static void |
uploadFile(java.lang.String fileName, java.lang.String filePath, java.lang.String tags, java.lang.String description, DataType dataType, UpLoadFile.UpLoadListener UpLoadListener)
上传文件
|
static void |
uploadFile(java.lang.String filename, java.lang.String filePath, UpLoadFile.UpLoadListener UpLoadListener)
上传文件
|
static void |
validateEmail(java.lang.String email, OnlineCallBack.CallBackString callBackString)
验证绑定的邮箱
|
static void |
validatePhoneNumber(java.lang.String phoneNumber, OnlineCallBack.CallBackString callBackString)
验证绑定的手机号
|
static void |
verifyCodeImage(OnlineCallBack.CallBackBitmap callBackBitmap)
找回密码,获取验证码图片
|
static void |
verifyOldPassword(java.lang.String oldPassword, OnlineCallBack.CallBackString callBackString)
验证密码
|
public static void init(android.content.Context context)
context
- 上下文public java.lang.String getNickName()
登录成功后获取
public java.lang.String getUserName()
登录成功后获取
public static void getAllColorTable(int currentPage, OnlineCallBack.CallBackString callBackString)
currentPage
- 当前页码callBackString
- online字符串结果回调接口public static void getAllUserSymbolyLibList(int currentPage, OnlineCallBack.CallBackString callBackString)
currentPage
- 当前页码callBackString
- online字符串结果回调接口public static void getAllUserDataList(int currentPage, OnlineCallBack.CallBackString callBackString)
currentPage
- 当前页码callBackString
- online字符串结果回调接口public static void deleteService(java.lang.String dataName, EnumServiceType serviceType, OnlineCallBack.CallBackString callBackString)
dataName
- 数据名serviceType
- 服务类型callBackString
- online字符串结果回调接口public static void deleteData(java.lang.String dataName, OnlineCallBack.CallBackString callBackString)
dataName
- 将要删除的文件名字callBackString
- online字符串结果回调接口public static void retrievePasswordFourth(java.lang.String newPassword, OnlineCallBack.CallBackString callBackString)
newPassword
- 将要修改的密码callBackString
- online字符串结果回调接口public static void retrievePasswordThird(java.lang.String safeCode, OnlineCallBack.CallBackString commonCallBack)
safeCode
- 安全码commonCallBack
- online字符串结果回调接口public static void retrievePasswordSecond(OnlineCallBack.CallBackString callBackString)
callBackString
- online字符串结果回调接口public static void retrievePassword(java.lang.String verifyCode, java.lang.String accountStr, boolean isPhoneAccount, OnlineCallBack.CallBackString commonCallBack)
verifyCode
- 图片验证码accountStr
- 账号isPhoneAccount
- 是否是手机账号commonCallBack
- online字符串结果回调接口public static void verifyCodeImage(OnlineCallBack.CallBackBitmap callBackBitmap)
callBackBitmap
- online位图结果回调接口public static void getServiceList(int currentPage, int pageSize, OnlineCallBack.CallBackString commonDataCallBack)
currentPage
- 当前页码pageSize
- 当前页条数commonDataCallBack
- online字符串结果回调接口public static void changeServiceVisiblity(java.lang.String id, boolean isPublic, OnlineCallBack.CallBackString callBackString)
id
- 服务列表里面的idisPublic
- 是否公有callBackString
- online字符串结果回调接口public static void changeDataVisiblity(java.lang.String id, boolean isPublic, OnlineCallBack.CallBackString callBackString)
id
- 文件idisPublic
- 是否为公有callBackString
- online字符串结果回调接口public static void publishService(java.lang.String dataName, EnumServiceType serviceType, OnlineCallBack.CallBackString callBackString)
dataName
- 将要发布的文件名字serviceType
- 发布的服务类型callBackString
- online字符串结果回调接口public static void getDataList(int currentPage, int pageSize, OnlineCallBack.CallBackString callBackString)
currentPage
- 当前页数pageSize
- 当前页条数callBackString
- 回调public static void registerWithEmail(java.lang.String email, java.lang.String nikeName, java.lang.String password, OnlineCallBack.CallBackString callBackString)
email
- 邮箱账号nikeName
- 昵称password
- 密码callBackString
- online字符串结果回调接口public static void registerWithPhone(java.lang.String phoneNumber, java.lang.String nikename, java.lang.String SMSVerifyCode, java.lang.String password, OnlineCallBack.CallBackString callBackString)
phoneNumber
- 手机号码nikename
- 昵称SMSVerifyCode
- 手机验证码password
- 密码callBackString
- 回调public static void sendSMSVerifyCodeWithPhoneNumber(java.lang.String phoneNumber, OnlineCallBack.CallBackString CallBackString)
phoneNumber
- 手机号CallBackString
- online字符串结果回调接口public static void login(java.lang.String userName, java.lang.String userPassword, OnlineService.LoginCallback callback)
userName
- 用户名称/用户邮箱userPassword
- 用户密码callback
- 登录回调public static void loginByPhoneNumber(java.lang.String phoneNumber, java.lang.String userPassword, OnlineService.LoginCallback callback)
phoneNumber
- 用户手机号userPassword
- 用户密码callback
- 登录回调public static void logout(OnlineCallBack.CallBackString callBackString)
callBackString
- online字符串结果回调接口public static void downloadFile(android.content.Context mContext, java.lang.String filename, java.lang.String filePath)
mContext
- 上下文filename
- 文件名filePath
- 文件绝对路径public static void downloadFile(android.content.Context mContext, java.lang.String filename, java.lang.String filePath, DownloadFile.DownLoadListener downloadListener)
mContext
- 上下文filename
- 文件名filePath
- 文件绝对路径downloadListener
- 下载回调public static void downloadResourceFileById(android.content.Context context, java.lang.String fileId, java.lang.String filePath, DownloadResourceFile.DownloadListener downloadListener)
context
-fileId
- 文件idfilePath
- 文件绝对路径downloadListener
- 下载回调public static void uploadFile(java.lang.String filename, java.lang.String filePath)
filename
- 文件名filePath
- 文件在手机上的绝对路径public static void uploadFile(java.lang.String filename, java.lang.String filePath, UpLoadFile.UpLoadListener UpLoadListener)
filename
- 文件名filePath
- 文件在手机上的绝对路径UpLoadListener
- 上传回调public static void uploadFile(java.lang.String fileName, java.lang.String filePath, java.lang.String tags, java.lang.String description, DataType dataType, UpLoadFile.UpLoadListener UpLoadListener)
fileName
- 文件名filePath
- 文件在手机上的绝对路径tags
- tagsdataType
- 上传文件类型UpLoadListener
- 上传回调public static java.lang.String getDefaultJsessionidCookie()
public static void deleteServiceByName(java.lang.String serviceName, OnlineCallBack.CallBackString callBackString)
serviceName
- 服务名称callBackString
- 回调public static void deleteServiceById(java.lang.String id, OnlineCallBack.CallBackString callBackString)
id
- 被删除的服务idcallBackString
- 回调public static void verifyOldPassword(java.lang.String oldPassword, OnlineCallBack.CallBackString callBackString)
oldPassword
- 原密码callBackString
- 结果回调public static void modifyPassword(java.lang.String oldPassword, java.lang.String newPassword, OnlineCallBack.CallBackString callBackString)
oldPassword
- 原密码newPassword
- 将要改的新密码callBackString
- 结果回调public static void modifyNickname(java.lang.String newNickname, OnlineCallBack.CallBackString callBackString)
newNickname
- 将要修改的新昵称callBackString
- 结果回调public static void sendVerficationCode(java.lang.String phoneNumber, OnlineCallBack.CallBackString callBackString)
phoneNumber
- 手机号callBackString
- 结果回调public static void bindPhoneNumber(java.lang.String phoneNumber, java.lang.String verifyCode, OnlineCallBack.CallBackString callBackString)
phoneNumber
- 手机号verifyCode
- 验证码callBackString
- 结果回调public static void bindEmail(java.lang.String email, OnlineCallBack.CallBackString callBackString)
email
- 将要绑定的邮箱callBackString
- 绑定邮箱的回调public static void validateEmail(java.lang.String email, OnlineCallBack.CallBackString callBackString)
email
- 邮箱callBackString
- 回调public static void validatePhoneNumber(java.lang.String phoneNumber, OnlineCallBack.CallBackString callBackString)
phoneNumber
- 手机号callBackString
- 结果回调public static void getAccountInfoByType(java.lang.String name, AccountInfoType type, OnlineService.AccountInfoByTypeCallback accountInfoByTypeCallback)
name
- 昵称type
- 0:用户昵称 1:电话号码 2:用户邮箱accountInfoByTypeCallback
- 结果回调public static void getGroupsInfo(int currentPage, int pageSize, GroupOrderBy groupOrderBy, java.lang.String keywords, JoinTypes[] joinTypes, OrderType odrerType, OnlineCallBack.CallBackString callBackString)
currentPage
- 当前页数pageSize
- 当前页条数groupOrderBy
- 通过什么排序odrerType
- 排序类型,升序(ASC) or 降序(DESC)keywords
- 关键词查询(不需要则设置为null)joinTypes
- 群组的类型callBackString
- 回调public static void getMyGroupsInfo(int currentPage, int pageSize, GroupOrderBy groupOrderBy, java.lang.String keywords, OrderType orderType, OnlineCallBack.CallBackString callBackString)
currentPage
- 当前页数pageSize
- 当前页条数groupOrderBy
- 通过什么排序orderType
- 排序类型,升序(ASC) or 降序(DESC)keywords
- 关键词(可为null)callBackString
- 回调public static void createGroup(java.lang.String groupName, java.lang.String tags, boolean isPublic, java.lang.String description, GroupRole groupRole, boolean isNeedCheck, OnlineCallBack.CallBackString callBackString)
groupName
- 群组名称tags
- 群组标签isPublic
- 是否公开description
- 群组描述信息groupRole
- 群组的资源分享者isNeedCheck
- 申请加入群组时是否需要审核callBackString
- 回调public static void deleteGroup(java.util.List<java.lang.String> groupsIds, GroupDeleteListener groupDeleteListener)
groupsIds
- 群组Id集合groupDeleteListener
- 回调public static void shareDataToGroup(java.util.List<java.lang.String> dataIds, java.lang.String groupId, OnlineCallBack.CallBackString callBackString)
dataIds
- 文件Id集合groupId
- 群组Idpublic static void getGroupInfo(java.lang.String groupId, OnlineCallBack.CallBackString callBackString)
groupId
- 群组IdcallBackString
- 回调public static void getGroupResources(java.lang.String groupId, int currentPage, int pageSize, java.lang.String keywords, ResourceOrderBy resourceOrderBy, OrderType orderType, java.lang.String resourceCreator, OnlineCallBack.CallBackString callBackString)
currentPage
- 当前页数pageSize
- 当前页条数keywords
- 关键词resourceOrderBy
- 通过什么排序orderType
- 排序类型,升序(ASC) or 降序(DESC)resourceCreator
- 资源的创建者callBackString
- 回调public static void inviteUsersToGroup(java.lang.String groupId, java.lang.String inviteReason, java.util.List<java.lang.String> inviteNames, OnlineCallBack.CallBackString callBackString)
groupId
- 邀请加入的群组idinviteReason
- 邀请加入群组的原因inviteNames
- 被邀请人昵称callBackString
- 回调public static void applyToGroups(java.util.List<java.lang.String> groupIds, java.lang.String applyReason, java.lang.String applicant, OnlineCallBack.CallBackString callBackString)
groupIds
- 申请加入的群组idapplyReason
- 申请加入群组的原因applicant
- 申请人昵称callBackString
- 回调public static void checkGroupApply(java.lang.String groupId, java.util.List<java.lang.Integer> applyIds, boolean isAccepted, OnlineCallBack.CallBackString callBackString)
groupId
- 群组IDapplyIds
- 申请IDisAccepted
- 是否接受public static void getGroupApply(java.lang.String groupId, int currentPage, int pageSize, GroupCheckStatus groupCheckStatus, OrderType orderType, OnlineCallBack.CallBackString callBackString)
groupId
- 群组IDcurrentPage
- 当前页数pageSize
- 当前页条数orderType
- 排序类型,升序(ASC) or 降序(DESC)groupCheckStatus
- 群组审核状态callBackString
- 回调public static void getMyInvatation(int currentPage, int pageSize, InviteFeedbackStatus feedbackStatus, OrderType orderType, InviteOrderby inviteOrderby, GroupInviteRole groupInviteRole, OnlineCallBack.CallBackString callBackString)
currentPage
-pageSize
-feedbackStatus
-orderType
-inviteOrderby
-groupInviteRole
-callBackString
-public static void processMyInvatation(java.util.List<java.lang.Integer> inviteIds, InviteFeedbackStatus feedbackStatus, java.lang.String feedbackInfo, OnlineCallBack.CallBackString callBackString)
inviteIds
- 邀请IDfeedbackStatus
- 反馈状态,只能是 ACCEPTED 或者是 REFUSED。feedbackInfo
- 反馈信息。callBackString
-public static void deleteGroupMembers(java.util.List<java.lang.String> userIds, java.lang.String groupId, GroupDeleteListener groupDeleteListener)
userIds
- 用户ID集合groupDeleteListener
- 回调public static void getDataInfo(java.lang.String dataId, OnlineCallBack.CallBackString callBackString)
dataId
- 当前页码callBackString
-