Class ServerService
java.lang.Object
com.github.jamesnetherton.zulip.client.api.server.ServerService
- All Implemented Interfaces:
ZulipService
Zulip server management APIs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddApnsDeviceToken(String token, String appId) Adds an APNs device token to register for iOS push notificationsaddCodePlayground(String name, String pygmentsLanguage, String urlTemplate) Adds a code playground.addFcmRegistrationToken(String token) Adds an FCM registration token.addLinkifier(String pattern, String urlTemplate) Adds a linkifier.addRealmDomain(String domain, boolean allowSubdomains) Adds a domain to the set of allowed email domains in the organization.createBigBlueButtonVideoCall(String meetingName) Creates a BigBlueButton video call.Creates a Constructor Groups video call URL.Creates a custom profile field.Creates a data export.createNextcloudTalkVideoCall(String roomName) Creates a Nextcloud Talk video call URL.Creates a Webex video call URL.deactivateEmoji(String emojiName) Deactivates a custom emoji.deleteCustomProfileField(long profileFieldId) Deletes a custom profile field.deleteLinkifier(long id) Deletes a linkifier.deleteRealmDomain(String domain) Removes a domain from the set of allowed email domains in the organization.Gets all data exports.Gets a user development API key.Retrieves data stored for the bot user.Gets all custom profile fields.Gets users that have consented to their private data being exported.getDevelopmentApiKey(String username) Gets a user development API key.getEmoji()Gets all custom emoji.Gets all linkifiers.Gets the allowed email domains configured in the organization.Gets Zulip server organization settings.jwtFetchApiKey(String token) Fetches a Zulip API key using a JWT token.Registers a logged-in device as an initial step before registering for E2EE push notifications.registerE2EMobilePushDevice(TokenKind tokenKind, int pushAccountId, String pushPublicKey, String bouncerPublicKey, String encryptedPushRegistration) Registers a E2E mobile push device.removeApnsDeviceToken(String token) Removes an APNs device token.Deletes data stored for the bot user.removeClientDevice(long deviceId) Removes a registered device when the user logs out.removeCodePlayground(long codePlaygroundId) Removes a code playground.removeFcmRegistrationToken(String token) Removes an FCM registration token.reorderCustomProfileFields(int... order) Reorders custom profile fields.reorderLinkifiers(long... order) Reorders linkifiers.Sends E2E mobile push test notifications.Sends mobile push test notifications.testWelcomeBotCustomMessage(String welcomeMessageCustomTest) Tests the welcome bot custom message.updateBotStorage(Map<String, String> data) Adds or updates data stored for the bot user.updateLinkifier(long id, String pattern, String urlTemplate) Updates a linkifier.updateRealmDomain(String domain, boolean allowSubdomains) Updates whether subdomains are allowed for an existing realm domain.Updates realm level default settings for new users.uploadEmoji(String name, File emojiFile) Uploads a custom emoji image file.
-
Constructor Details
-
ServerService
Constructs aServerService.- Parameters:
client- The Zulip HTTP client
-
-
Method Details
-
addLinkifier
Adds a linkifier.- Parameters:
pattern- The regular expression that should trigger the linkifierurlTemplate- The RFC 6570 compliant URL template used for the link- Returns:
- The
AddLinkifierApiRequestbuilder object - See Also:
-
updateLinkifier
Updates a linkifier.- Parameters:
id- The id of the linkifier to updatepattern- The regular expression that should trigger the linkifierurlTemplate- The RFC 6570 compliant URL template used for the link- Returns:
- The
UpdateLinkifierApiRequestbuilder object - See Also:
-
deleteLinkifier
Deletes a linkifier.- Parameters:
id- The id of the linkifier to delete- Returns:
- The
DeleteLinkifierApiRequestbuilder object - See Also:
-
getLinkifiers
Gets all linkifiers.- Returns:
- The
GetLinkifiersApiRequestbuilder object - See Also:
-
reorderLinkifiers
Reorders linkifiers.- Parameters:
order- The array of linkifier ids representing their order- Returns:
- The
ReorderLinkifiersApiRequestbuilder object - See Also:
-
uploadEmoji
Uploads a custom emoji image file.- Parameters:
name- The name of the emojiemojiFile- The file containing the emoji image to be uploaded- Returns:
- The
UploadEmojiApiRequestbuilder object - See Also:
-
getEmoji
Gets all custom emoji.- Returns:
- The
GetAllEmojiApiRequestbuilder object - See Also:
-
deactivateEmoji
Deactivates a custom emoji.- Parameters:
emojiName- The name of the custom emoji to deactivate- Returns:
- The
DeactivateEmojiApiRequestbuilder object - See Also:
-
getRealmDomains
Gets the allowed email domains configured in the organization.- Returns:
- The
GetRealmDomainsApiRequestbuilder object - See Also:
-
addRealmDomain
Adds a domain to the set of allowed email domains in the organization. Requires organization owner permissions.- Parameters:
domain- The domain to addallowSubdomains- Whether subdomains are allowed for this domain- Returns:
- The
AddRealmDomainApiRequestbuilder object - See Also:
-
updateRealmDomain
Updates whether subdomains are allowed for an existing realm domain. Requires organization owner permissions.- Parameters:
domain- The domain to updateallowSubdomains- Whether subdomains are allowed for this domain- Returns:
- The
UpdateRealmDomainApiRequestbuilder object - See Also:
-
deleteRealmDomain
Removes a domain from the set of allowed email domains in the organization. Requires organization owner permissions.- Parameters:
domain- The domain to remove- Returns:
- The
DeleteRealmDomainApiRequestbuilder object - See Also:
-
getBotStorage
Retrieves data stored for the bot user. Only available to bot user accounts.- Returns:
- The
GetBotStorageApiRequestbuilder object - See Also:
-
updateBotStorage
Adds or updates data stored for the bot user. Only available to bot user accounts.- Parameters:
data- Map of string key-value pairs to store- Returns:
- The
UpdateBotStorageApiRequestbuilder object - See Also:
-
removeBotStorage
Deletes data stored for the bot user. Only available to bot user accounts.- Returns:
- The
RemoveBotStorageApiRequestbuilder object - See Also:
-
getServerSettings
Gets Zulip server organization settings.- Returns:
- The
GetServerSettingsApiRequestbuilder object - See Also:
-
getCustomProfileFields
Gets all custom profile fields.- Returns:
- The
GetProfileFieldsApiRequestbuilder object - See Also:
-
reorderCustomProfileFields
Reorders custom profile fields.- Parameters:
order- The array of custom profile field ids in the order that they should appear on the Zulip UI- Returns:
- The
ReorderProfileFieldsApiRequestbuilder object - See Also:
-
deleteCustomProfileField
Deletes a custom profile field.- Parameters:
profileFieldId- The id of the profile field to delete- Returns:
- The
DeleteProfileFieldApiRequestbuilder object.
-
createCustomProfileField
Creates a custom profile field.
This API is only available to organization administrators.
- Returns:
- The
CreateProfileFieldApiRequestbuilder object - See Also:
-
getDevelopmentApiKey
Gets a user development API key. Only available for development servers. This endpoint is not available on production servers.- Parameters:
username- The username to fetch the development API key for- Returns:
- The
GetApiKeyApiRequestbuilder object
-
getApiKey
Gets a user development API key. Only available for production servers. This endpoint is not available on development servers.- Parameters:
username- The username to fetch the development API key forpassword- The password to fetch the development API key for- Returns:
- The
GetApiKeyApiRequestbuilder object
-
jwtFetchApiKey
Fetches a Zulip API key using a JWT token.- Parameters:
token- The JWT token- Returns:
- The
JwtFetchApiKeyApiRequestbuilder object - See Also:
-
addCodePlayground
public AddCodePlaygroundApiRequest addCodePlayground(String name, String pygmentsLanguage, String urlTemplate) Adds a code playground.- Parameters:
name- The name of the playgroundpygmentsLanguage- The name of the Pygments language lexer for that programming languageurlTemplate- The URL template for the playground- Returns:
- The
AddCodePlaygroundApiRequestbuilder object - See Also:
-
removeCodePlayground
Removes a code playground.- Parameters:
codePlaygroundId- The id of the code playground to remove- Returns:
- The
RemoveCodePlaygroundApiRequestbuilder object - See Also:
-
updateRealmNewUserDefaultSettings
Updates realm level default settings for new users.- Returns:
- The
UpdateRealmNewUserDefaultSettingsApiRequestbuilder object - See Also:
-
sendMobilePushTestNotification
Sends mobile push test notifications.- Returns:
- The
SendMobilePushTestNotificationbuilder object - See Also:
-
addApnsDeviceToken
Adds an APNs device token to register for iOS push notifications- Parameters:
token- The token provided by the deviceappId- The ID of the Zulip app that is making the request- Returns:
- The
AddApnsDeviceTokenApiRequestbuilder object - See Also:
-
removeApnsDeviceToken
Removes an APNs device token.- Parameters:
token- The token provided by the device- Returns:
- The
RemoveApnsDeviceTokenApiRequestbuilder object - See Also:
-
addFcmRegistrationToken
Adds an FCM registration token.- Parameters:
token- The token provided by the device- Returns:
- The
AddFcmRegistrationTokenApiRequestbuilder object - See Also:
-
removeFcmRegistrationToken
Removes an FCM registration token.- Parameters:
token- The token provided by the device- Returns:
- The
RemoveFcmRegistrationTokenApiRequestbuilder object - See Also:
-
createBigBlueButtonVideoCall
Creates a BigBlueButton video call.- Parameters:
meetingName- Meeting name for the BigBlueButton video call- Returns:
- The
CreateBigBlueButtonVideoCallApiRequestbuilder object - See Also:
-
createConstructorGroupsVideoCall
Creates a Constructor Groups video call URL. Requires Constructor Groups to be configured on the Zulip server.- Returns:
- The
CreateConstructorGroupsVideoCallApiRequestbuilder object - See Also:
-
createNextcloudTalkVideoCall
Creates a Nextcloud Talk video call URL. Requires Nextcloud Talk to be configured on the Zulip server.- Parameters:
roomName- Room name for the Nextcloud Talk conversation- Returns:
- The
CreateNextcloudTalkVideoCallApiRequestbuilder object - See Also:
-
createWebexVideoCall
Creates a Webex video call URL. Requires Webex integration to be configured on the Zulip server.- Returns:
- The
CreateWebexVideoCallApiRequestbuilder object - See Also:
-
getAllDataExports
Gets all data exports.- Returns:
- The
GetAllDataExportsApiRequestbuilder object - See Also:
-
createDataExport
Creates a data export.- Returns:
- The
CreateDataExportApiRequestbuilder object - See Also:
-
getDataExportConsentState
Gets users that have consented to their private data being exported.- Returns:
- The
GetDataExportConsentStateApiRequestbuilder object - See Also:
-
testWelcomeBotCustomMessage
public TestWelcomeBotCustomMessageApiRequest testWelcomeBotCustomMessage(String welcomeMessageCustomTest) Tests the welcome bot custom message.- Parameters:
welcomeMessageCustomTest- The custom welcome message content- Returns:
- The
TestWelcomeBotCustomMessageApiRequestbuilder object - See Also:
-
sendE2EMobilePushTestNotification
Sends E2E mobile push test notifications.- Returns:
- The
SendE2EMobilePushTestNotificationbuilder object - See Also:
-
registerE2EMobilePushDevice
public RegisterE2EMobilePushDevice registerE2EMobilePushDevice(TokenKind tokenKind, int pushAccountId, String pushPublicKey, String bouncerPublicKey, String encryptedPushRegistration) Registers a E2E mobile push device.- Parameters:
tokenKind- TheTokenKindfor how the token was generatedpushAccountId- Random integer to be included in mobile push notifications invalid input: '&' encrypted payloads to identify pushes as being related to this registrationpushPublicKey- Push public key encoded using an RFC 4648 standard base64 encoderbouncerPublicKey- Bouncer public key encoded using an RFC 4648 standard base64 encoderencryptedPushRegistration- Ciphertext generated by encrypting a PushRegistration Map using the bouncer_public_key field. Encoded using an RFC 4648 standard base64 encoder. The PushRegistration map contains fields token, token_kind, timestamp, and for iOS devices ios_app_id. The map must be JSON encoded before encryption.- Returns:
- The
RegisterE2EMobilePushDevicebuilder object - See Also:
-
registerClientDevice
Registers a logged-in device as an initial step before registering for E2EE push notifications.- Returns:
- The
RegisterClientDeviceApiRequestbuilder object - See Also:
-
removeClientDevice
Removes a registered device when the user logs out.- Parameters:
deviceId- The ID of the device to remove- Returns:
- The
RemoveClientDeviceApiRequestbuilder object - See Also:
-