use of com.liferay.opensocial.model.Gadget in project liferay-ide by liferay.
the class GadgetModelImpl method equals.
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Gadget)) {
return false;
}
Gadget gadget = (Gadget) obj;
long primaryKey = gadget.getPrimaryKey();
if (getPrimaryKey() == primaryKey) {
return true;
} else {
return false;
}
}
use of com.liferay.opensocial.model.Gadget in project liferay-ide by liferay.
the class GadgetExportActionableDynamicQuery method performAction.
@Override
@SuppressWarnings("unused")
protected void performAction(Object object) throws PortalException, SystemException {
Gadget stagedModel = (Gadget) object;
StagedModelDataHandlerUtil.exportStagedModel(_portletDataContext, stagedModel);
}
use of com.liferay.opensocial.model.Gadget in project liferay-ide by liferay.
the class ConfigurationActionImpl method render.
@Override
public String render(PortletConfig portletConfig, RenderRequest renderRequest, RenderResponse renderResponse) throws Exception {
if (hasUserPrefs(portletConfig, renderRequest)) {
doRender(portletConfig, renderRequest, renderResponse);
}
try {
Gadget gadget = getGadget(portletConfig, renderRequest);
Map<String, OAuthService> oAuthServices = ShindigUtil.getOAuthServices(gadget.getUrl());
renderRequest.setAttribute(WebKeys.OAUTH_SERVICES, oAuthServices);
} catch (Exception e) {
}
return "/adhoc_gadget/configuration.jsp";
}
Aggregations