Examples of prettyname()


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

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

                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

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

                                                                                                    "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

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

            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

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

                    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

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

                    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

Examples of org.fluxtream.core.connectors.annotations.ObjectTypeSpec.prettyname()

        }
        ObjectType objectType = new ObjectType();
        objectType.facetClass = facetType;
        objectType.value = ots.value();
        objectType.name = ots.name();
        objectType.prettyname = ots.prettyname();
        objectType.isImageType = ots.isImageType();
        objectType.isDateBased = ots.isDateBased();
        objectType.isMixedType = ots.isMixedType();
        objectType.isClientFacet = ots.clientFacet();
        objectType.visibleClause = ots.visibleClause().equals("")?null:ots.visibleClause();
View Full Code Here

Examples of org.fluxtream.core.connectors.annotations.Updater.prettyName()

        Connector connector = new Connector();
        connector.updaterClass = getUpdaterClass(beanClassName);
        Updater updaterAnnotation = connector.updaterClass
                .getAnnotation(Updater.class);
        // set connectors' pretty name
        connector.prettyName = updaterAnnotation.prettyName();
        connector.deviceNickname = updaterAnnotation.deviceNickname().equals(Updater.DEVICE_NICKNAME_NONE)
                                 ? updaterAnnotation.prettyName()==null ? connectorName : updaterAnnotation.prettyName()
                                 : updaterAnnotation.deviceNickname();
        connector.value = updaterAnnotation.value();
        connector.updateStrategyType = updaterAnnotation
View Full Code Here

Examples of org.fluxtream.core.connectors.annotations.Updater.prettyName()

        Updater updaterAnnotation = connector.updaterClass
                .getAnnotation(Updater.class);
        // set connectors' pretty name
        connector.prettyName = updaterAnnotation.prettyName();
        connector.deviceNickname = updaterAnnotation.deviceNickname().equals(Updater.DEVICE_NICKNAME_NONE)
                                 ? updaterAnnotation.prettyName()==null ? connectorName : updaterAnnotation.prettyName()
                                 : updaterAnnotation.deviceNickname();
        connector.value = updaterAnnotation.value();
        connector.updateStrategyType = updaterAnnotation
                .updateStrategyType();
        connector.hasFacets = updaterAnnotation.hasFacets();
View Full Code Here

Examples of org.fluxtream.core.connectors.annotations.Updater.prettyName()

        Updater updaterAnnotation = connector.updaterClass
                .getAnnotation(Updater.class);
        // set connectors' pretty name
        connector.prettyName = updaterAnnotation.prettyName();
        connector.deviceNickname = updaterAnnotation.deviceNickname().equals(Updater.DEVICE_NICKNAME_NONE)
                                 ? updaterAnnotation.prettyName()==null ? connectorName : updaterAnnotation.prettyName()
                                 : updaterAnnotation.deviceNickname();
        connector.value = updaterAnnotation.value();
        connector.updateStrategyType = updaterAnnotation
                .updateStrategyType();
        connector.hasFacets = updaterAnnotation.hasFacets();
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.