Examples of APIKey


Examples of org.fluxtream.core.domain.ApiKey

    }

    @Override
    public void connectorSettingsChanged(final long apiKeyId, final Object settings) {
        final GoogleCalendarConnectorSettings connectorSettings = (GoogleCalendarConnectorSettings)settings;
        final ApiKey apiKey = guestService.getApiKey(apiKeyId);
        initChannelMapping(apiKey, connectorSettings.calendars);
    }
View Full Code Here

Examples of org.fluxtream.core.domain.ApiKey

        return mav;
    }

    @RequestMapping("/test/setAtt")
    public void testSetAttribute(HttpServletResponse resp) throws IOException {
        final ApiKey apiKey = guestService.getApiKey(136);
        for (int i=0; i<1000; i++)
            setApiKeyAttribute(apiKey);
        resp.getWriter().write("OK");
    }
View Full Code Here

Examples of org.fluxtream.core.domain.ApiKey

        final File f = File.createTempFile(randomFilename, ".unknown");

        IOUtils.copy(mpf.getInputStream(), new FileOutputStream(f));

        final long guestId = AuthHelper.getGuestId();
        final ApiKey apiKey = guestService.getApiKey(apiKeyId);
        if (apiKey.getGuestId()!=guestId)
            throw new RuntimeException("Attempt to upload file associated to another user's " +
                                       "ApiKey! apiKeyId=" + apiKeyId +
                                       ", guestId="  + AuthHelper.getGuestId());


        final Connector connector = apiKey.getConnector();
        executor.execute( new Runnable() {

            @Override
            public void run() {
                final AbstractUpdater bean = beanFactory.getBean(connector.getUpdaterClass());
View Full Code Here

Examples of org.fluxtream.core.domain.ApiKey

      return new ModelAndView("connectors/openpath/enterCredentials");
    }
    long guestId = AuthHelper.getGuestId();

        final Connector connector = Connector.getConnector("instagram");
        final ApiKey apiKey = guestService.createApiKey(guestId, connector);

        guestService.setApiKeyAttribute(apiKey, "accessKey", accessKey);
        guestService.setApiKeyAttribute(apiKey, "secretKey", secretKey);

        ModelAndView mav = new ModelAndView("connectors/openpath/success");
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.