Package org.fluxtream.core.domain.metadata

Examples of org.fluxtream.core.domain.metadata.FoursquareVenue


        // needs invistigating...
        CacheControl cc = new CacheControl();
        // cache for a month
        cc.setNoCache(false);
        cc.setMaxAge(86400*31);
        final FoursquareVenue foursquareVenue = metadataService.getFoursquareVenue(venueId);
        Response.ResponseBuilder builder = Response.ok(foursquareVenue);
        builder.cacheControl(cc);
        return builder.build();
    }
View Full Code Here


                else {
                    categories = new JSONArray();
                    JSONObject categoriesJson = (JSONObject)categoriesObject;
                    categories.add(categoriesJson);
                }
                FoursquareVenue venue = new FoursquareVenue();

                String venueName = response.getString("name");
                String canonicalUrl = response.getString("canonicalUrl");
                venue.name = venueName;
                venue.canonicalUrl = canonicalUrl;
View Full Code Here

            return homeBaseUrl+"images/moves/unknown.png";
        final Object[] singleResult = (Object[])l.get(0);
        String type = (String) singleResult[0];
        if (type.equals("foursquare")) {
            String foursquareId = (String) singleResult[1];
            final FoursquareVenue foursquareVenue = metadataService.getFoursquareVenue(foursquareId);
            return foursquareVenue.categoryIconUrlPrefix + "bg_32" + foursquareVenue.categoryIconUrlSuffix;
        } else {
            return homeBaseUrl+"images/moves/" + type + ".png";
        }
    }
View Full Code Here

            response.sendError(404);
        final Object[] singleResult = (Object[])l.get(0);
        String type = (String) singleResult[0];
        if (type.equals("foursquare")) {
            String foursquareId = (String) singleResult[1];
            final FoursquareVenue foursquareVenue = metadataService.getFoursquareVenue(foursquareId);
            response.sendRedirect(foursquareVenue.categoryIconUrlPrefix + "bg_32" + foursquareVenue.categoryIconUrlSuffix);
        } else {
            String homeBaseUrl = env.get("homeBaseUrl");
            response.sendRedirect(homeBaseUrl+"/images/moves/" + type + ".png");
        }
View Full Code Here

TOP

Related Classes of org.fluxtream.core.domain.metadata.FoursquareVenue

Copyright © 2018 www.massapicom. 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.