Examples of prettyName()


Examples of org.fluxtream.core.connectors.Connector.prettyName()

    public static Connector findConnectorByPrettyName(final GuestService guestService, final long guestId, final String connectorPrettyName) {
        List<ApiKey> userKeys = guestService.getApiKeys(guestId);
        for (ApiKey key : userKeys) {
            if (key != null) {
                final Connector connector = key.getConnector();
                if (connector != null && connector.prettyName() != null && connector.prettyName().equals(connectorPrettyName)) {
                    return connector;
                }
            }
        }
View Full Code Here

Examples of org.fluxtream.core.connectors.Connector.prettyName()

    public static Connector findConnectorByPrettyName(final GuestService guestService, final long guestId, final String connectorPrettyName) {
        List<ApiKey> userKeys = guestService.getApiKeys(guestId);
        for (ApiKey key : userKeys) {
            if (key != null) {
                final Connector connector = key.getConnector();
                if (connector != null && connector.prettyName() != null && connector.prettyName().equals(connectorPrettyName)) {
                    return connector;
                }
            }
        }
View Full Code Here

Examples of org.fluxtream.core.connectors.Connector.prettyName()

        switch (updateResult.getType()) {
    case DUPLICATE_UPDATE:
      duplicateUpdate();
      break;
        case AUTH_REVOKED:
            String message = "Your " + connector.prettyName() + " Authorization Token has been revoked.";
            if (updateResult.getAuthRevokedException().isDataCleanupRequested()) {
                guestService.removeApiKey(task.apiKeyId);
                message += "<br>With the revocation info we received, there was an indication that you wanted your " +
                           "data to be permanently deleted from our servers. Consequently we just permanently removed your " +
                            connector.getPrettyName() + " connector and all its associated data.";
View Full Code Here

Examples of org.fluxtream.core.connectors.Connector.prettyName()

            abort(updateInfo.apiKey, failed, updateResult.reason);
            break;
        case NEEDS_REAUTH:
            notificationsService.addNamedNotification(updateInfo.getGuestId(), Notification.Type.WARNING,
                                                      connector.statusNotificationName(),
                                                      "Heads Up. Your " + connector.prettyName() + " Authorization Token has expired.<br>" +
                                                      "Please head to <a href=\"javascript:App.manageConnectors()\">Manage Connectors</a>,<br>" +
                                                      "scroll to the " + connector.prettyName() + " section, and renew your tokens (look for the <i class=\"icon-resize-small icon-large\"></i> icon)");
            failed = new UpdateWorkerTask.AuditTrailEntry(new Date(), updateResult.getType().toString(), "abort");
            failed.stackTrace = updateResult.stackTrace;
            abort(updateInfo.apiKey, failed, updateResult.reason);
View Full Code Here

Examples of org.fluxtream.core.connectors.Connector.prettyName()

        case NEEDS_REAUTH:
            notificationsService.addNamedNotification(updateInfo.getGuestId(), Notification.Type.WARNING,
                                                      connector.statusNotificationName(),
                                                      "Heads Up. Your " + connector.prettyName() + " Authorization Token has expired.<br>" +
                                                      "Please head to <a href=\"javascript:App.manageConnectors()\">Manage Connectors</a>,<br>" +
                                                      "scroll to the " + connector.prettyName() + " section, and renew your tokens (look for the <i class=\"icon-resize-small icon-large\"></i> icon)");
            failed = new UpdateWorkerTask.AuditTrailEntry(new Date(), updateResult.getType().toString(), "abort");
            failed.stackTrace = updateResult.stackTrace;
            abort(updateInfo.apiKey, failed, updateResult.reason);
            break;
    case HAS_REACHED_RATE_LIMIT:
View Full Code Here

Examples of org.fluxtream.core.connectors.Connector.prettyName()

    private ApiKey findConnectorApiKeyByPrettyName(final long guestId, final String connectorPrettyName) {
        List<ApiKey> userKeys = guestService.getApiKeys(guestId);
        for (ApiKey key : userKeys) {
            if (key != null) {
                final Connector connector = key.getConnector();
                if (connector != null && ((connector.prettyName() != null && connector.prettyName().equals(connectorPrettyName)) || (connector.getName().equals(connectorPrettyName)))) {
                    return key;
                }
            }
        }
View Full Code Here

Examples of org.fluxtream.core.connectors.Connector.prettyName()

    private ApiKey findConnectorApiKeyByPrettyName(final long guestId, final String connectorPrettyName) {
        List<ApiKey> userKeys = guestService.getApiKeys(guestId);
        for (ApiKey key : userKeys) {
            if (key != null) {
                final Connector connector = key.getConnector();
                if (connector != null && ((connector.prettyName() != null && connector.prettyName().equals(connectorPrettyName)) || (connector.getName().equals(connectorPrettyName)))) {
                    return key;
                }
            }
        }
View Full Code Here

Examples of org.fluxtream.core.connectors.Connector.prettyName()

        String errorParameter = request.getParameter("error");
        if (errorParameter!=null) {
            notificationsService.addNamedNotification(guest.getId(), Notification.Type.WARNING,
                                                      scopedApi.statusNotificationName(),
                                                      "There was a problem importing your " + scopedApi.prettyName() + " data: " + errorParameter);
            return new ModelAndView("redirect:/app/");
        }

    String swapTokenUrl = "https://accounts.google.com/o/oauth2/token";
    String code = request.getParameter("code");
View Full Code Here

Examples of org.fluxtream.core.connectors.Connector.prettyName()

    @RequestMapping(value = "/app/tokenRenewed/{connectorName}")
    public String tokenRenewed(@PathVariable("connectorName") String connectorName) {
        final Connector connector = Connector.getConnector(connectorName);
        String message = "You have successfully renewed your "
                         + connector.prettyName()
                         + " authentication tokens. We will now update your data.";
        return welcomeBack(connectorName, message);
    }

  @RequestMapping(value = "/app/from/{connectorName}")
View Full Code Here

Examples of org.fluxtream.core.connectors.Connector.prettyName()

  @RequestMapping(value = "/app/from/{connectorName}")
  public String home(@PathVariable("connectorName") String connectorName) {
        final Connector connector = Connector.getConnector(connectorName);
        String message = "<img class=\"loading-animation\" src=\"/static/img/loading.gif\"/>You have successfully added a new connector: "
                         + connector.prettyName()
                         + ". Your data is now being retrieved. "
                         + "It may take a little while until it becomes visible.";
        return welcomeBack(connectorName, message);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.