OAuthClientService authService = this.authService;
if (authService != null) {
authService.removeAccessTokenRefreshListener(this);
+ oAuthFactory.ungetOAuthService(thing.getUID().getAsString());
}
- oAuthFactory.ungetOAuthService(thing.getUID().getAsString());
cancelSchedulers();
}
+ @Override
+ public void handleRemoval() {
+ oAuthFactory.deleteServiceAndAccessToken(thing.getUID().getAsString());
+ super.handleRemoval();
+ }
+
private void createIntegrationOAuthClientService(WebexTeamsConfiguration config) {
String thingUID = this.getThing().getUID().getAsString();
logger.debug("Creating OAuth Client Service for {}", thingUID);
/**
* Send a message to a specific room
- *
+ *
* @param roomId roomId of the room to send to
* @param msg markdown text string to be sent
* @return <code>true</code>, if sending the message has been successful and
/**
* Send a message to a specific room, with attachment
- *
+ *
* @param roomId roomId of the room to send to
* @param msg markdown text string to be sent
* @param attach URL of the attachment
- *
+ *
* @return <code>true</code>, if sending the message has been successful and
* <code>false</code> in all other cases.
*/
/**
* Sends a message to a specific person, identified by email
- *
+ *
* @param personEmail email address of the person to send to
* @param msg markdown text string to be sent
* @return <code>true</code>, if sending the message has been successful and
/**
* Sends a message to a specific person, identified by email, with attachment
- *
+ *
* @param personEmail email address of the person to send to
* @param msg markdown text string to be sent
* @param attach URL of the attachment*
/**
* Sends a <code>Message</code>
- *
+ *
* @param msg the <code>Message</code> to be sent
* @return <code>true</code>, if sending the message has been successful and
* <code>false</code> in all other cases.