use of javax.portlet.PortletURL in project liferay-ide by liferay.
the class SongAssetRenderer method getURLEdit.
@Override
public PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws Exception {
PortletURL portletURL = liferayPortletResponse.createLiferayPortletURL(getControlPanelPlid(liferayPortletRequest), SongsPortlet.PORTLET_ID, PortletRequest.RENDER_PHASE);
portletURL.setParameter("jspPage", "/html/songs/edit_song.jsp");
portletURL.setParameter("songId", String.valueOf(_song.getSongId()));
return portletURL;
}
use of javax.portlet.PortletURL in project liferay-ide by liferay.
the class SongAssetRenderer method getURLViewInContext.
@Override
public String getURLViewInContext(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, String noSuchEntryRedirect) {
try {
long plid = PortalUtil.getPlidFromPortletId(_song.getGroupId(), PortletKeys.SONGS);
if (plid == LayoutConstants.DEFAULT_PLID) {
return StringPool.BLANK;
}
PortletURL portletURL = PortletURLFactoryUtil.create(liferayPortletRequest, PortletKeys.SONGS, plid, PortletRequest.RENDER_PHASE);
portletURL.setParameter("jspPage", "/html/songs/view_song.jsp");
portletURL.setParameter("songId", String.valueOf(_song.getSongId()));
return portletURL.toString();
} catch (Exception e) {
}
return StringPool.BLANK;
}
use of javax.portlet.PortletURL in project liferay-ide by liferay.
the class AlbumTrashHandler method getRestoreURL.
protected PortletURL getRestoreURL(PortletRequest portletRequest, long classPK) throws PortalException, SystemException {
String portletId = PortletKeys.ALBUMS;
Album album = AlbumLocalServiceUtil.getAlbum(classPK);
long plid = PortalUtil.getPlidFromPortletId(album.getGroupId(), PortletKeys.ALBUMS);
PortletURL portletURL = PortletURLFactoryUtil.create(portletRequest, portletId, plid, PortletRequest.RENDER_PHASE);
portletURL.setParameter("jspPage", "/html/albums/view_album.jsp");
return portletURL;
}
use of javax.portlet.PortletURL in project liferay-ide by liferay.
the class SongTrashHandler method getRestoreURL.
protected PortletURL getRestoreURL(PortletRequest portletRequest, long classPK) throws PortalException, SystemException {
String portletId = PortletKeys.SONGS;
Song song = SongLocalServiceUtil.getSong(classPK);
long plid = PortalUtil.getPlidFromPortletId(song.getGroupId(), PortletKeys.SONGS);
PortletURL portletURL = PortletURLFactoryUtil.create(portletRequest, portletId, plid, PortletRequest.RENDER_PHASE);
portletURL.setParameter("jspPage", "/html/songs/view_song.jsp");
return portletURL;
}
use of javax.portlet.PortletURL in project liferay-ide by liferay.
the class KBArticleAssetRenderer method getURLEdit.
@Override
public PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse) throws Exception {
PortletURL portletURL = liferayPortletResponse.createLiferayPortletURL(getControlPanelPlid(liferayPortletRequest), PortletKeys.KNOWLEDGE_BASE_ADMIN, PortletRequest.RENDER_PHASE);
portletURL.setParameter("mvcPath", "/admin/edit_article.jsp");
portletURL.setParameter("resourcePrimKey", String.valueOf(_kbArticle.getResourcePrimKey()));
return portletURL;
}
Aggregations