/** * Removes the value associated with the key represented by this class. * * @param link the application link to remove the value from. */ public void remove(ApplicationLink link) { link.removeProperty(key); }
@Override public void revokeSharedSecret(@Nonnull ApplicationLink applicationLink) { applicationLink.removeProperty(SHARED_SECRET_PROPERTY_NAME); }
/** * Removes the value associated with the key represented by this class. * @param link the application link to remove the value from. * @param projectKey the key of the project this property describes */ public void remove(ApplicationLink link, K projectKey) { link.removeProperty(makeKey(projectKey)); }
@DELETE @Path("{applinkId}/property/{key}") public Response removeProperty(@PathParam("applinkId") String applinkId, @PathParam("key") String key) throws TypeNotInstalledException { ApplicationId id = parseApplicationId(applinkId); ApplicationLink applink = linkService.getApplicationLink(id); applink.removeProperty(key); return Response.noContent().build(); }
public void revokeInboundTrust(final ApplicationLink appLink) { final Object value = appLink.getProperty(TRUSTED_APPS_INCOMING_ID); if (value != null) { trustedAppsManager.deleteApplication(value.toString()); } appLink.removeProperty(TRUSTED_APPS_INCOMING_ID); }
public void revokeInboundTrust(final ApplicationLink appLink) { final Object value = appLink.getProperty(AbstractTrustedAppsServlet.TRUSTED_APPS_INCOMING_ID); if (value != null) { trustedAppsManager.deleteApplication(value.toString()); } appLink.removeProperty(AbstractTrustedAppsServlet.TRUSTED_APPS_INCOMING_ID); }
public void removeConsumer(final ApplicationLink applicationLink) { final String consumerKey = getConsumerKey(applicationLink); if (consumerKey == null) { throw new IllegalStateException("No consumer configured for application link '" + applicationLink + "'."); } serviceProviderTokenStore.removeByConsumer(consumerKey); serviceProviderConsumerStore.remove(consumerKey); if (applicationLink.removeProperty(PROPERTY_INCOMING_CONSUMER_KEY) == null) { throw new IllegalStateException("Failed to remove consumer with key '" + consumerKey + "' from application link '" + applicationLink + "'"); } }
private void disableAddonUser(String addonKey) throws ConnectAddonDisableException { ApplicationLink applicationLink = connectApplinkManager.getAppLink(addonKey); if (null != applicationLink) { applicationLink.removeProperty(JwtConstants.AppLinks.ADD_ON_USER_KEY_PROPERTY_NAME); } connectUserService.disableAddonUser(addonKey); }