Search in sources :

Example 1 with OAuthSpec

use of org.apache.shindig.gadgets.spec.OAuthSpec in project liferay-ide by liferay.

the class ShindigUtil method getOAuthServices.

public static Map<String, OAuthService> getOAuthServices(String url) throws Exception {
    GadgetSpec gadgetSpec = getGadgetSpec(url);
    ModulePrefs modulePrefs = gadgetSpec.getModulePrefs();
    if (modulePrefs == null) {
        return null;
    }
    OAuthSpec oAuthSpec = modulePrefs.getOAuthSpec();
    if (oAuthSpec == null) {
        return null;
    }
    return oAuthSpec.getServices();
}
Also used : GadgetSpec(org.apache.shindig.gadgets.spec.GadgetSpec) OAuthSpec(org.apache.shindig.gadgets.spec.OAuthSpec) ModulePrefs(org.apache.shindig.gadgets.spec.ModulePrefs)

Aggregations

GadgetSpec (org.apache.shindig.gadgets.spec.GadgetSpec)1 ModulePrefs (org.apache.shindig.gadgets.spec.ModulePrefs)1 OAuthSpec (org.apache.shindig.gadgets.spec.OAuthSpec)1