com.supermap.onlineservices
Class OnlineService
- java.lang.Object
-
- com.supermap.onlineservices.OnlineService
-
public class OnlineService extends java.lang.Object
The class OnlineService focuses on the login and logout
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static interface
OnlineService.AccountInfoByTypeCallback
Gets the account information callbackstatic interface
OnlineService.LoginCallback
The login callback interface for verifying users' login.
-
Constructor Summary
Constructors Constructor and Description OnlineService(android.content.Context context)
The constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static void
applyToGroups(java.util.List<java.lang.String> groupIds, java.lang.String applyReason, java.lang.String applicant, OnlineCallBack.CallBackString callBackString)
User applies for adding a group.static void
bindEmail(java.lang.String email, OnlineCallBack.CallBackString callBackString)
Binds an email addressstatic void
bindPhoneNumber(java.lang.String phoneNumber, java.lang.String verifyCode, OnlineCallBack.CallBackString callBackString)
Binds a phone numberstatic void
changeDataVisiblity(java.lang.String id, boolean isPublic, OnlineCallBack.CallBackString callBackString)
Modifies my data statusstatic void
changeServiceVisiblity(java.lang.String id, boolean isPublic, OnlineCallBack.CallBackString callBackString)
Sets the status of service to public or privatestatic void
checkGroupApply(java.lang.String groupId, java.util.List<java.lang.Integer> applyIds, boolean isAccepted, OnlineCallBack.CallBackString callBackString)
Checks all applications of the group in bulk.static void
createGroup(java.lang.String groupName, java.lang.String tags, boolean isPublic, java.lang.String description, GroupRole groupRole, boolean isNeedCheck, OnlineCallBack.CallBackString callBackString)
Create a groupstatic void
deleteData(java.lang.String dataName, OnlineCallBack.CallBackString callBackString)
Delete data as namesstatic void
deleteGroup(java.util.List<java.lang.String> groupsIds, GroupDeleteListener groupDeleteListener)
Deletes groups in bulkstatic void
deleteGroupMembers(java.util.List<java.lang.String> userIds, java.lang.String groupId, GroupDeleteListener groupDeleteListener)
Deletes members from groups in bulkstatic void
deleteService(java.lang.String dataName, EnumServiceType serviceType, OnlineCallBack.CallBackString callBackString)
Deletes servicestatic void
deleteServiceById(java.lang.String id, OnlineCallBack.CallBackString callBackString)
Deletes a service by its idstatic void
deleteServiceByName(java.lang.String serviceName, OnlineCallBack.CallBackString callBackString)
Deletes a service by its namestatic void
downloadFile(android.content.Context mContext, java.lang.String filename, java.lang.String filePath)
Downloads filesstatic void
downloadFile(android.content.Context mContext, java.lang.String filename, java.lang.String filePath, DownloadFile.DownLoadListener downloadListener)
Downloads filesstatic void
downloadResourceFileById(android.content.Context context, java.lang.String fileId, java.lang.String filePath, DownloadResourceFile.DownloadListener downloadListener)
Downloads files public in the data resource or sharing in a group.static void
getAccountInfoByType(java.lang.String name, AccountInfoType type, OnlineService.AccountInfoByTypeCallback accountInfoByTypeCallback)
Gets id of a user by its nicknamestatic void
getAllColorTable(int currentPage, OnlineCallBack.CallBackString callBackString)
Gets the color table data Gets data in some page (9 lines of data in each page)static void
getAllUserDataList(int currentPage, OnlineCallBack.CallBackString callBackString)
Gets the user data.static void
getAllUserSymbolyLibList(int currentPage, OnlineCallBack.CallBackString callBackString)
Gets symbol libraries 9 records of data in each pagestatic void
getDataInfo(java.lang.String dataId, OnlineCallBack.CallBackString callBackString)
Searches basic information of data according to IDstatic void
getDataList(int currentPage, int pageSize, OnlineCallBack.CallBackString callBackString)
Gets my datastatic java.lang.String
getDefaultJsessionidCookie()
Gets JsessionidCookiestatic void
getGroupApply(java.lang.String groupId, int currentPage, int pageSize, GroupCheckStatus groupCheckStatus, OrderType orderType, OnlineCallBack.CallBackString callBackString)
Gets the application list information of the current group.static void
getGroupInfo(java.lang.String groupId, OnlineCallBack.CallBackString callBackString)
Checks resource information of a groupstatic 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)
Check data resource of a group Once members of a group get data ID, they can download data directlystatic void
getGroupsInfo(int currentPage, int pageSize, GroupOrderBy groupOrderBy, java.lang.String keywords, JoinTypes[] joinTypes, OrderType odrerType, OnlineCallBack.CallBackString callBackString)
Gets the group list that the current user has permissions to check.static void
getMyGroupsInfo(int currentPage, int pageSize, GroupOrderBy groupOrderBy, java.lang.String keywords, OrderType orderType, OnlineCallBack.CallBackString callBackString)
Gets the groups that the current user createdstatic void
getMyInvatation(int currentPage, int pageSize, InviteFeedbackStatus feedbackStatus, OrderType orderType, InviteOrderby inviteOrderby, GroupInviteRole groupInviteRole, OnlineCallBack.CallBackString callBackString)
Gets the invitation list information related to the current user.java.lang.String
getNickName()
Returns the nick name Gets after logging in successfullystatic void
getServiceList(int currentPage, int pageSize, OnlineCallBack.CallBackString commonDataCallBack)
Gets the service list All services are sorted in descending order by timejava.lang.String
getUserName()
Returns the username Gets after logging in successfullystatic void
init(android.content.Context context)
The constructor.static void
inviteUsersToGroup(java.lang.String groupId, java.lang.String inviteReason, java.util.List<java.lang.String> inviteNames, OnlineCallBack.CallBackString callBackString)
Invites users to join a specified group in bulk.static void
login(java.lang.String userName, java.lang.String userPassword, OnlineService.LoginCallback callback)
For logging in online with an e-mail or a nicknamestatic void
loginByPhoneNumber(java.lang.String phoneNumber, java.lang.String userPassword, OnlineService.LoginCallback callback)
For logging in online with a phone numberstatic void
logout(OnlineCallBack.CallBackString callBackString)
For logout onlinestatic void
modifyNickname(java.lang.String newNickname, OnlineCallBack.CallBackString callBackString)
Modifies a nicknamestatic void
modifyPassword(java.lang.String oldPassword, java.lang.String newPassword, OnlineCallBack.CallBackString callBackString)
Modifies a passwordstatic void
processMyInvatation(java.util.List<java.lang.Integer> inviteIds, InviteFeedbackStatus feedbackStatus, java.lang.String feedbackInfo, OnlineCallBack.CallBackString callBackString)
Accepts or refuses the invitation (updating invitation status of multiple groups)static void
publishService(java.lang.String dataName, EnumServiceType serviceType, OnlineCallBack.CallBackString callBackString)
Publishes servicestatic void
registerWithEmail(java.lang.String email, java.lang.String nikeName, java.lang.String password, OnlineCallBack.CallBackString callBackString)
E-mail registrationstatic void
registerWithPhone(java.lang.String phoneNumber, java.lang.String nikename, java.lang.String SMSVerifyCode, java.lang.String password, OnlineCallBack.CallBackString callBackString)
Registers with a phone numberstatic void
retrievePassword(java.lang.String verifyCode, java.lang.String accountStr, boolean isPhoneAccount, OnlineCallBack.CallBackString commonCallBack)
The first step for resetting your password: entering the security code in the image and an accountstatic void
retrievePasswordFourth(java.lang.String newPassword, OnlineCallBack.CallBackString callBackString)
The fourth step for resetting your password: modifying your passwordstatic void
retrievePasswordSecond(OnlineCallBack.CallBackString callBackString)
The second step for resetting your password: sending a security codestatic void
retrievePasswordThird(java.lang.String safeCode, OnlineCallBack.CallBackString commonCallBack)
The third step for resetting your password: entering a security codestatic void
sendSMSVerifyCodeWithPhoneNumber(java.lang.String phoneNumber, OnlineCallBack.CallBackString CallBackString)
Gets a cell phone verification codestatic void
sendVerficationCode(java.lang.String phoneNumber, OnlineCallBack.CallBackString callBackString)
Sends a verification code when binding a phone numbervoid
setHostnameVerifier(X509HostnameVerifier hostnameVerifier)
Set the host name validator Used to verify host names when accessing https addressesstatic void
shareDataToGroup(java.util.List<java.lang.String> dataIds, java.lang.String groupId, OnlineCallBack.CallBackString callBackString)
Shares private data to groups in bulk using data IDstatic void
uploadFile(java.lang.String filename, java.lang.String filePath)
Uploads filesstatic void
uploadFile(java.lang.String fileName, java.lang.String filePath, java.lang.String tags, java.lang.String description, DataType dataType, UpLoadFile.UpLoadListener UpLoadListener)
Uploads filesstatic void
uploadFile(java.lang.String filename, java.lang.String filePath, UpLoadFile.UpLoadListener UpLoadListener)
Uploads filesstatic void
validateEmail(java.lang.String email, OnlineCallBack.CallBackString callBackString)
Verifies the bound emailstatic void
validatePhoneNumber(java.lang.String phoneNumber, OnlineCallBack.CallBackString callBackString)
Verifies the bound phone numberstatic void
verifyCodeImage(OnlineCallBack.CallBackBitmap callBackBitmap)
Finds the password and gets a verification picturestatic void
verifyOldPassword(java.lang.String oldPassword, OnlineCallBack.CallBackString callBackString)
Verifies a password
-
-
-
Constructor Detail
-
OnlineService
public OnlineService(android.content.Context context)
The constructor.- Parameters:
context
- The context.
-
-
Method Detail
-
init
public static void init(android.content.Context context)
The constructor.- Parameters:
context
- The context.
-
getNickName
public java.lang.String getNickName()
Returns the nick nameGets after logging in successfully
- Returns:
- Returns the nick name
-
getUserName
public java.lang.String getUserName()
Returns the usernameGets after logging in successfully
- Returns:
- Returns the username
-
getAllColorTable
public static void getAllColorTable(int currentPage, OnlineCallBack.CallBackString callBackString)
Gets the color table data Gets data in some page (9 lines of data in each page)- Parameters:
currentPage
- the current page numbercallBackString
- the result callback interface
-
getAllUserSymbolyLibList
public static void getAllUserSymbolyLibList(int currentPage, OnlineCallBack.CallBackString callBackString)
Gets symbol libraries 9 records of data in each page- Parameters:
currentPage
- the current page numbercallBackString
- the result callback interface
-
getAllUserDataList
public static void getAllUserDataList(int currentPage, OnlineCallBack.CallBackString callBackString)
Gets the user data. All user data is displayed by 9 records in each page- Parameters:
currentPage
- the current page numbercallBackString
- the result callback interface
-
deleteService
public static void deleteService(java.lang.String dataName, EnumServiceType serviceType, OnlineCallBack.CallBackString callBackString)
Deletes service- Parameters:
dataName
- the name of dataserviceType
- the service typecallBackString
- the result callback interface
-
deleteData
public static void deleteData(java.lang.String dataName, OnlineCallBack.CallBackString callBackString)
Delete data as names- Parameters:
dataName
- the name of data to be deletedcallBackString
- the result callback interface
-
retrievePasswordFourth
public static void retrievePasswordFourth(java.lang.String newPassword, OnlineCallBack.CallBackString callBackString)
The fourth step for resetting your password: modifying your password- Parameters:
newPassword
- The password to be modifiedcallBackString
- the result callback interface
-
retrievePasswordThird
public static void retrievePasswordThird(java.lang.String safeCode, OnlineCallBack.CallBackString commonCallBack)
The third step for resetting your password: entering a security code- Parameters:
safeCode
- the security codecommonCallBack
- the result callback interface
-
retrievePasswordSecond
public static void retrievePasswordSecond(OnlineCallBack.CallBackString callBackString)
The second step for resetting your password: sending a security code- Parameters:
callBackString
- the result callback interface
-
retrievePassword
public static void retrievePassword(java.lang.String verifyCode, java.lang.String accountStr, boolean isPhoneAccount, OnlineCallBack.CallBackString commonCallBack)
The first step for resetting your password: entering the security code in the image and an account- Parameters:
verifyCode
- the security code in the imageaccountStr
- the accountisPhoneAccount
- Whether the account is a phone numbercommonCallBack
- the result callback interface
-
verifyCodeImage
public static void verifyCodeImage(OnlineCallBack.CallBackBitmap callBackBitmap)
Finds the password and gets a verification picture- Parameters:
callBackBitmap
- the online bit map result callback interface
-
getServiceList
public static void getServiceList(int currentPage, int pageSize, OnlineCallBack.CallBackString commonDataCallBack)
Gets the service list All services are sorted in descending order by time- Parameters:
currentPage
- the current page numberpageSize
- the number of lines in the current pagecommonCallBack
- the online string result callback interface
-
changeServiceVisiblity
public static void changeServiceVisiblity(java.lang.String id, boolean isPublic, OnlineCallBack.CallBackString callBackString)
Sets the status of service to public or private- Parameters:
id
- id in the service listisPublic
- whether it is publiccallBackString
- the result callback interface
-
changeDataVisiblity
public static void changeDataVisiblity(java.lang.String id, boolean isPublic, OnlineCallBack.CallBackString callBackString)
Modifies my data status- Parameters:
id
- File idisPublic
- whether it is publiccallBackString
- the result callback interface
-
publishService
public static void publishService(java.lang.String dataName, EnumServiceType serviceType, OnlineCallBack.CallBackString callBackString)
Publishes service- Parameters:
dataName
- the name of data to be publishedserviceType
- the service types to be publishedcallBackString
- the result callback interface
-
getDataList
public static void getDataList(int currentPage, int pageSize, OnlineCallBack.CallBackString callBackString)
Gets my data- Parameters:
currentPage
- the current page numberpageSize
- the number of lines in the current pagecallBackString
- callback
-
registerWithEmail
public static void registerWithEmail(java.lang.String email, java.lang.String nikeName, java.lang.String password, OnlineCallBack.CallBackString callBackString)
E-mail registration- Parameters:
email
- Email accountsnikeName
- the nicknamepassword
- the passwordcallBackString
- the result callback interface
-
registerWithPhone
public static void registerWithPhone(java.lang.String phoneNumber, java.lang.String nikename, java.lang.String SMSVerifyCode, java.lang.String password, OnlineCallBack.CallBackString callBackString)
Registers with a phone number- Parameters:
phoneNumber
- the phone numbernikename
- the nicknameSMSVerifyCode
- cell phone verification codepassword
- the passwordcallBackString
- callback
-
sendSMSVerifyCodeWithPhoneNumber
public static void sendSMSVerifyCodeWithPhoneNumber(java.lang.String phoneNumber, OnlineCallBack.CallBackString CallBackString)
Gets a cell phone verification code- Parameters:
phoneNumber
- the phone numberCallBackString
- the result callback interface
-
login
public static void login(java.lang.String userName, java.lang.String userPassword, OnlineService.LoginCallback callback)
For logging in online with an e-mail or a nickname- Parameters:
userName
- Username/EmailuserPassword
- Passwordcallback
- the login callback
-
loginByPhoneNumber
public static void loginByPhoneNumber(java.lang.String phoneNumber, java.lang.String userPassword, OnlineService.LoginCallback callback)
For logging in online with a phone number- Parameters:
phoneNumber
- the user phone numberuserPassword
- Passwordcallback
- the login callback
-
logout
public static void logout(OnlineCallBack.CallBackString callBackString)
For logout online- Parameters:
callBackString
- the result callback interface
-
downloadFile
public static void downloadFile(android.content.Context mContext, java.lang.String filename, java.lang.String filePath)
Downloads files- Parameters:
mContext
- The context.filename
- the name of the filefilePath
- the absolute path of the file
-
downloadFile
public static void downloadFile(android.content.Context mContext, java.lang.String filename, java.lang.String filePath, DownloadFile.DownLoadListener downloadListener)
Downloads files- Parameters:
mContext
- The context.filename
- the name of the filefilePath
- the absolute path of the filedownloadListener
- the download callback
-
downloadResourceFileById
public static void downloadResourceFileById(android.content.Context context, java.lang.String fileId, java.lang.String filePath, DownloadResourceFile.DownloadListener downloadListener)
Downloads files public in the data resource or sharing in a group.- Parameters:
context
-fileId
- file idfilePath
- the absolute path of the filedownloadListener
- the download callback
-
uploadFile
public static void uploadFile(java.lang.String filename, java.lang.String filePath)
Uploads files- Parameters:
filename
- the name of the filefilePath
- The absolute path of a file in a phone
-
uploadFile
public static void uploadFile(java.lang.String filename, java.lang.String filePath, UpLoadFile.UpLoadListener UpLoadListener)
Uploads files- Parameters:
filename
- the name of the filefilePath
- The absolute path of a file in a phoneUpLoadListener
- the upload callback
-
uploadFile
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)
Uploads files- Parameters:
fileName
- the name of the filefilePath
- The absolute path of a file in a phonetags
- tagsdataType
- the type of the file to be uploadedUpLoadListener
- the upload callback
-
getDefaultJsessionidCookie
public static java.lang.String getDefaultJsessionidCookie()
Gets JsessionidCookie- Returns:
- Gets JsessionidCookie
-
deleteServiceByName
public static void deleteServiceByName(java.lang.String serviceName, OnlineCallBack.CallBackString callBackString)
Deletes a service by its name- Parameters:
serviceName
- service name.callBackString
- callback
-
deleteServiceById
public static void deleteServiceById(java.lang.String id, OnlineCallBack.CallBackString callBackString)
Deletes a service by its id- Parameters:
id
- The id of the service to be deletedcallBackString
- callback
-
verifyOldPassword
public static void verifyOldPassword(java.lang.String oldPassword, OnlineCallBack.CallBackString callBackString)
Verifies a password- Parameters:
oldPassword
- The old passwordcallBackString
- the result callback
-
modifyPassword
public static void modifyPassword(java.lang.String oldPassword, java.lang.String newPassword, OnlineCallBack.CallBackString callBackString)
Modifies a password- Parameters:
oldPassword
- The old passwordnewPassword
- The password to be modifiedcallBackString
- the result callback
-
modifyNickname
public static void modifyNickname(java.lang.String newNickname, OnlineCallBack.CallBackString callBackString)
Modifies a nickname- Parameters:
newNickname
- the nickname to be modifiedcallBackString
- the result callback
-
sendVerficationCode
public static void sendVerficationCode(java.lang.String phoneNumber, OnlineCallBack.CallBackString callBackString)
Sends a verification code when binding a phone number- Parameters:
phoneNumber
- the phone numbercallBackString
- the result callback
-
bindPhoneNumber
public static void bindPhoneNumber(java.lang.String phoneNumber, java.lang.String verifyCode, OnlineCallBack.CallBackString callBackString)
Binds a phone number- Parameters:
phoneNumber
- the phone numberverifyCode
- the verification codecallBackString
- the result callback
-
bindEmail
public static void bindEmail(java.lang.String email, OnlineCallBack.CallBackString callBackString)
Binds an email address- Parameters:
email
- the email address to be boundcallBackString
- the callback after binding an email adress
-
validateEmail
public static void validateEmail(java.lang.String email, OnlineCallBack.CallBackString callBackString)
Verifies the bound email- Parameters:
email
- the email addresscallBackString
- callback
-
validatePhoneNumber
public static void validatePhoneNumber(java.lang.String phoneNumber, OnlineCallBack.CallBackString callBackString)
Verifies the bound phone number- Parameters:
phoneNumber
- the phone numbercallBackString
- the result callback
-
getAccountInfoByType
public static void getAccountInfoByType(java.lang.String name, AccountInfoType type, OnlineService.AccountInfoByTypeCallback accountInfoByTypeCallback)
Gets id of a user by its nickname- Parameters:
name
- nicknametype
- 0: nickname 1: phone number 2: emal addressaccountInfoByTypeCallback
- the result callback
-
getGroupsInfo
public static void getGroupsInfo(int currentPage, int pageSize, GroupOrderBy groupOrderBy, java.lang.String keywords, JoinTypes[] joinTypes, OrderType odrerType, OnlineCallBack.CallBackString callBackString)
Gets the group list that the current user has permissions to check. To get a specified group list, use the key words of groups. Search according to group types joinTypes including CREATE (you created), JOINED (you have joined), CANJOIN (you can join)- Parameters:
currentPage
- The current page numberpageSize
- The number of items in the current pagegroupOrderBy
- What is the order typeodrerType
- Ordering types. Ascending (ASC) or descending (DESC)keywords
- Keyword query (if you don't need it, set it to null)joinTypes
- The group typecallBackString
- Callback
-
getMyGroupsInfo
public static void getMyGroupsInfo(int currentPage, int pageSize, GroupOrderBy groupOrderBy, java.lang.String keywords, OrderType orderType, OnlineCallBack.CallBackString callBackString)
Gets the groups that the current user created- Parameters:
currentPage
- The current page numberpageSize
- The number of items in the current pagegroupOrderBy
- What is the order typeorderType
- Ordering types. Ascending (ASC) or descending (DESC)keywords
- keyword (null is acceptable)callBackString
- Callback
-
createGroup
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)
Create a group- Parameters:
groupName
- The group nametags
- Group tagsisPublic
- Whether to publicdescription
- The group description informationgroupRole
- the resource sharer of groupisNeedCheck
- Whether to verify the user who applies to join a groupcallBackString
- Callback
-
deleteGroup
public static void deleteGroup(java.util.List<java.lang.String> groupsIds, GroupDeleteListener groupDeleteListener)
Deletes groups in bulk- Parameters:
groupsIds
- Group Id collectiongroupDeleteListener
- Callback
-
shareDataToGroup
public static void shareDataToGroup(java.util.List<java.lang.String> dataIds, java.lang.String groupId, OnlineCallBack.CallBackString callBackString)
Shares private data to groups in bulk using data ID- Parameters:
dataIds
- File Id collectiongroupId
- Group Id
-
getGroupInfo
public static void getGroupInfo(java.lang.String groupId, OnlineCallBack.CallBackString callBackString)
Checks resource information of a group- Parameters:
groupId
- Group IdcallBackString
- Callback
-
getGroupResources
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)
Check data resource of a group Once members of a group get data ID, they can download data directly- Parameters:
currentPage
- The current page numberpageSize
- The number of items in the current pagekeywords
- Key wordsresourceOrderBy
- What is the order typeorderType
- Ordering types. Ascending (ASC) or descending (DESC)resourceCreator
- The creator who created the resourcecallBackString
- Callback
-
inviteUsersToGroup
public static void inviteUsersToGroup(java.lang.String groupId, java.lang.String inviteReason, java.util.List<java.lang.String> inviteNames, OnlineCallBack.CallBackString callBackString)
Invites users to join a specified group in bulk. Only the owner of the group has the permission.- Parameters:
groupId
- The target group idinviteReason
- The reason why you want to invite a memberinviteNames
- The nickname of the user who you want to invitecallBackString
- Callback
-
applyToGroups
public static void applyToGroups(java.util.List<java.lang.String> groupIds, java.lang.String applyReason, java.lang.String applicant, OnlineCallBack.CallBackString callBackString)
User applies for adding a group. If join a group does not need to verify, user can join it directly. Otherwise, user can join a group until the creator agrees The name of applicant must be the same as the current user- Parameters:
groupIds
- The target group idapplyReason
- The reason why you want to join the groupapplicant
- The nickname of the user who applies to join the groupcallBackString
- Callback
-
checkGroupApply
public static void checkGroupApply(java.lang.String groupId, java.util.List<java.lang.Integer> applyIds, boolean isAccepted, OnlineCallBack.CallBackString callBackString)
Checks all applications of the group in bulk. Supports auditing the specific application according to its id- Parameters:
groupId
- Group IDapplyIds
- Application IDisAccepted
- Accept or not?
-
getGroupApply
public static void getGroupApply(java.lang.String groupId, int currentPage, int pageSize, GroupCheckStatus groupCheckStatus, OrderType orderType, OnlineCallBack.CallBackString callBackString)
Gets the application list information of the current group. Including application information, passed application information, and privileged audit.- Parameters:
groupId
- Group IDcurrentPage
- The current page numberpageSize
- The number of items in the current pageorderType
- Ordering types. Ascending (ASC) or descending (DESC)groupCheckStatus
- The checking statuscallBackString
- Callback
-
getMyInvatation
public static void getMyInvatation(int currentPage, int pageSize, InviteFeedbackStatus feedbackStatus, OrderType orderType, InviteOrderby inviteOrderby, GroupInviteRole groupInviteRole, OnlineCallBack.CallBackString callBackString)
Gets the invitation list information related to the current user. If the parameter is not set, returns all invitation list information related to the current user.- Parameters:
currentPage
-pageSize
-feedbackStatus
-orderType
-inviteOrderby
-groupInviteRole
-callBackString
-
-
processMyInvatation
public static void processMyInvatation(java.util.List<java.lang.Integer> inviteIds, InviteFeedbackStatus feedbackStatus, java.lang.String feedbackInfo, OnlineCallBack.CallBackString callBackString)
Accepts or refuses the invitation (updating invitation status of multiple groups)- Parameters:
inviteIds
- Invitation IDfeedbackStatus
- Feedback status (ACCEPTED or REFUSED).feedbackInfo
- Feedback information.callBackString
-
-
deleteGroupMembers
public static void deleteGroupMembers(java.util.List<java.lang.String> userIds, java.lang.String groupId, GroupDeleteListener groupDeleteListener)
Deletes members from groups in bulk- Parameters:
userIds
- User ID collectiongroupDeleteListener
- Callback
-
getDataInfo
public static void getDataInfo(java.lang.String dataId, OnlineCallBack.CallBackString callBackString)
Searches basic information of data according to ID- Parameters:
dataId
- The current page numbercallBackString
-
-
setHostnameVerifier
public void setHostnameVerifier(X509HostnameVerifier hostnameVerifier)
Set the host name validatorUsed to verify host names when accessing https addresses
- Parameters:
hostnameVerifier
- hostnameVerifier Host name validator
-
-