Package org.fluxtream.core.connectors

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


        final Connector connector = Connector.getConnector(connectorName);
        final Guest guest = AuthHelper.getGuest();

        guestService.createApiKey(guest.getId(), connector);

        notificationsService.addNotification(guest.getId(), Notification.Type.INFO, "You just added an upload-only connector for " + connector.prettyName() + "<br>" +
                                                                              "Please head to <a href=\"javascript:App.manageConnectors()\">Manage Connectors</a>, " +
                                                                              "identify your new connector, and upload your data from there.");

        response.getWriter().write("Successfully added upload-only connector \"" + connectorName + "\"");
    }
View Full Code Here


                try {
                    handler.importFile(apiKey, f);
                }
                catch (Exception e) {
                    e.printStackTrace();
                    notificationsService.addExceptionNotification(guestId, Notification.Type.ERROR, "There was a problem importing your " + connector.prettyName() + " data.<br>" +
                                                                                                    "Please check the type and format of your file.", ExceptionUtils.getStackTrace(e));
                }
            }
        });
        notificationsService.addNotification(guestId, Notification.Type.INFO,
View Full Code Here

                                                                                                    "Please check the type and format of your file.", ExceptionUtils.getStackTrace(e));
                }
            }
        });
        notificationsService.addNotification(guestId, Notification.Type.INFO,
                                             "We are busy importing your " + connector.prettyName() + " data.<br>" +
                                             "You should be able to see it shortly.");

        response.getWriter().write("\"File was successfully uploaded: \" + originalFilename");

    }
View Full Code Here

            if(apiKey!=null && apiKey.getConnector()!=null && apiKey.getConnector().getName()!=null) {
                Connector connector = apiKey.getConnector();
                ConnectorDigestModel model = new ConnectorDigestModel();
                connectors.add(model);
                model.connectorName = connector.getName();
                model.prettyName = connector.prettyName();
                model.channelNames = settingsService.getChannelsForConnector(guestId,connector);
                ObjectType[] objTypes = connector.objectTypes();
                model.apiKeyId = apiKey.getId();
                if (objTypes == null)
                    continue;
View Full Code Here

                    ConnectorInfo connector = connectorInfo;
                    ConnectorModelFull connectorModel = new ConnectorModelFull();
                    Connector conn = Connector.fromValue(connector.api);
                    ApiKey apiKey = guestService.getApiKey(guest.getId(), conn);

                    connectorModel.prettyName = conn.prettyName();
                    List<String> facetTypes = new ArrayList<String>();
                    ObjectType[] objTypes = conn.objectTypes();
                    if (objTypes != null) {
                        for (ObjectType obj : objTypes) {
                            facetTypes.add(connector.connectorName + "-" + obj.getName());
View Full Code Here

                    connectorModel.channels = settingsService.getChannelsForConnector(guest.getId(), conn);
                    connectorModel.sticky = connector.connectorName.equals("fluxtream_capture");
                    connectorModel.supportsRenewToken = connector.supportsRenewTokens;
                    connectorModel.supportsSync = connector.supportsSync;
                    connectorModel.supportsFileUpload = connector.supportsFileUpload;
                    connectorModel.prettyName = conn.prettyName();
                    final String uploadMessageKey = conn.getName() + ".upload";
                    if (res.containsKey(uploadMessageKey)) {
                        final String uploadMessage = res.getString(uploadMessageKey);
                        connectorModel.uploadMessage = uploadMessage;
                    }
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.