Hi,
We are creating SitePublisher pages through templates using custom workflows.
We are setting the lock layout option on each created page through below code (this code has been written after decompiling livesite jar files):
LiveSiteContext lsContext = LiveSiteContext.getInstance(client);
Preferences prefs = lsContext.getSession().getPreferences();
prefs.setPageLockedState(createdPage.getVPath(), true);
lsContext.getBusinessPreferences().updatePreferences(prefs);
This code works fine for a particular user where the page is created through workflow by that user. But if a different user modifies the page through "EDIT" option, then he can move the components around on the page. The code is actually setting component movement locking mechanism for the particular page in user's preferences.
My question is: What is the way to set this preference to all users irrespective of the page?
We can not do this implementation through role settings due to the requirement wherein we want users to have restriction of component movement only on certain pages in the site.
Any pointers would be helpful in resolving this.
TeamSite/LiveSite : 7.2.1
OS: Linux
Thanks,
Sumit