.name(getI18nHelper().getText("fisheye.ual.fisheye.instance.applink.name", fisheyeInstance.getName(), fisheyeInstance.getUrl())) .isPrimary(false) //TODO: work out if this should be primary - an instance of 0 should be primary. However, if primary exists, this should not be primary .build(); ApplicationLink applicationLink;
.rpcUrl(uri) .name(entity.name) .isPrimary(entity.primary) .build()); if (entity.urlOverride != null) {
.rpcUrl(new URI("http://unvoodoo.com/rpc")) .name(options.description) .isPrimary(true) .build() );
.rpcUrl(remoteRpcUrl) .isPrimary(true) .name(generateLinkName(remoteRpcUrl)) .build();
@Override public void createAppLink(final ConnectAddonBean addon, final String baseUrl, final AuthenticationType authType, final String publicKey, final String addonUserKey) { transactionTemplate.execute((TransactionCallback<Void>) () -> { String pluginKey = addon.getKey(); URI baseUri = URI.create(baseUrl); final ApplicationId expectedApplicationId = ApplicationIdUtil.generate(baseUri); final RemotePluginContainerApplicationType applicationType = typeAccessor.getApplicationType(RemotePluginContainerApplicationType.class); deleteOldAppLinks(pluginKey, expectedApplicationId); final ApplicationLinkDetails details = ApplicationLinkDetails.builder() .displayUrl(baseUri) .isPrimary(false) .name(addon.getName() != null ? addon.getName() : addon.getKey()) .rpcUrl(baseUri) .build(); log.info("Creating an application link for Connect add-on with key '{}'", pluginKey); ApplicationLink link = applicationLinkService.addApplicationLink(expectedApplicationId, applicationType, details); link.putProperty(PLUGIN_KEY_PROPERTY, pluginKey); link.putProperty(JwtConstants.AppLinks.ADD_ON_USER_KEY_PROPERTY_NAME, addonUserKey); link.putProperty("IS_ACTIVITY_ITEM_PROVIDER", Boolean.FALSE.toString()); link.putProperty("system", Boolean.TRUE.toString()); link.putProperty(JwtConstants.AppLinks.AUTH_METHOD_PROPERTY_NAME, authType.toString()); if (authType == AuthenticationType.JWT) { link.putProperty(JwtConstants.AppLinks.SHARED_SECRET_PROPERTY_NAME, publicKey); } return null; }); }
public ApplicationLinkDetails getDetails() { return ApplicationLinkDetails .builder() .name(getName()) .displayUrl(getDisplayUrl()) .rpcUrl(getRpcUrl()) .isPrimary(isPrimary()) .build(); } }
@Nonnull public ApplicationLinkDetails toDetails() throws IllegalRestRepresentationStateException { return ApplicationLinkDetails.builder() .name(validateString(NAME, getName())) .rpcUrl(validateURI(RPC_URL, getRpcUrl())) .displayUrl(validateURI(DISPLAY_URL, getDisplayUrl())) .isPrimary(isPrimary()) .build(); }
@POST @Path("createStaticUrlAppLink") public javax.ws.rs.core.Response createStaticUrlAppLink(@QueryParam("typeId") final String typeId) throws Exception { final StaticUrlApplicationType type = (StaticUrlApplicationType) typeAccessor.loadApplicationType(typeId); Manifest manifest = manifestRetriever.getManifest(type.getStaticUrl(), type); ApplicationLinkDetails details = ApplicationLinkDetails.builder().name(type.getI18nKey()) .displayUrl(type.getStaticUrl()).rpcUrl(type.getStaticUrl()).isPrimary(true).build(); final ApplicationLink createdApplicationLink = applicationLinkService.addApplicationLink(manifest.getId(), type, details); return ok(new CreatedApplicationLinkEntity(toApplicationLinkEntity(createdApplicationLink), true)); }
public ApplicationLinkDetails getDetails() { return ApplicationLinkDetails .builder() .name(getName()) .displayUrl(getDisplayUrl()) .rpcUrl(getRpcUrl()) .isPrimary(isPrimary()) .build(); } }