Forums

Home » Liferay Portal » English » Liferay Legacy »

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
refractedthought refractedthought
Remove Page
March 21, 2005 2:49 PM
Answer

refractedthought refractedthought

Rank: New Member

Posts: 13

Join Date: February 1, 2005

Recent Posts

OK, I figured out how to programatically add a page to the portal, but how do I get rid of it? I don&#39;t see any remove methods in LayoutManagerUtil.<br /><br />Help?
Brett Randall
Remove Page
March 22, 2005 12:01 AM
Answer

Brett Randall

Rank: Liferay Legend

Posts: 1254

Join Date: August 17, 2004

Recent Posts

See LayoutLocalManagerUtil.deleteLayout().
refractedthought refractedthought
Remove Page
March 29, 2005 1:03 PM
Answer

refractedthought refractedthought

Rank: New Member

Posts: 13

Join Date: February 1, 2005

Recent Posts

I used LayoutLocalManagerUtil.deleteLayout() on the layout in question, but this apparently didn&#39;t do all the legwork necessary to completely kill the page. The layout table in the database was updated properly, but layoutIds in user_ was not, resulting in a broken user who could no longer log in without showstopping errors(until the table was fixed manually).<br /><br />Any idea where I went wrong?
Brett Randall
Remove Page
March 30, 2005 3:00 AM
Answer

Brett Randall

Rank: Liferay Legend

Posts: 1254

Join Date: August 17, 2004

Recent Posts

Probably a user-private layout was deleted before it was removed from the user. deleteLayout() does not seem to check for that for user-layouts. You might want to try UserManagerUtil getLayouts() then setLayouts() to remove one prior to deleteLayout, if it is a user-private one.<br /><br />It has been written to suit the UI.
refractedthought refractedthought
Remove Page
April 7, 2005 12:23 PM
Answer

refractedthought refractedthought

Rank: New Member

Posts: 13

Join Date: February 1, 2005

Recent Posts

Right, UserManagerUtil.setLayouts() is what does the trick in this case (deleting user-specific layouts). deleteLayout() is called inside that function for omitted layouts, so it isn&#39;t necessary to call it again later (and this will cause an exception, anyway).<br /><br />Thanks.
Suresh Nimmakayala
Remove Page
February 7, 2006 3:54 PM
Answer

Suresh Nimmakayala

Rank: Liferay Master

Posts: 544

Join Date: August 17, 2004

Recent Posts

if i want to set layouts <br /><br />&quot;UserManager userManager = UserManagerFactory<br /> .getManager();<br />java.lang.String list7[] ={&quot;1,&quot;};<br />userManager.setLayouts(userId,list7);&quot;<br /><br />then after login no layouts are there in User_ table.<br /><br />we have to update layoutIds for user right how to do this ?<br /><br />
Retail M
RE: Remove Page
October 29, 2008 11:10 PM
Answer

Retail M

Rank: New Member

Posts: 4

Join Date: October 29, 2008

Recent Posts


OK, I figured out how to programatically add a page to the portal, but how do I get rid of it?
I don&#39;t see any remove methods in LayoutManagerUtil.<br /><br />Help?


Hi,
I am new to Liferay, could you please tell me how to programatically add a page to the portal?

Thanks in advance