<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Reading portlet preference in Scheduler of the portlet</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=8874394" />
  <subtitle>Reading portlet preference in Scheduler of the portlet</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=8874394</id>
  <updated>2026-04-06T14:40:11Z</updated>
  <dc:date>2026-04-06T14:40:11Z</dc:date>
  <entry>
    <title>RE: Reading portlet preference in Scheduler of the portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113470665" />
    <author>
      <name>Mohamed Saleem</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113470665</id>
    <updated>2019-04-30T12:27:31Z</updated>
    <published>2019-04-30T12:27:31Z</published>
    <summary type="html">Hi Andrew,&lt;br /&gt;Did you get solution for this case?&lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;​​​​​​​</summary>
    <dc:creator>Mohamed Saleem</dc:creator>
    <dc:date>2019-04-30T12:27:31Z</dc:date>
  </entry>
  <entry>
    <title>RE: Reading portlet preference in Scheduler of the portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=36137216" />
    <author>
      <name>Abhay Chaware</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=36137216</id>
    <updated>2014-03-26T14:39:11Z</updated>
    <published>2014-03-26T14:39:11Z</published>
    <summary type="html">Hello .. &lt;br /&gt;Sorry to open up this old thread, but in my case I actually have multiple companies ( portal instances ) and need to run the same scheduler job on all the instances.  I have a thread posted &lt;a href="https://www.liferay.com/community/forums/-/message_boards/message/36091121"&gt;here&lt;/a&gt;.   Any pointers ?&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Abhay</summary>
    <dc:creator>Abhay Chaware</dc:creator>
    <dc:date>2014-03-26T14:39:11Z</dc:date>
  </entry>
  <entry>
    <title>RE: Reading portlet preference in Scheduler of the portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11559412" />
    <author>
      <name>Josef Šustáček</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11559412</id>
    <updated>2011-11-22T20:47:20Z</updated>
    <published>2011-11-22T20:47:20Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi,&lt;br&gt;&lt;br&gt;I used portlet schedulers back in 5.2.3 and if it wasn't changed, you &lt;strong&gt;don't have access to such objects&lt;/strong&gt;. The scheduler is run only once, not per portlet instance, right?&lt;br&gt;&lt;br&gt;If I remember, the scheduler is defined for the portlet as a whole (you define one scheduler class in &lt;strong&gt;liferay-portlet.xml&lt;/strong&gt; per portlet), that means one scheduler for all instances of the portlet in the whole portal, on all pages. &lt;br&gt;&lt;br&gt;I'm not sure how this works with more companies in portal, but I assume this is not your case and you have only one company.&lt;br&gt;&lt;br&gt;If you want to do some portlet preferences update for one portlet instance located on some page, you have to define plid (page's id, e.g. &lt;em&gt;10520&lt;/em&gt;) and portletId (instance id, e.g. &lt;em&gt;_mybusinessapplicationportlet_WAR_myportlet_INSTANCE_FqL4&lt;/em&gt;) in some properties file and read this file from scheduler. Then you can load portlet preferences of such portlet instance via:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;
Layout layout = LayoutLocalServiceUtil.getLayout(plid);

javax.portlet.PortletPreferences prefs = PortletPreferencesFactoryUtil.getLayoutPortletSetup(layout, portletId);
&lt;/code&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Josef Šustáček</dc:creator>
    <dc:date>2011-11-22T20:47:20Z</dc:date>
  </entry>
  <entry>
    <title>RE: Reading portlet preference in Scheduler of the portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11555275" />
    <author>
      <name>Andrew Millband</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11555275</id>
    <updated>2011-11-22T15:48:17Z</updated>
    <published>2011-11-22T15:48:17Z</published>
    <summary type="html">Clark - did you ever find a solution to this? I have a similar use case, and before I post a new question I&amp;#39;m hoping you might&amp;#39;ve found an answer &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;</summary>
    <dc:creator>Andrew Millband</dc:creator>
    <dc:date>2011-11-22T15:48:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: Reading portlet preference in Scheduler of the portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8884549" />
    <author>
      <name />
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8884549</id>
    <updated>2011-05-20T06:42:07Z</updated>
    <published>2011-05-20T06:42:07Z</published>
    <summary type="html">Hi Shagul,&lt;br /&gt;&lt;br /&gt;Thanks for your reply.&lt;br /&gt;Yes the only problem i find now is how to find the plid of a portlet in a scheduler, because all i have there is a companyId.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Liferay Questions.</summary>
    <dc:creator />
    <dc:date>2011-05-20T06:42:07Z</dc:date>
  </entry>
  <entry>
    <title>RE: Reading portlet preference in Scheduler of the portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8874503" />
    <author>
      <name>Shagul Khajamohideen</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8874503</id>
    <updated>2011-05-19T10:38:23Z</updated>
    <published>2011-05-19T10:38:23Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Liferay Question:&lt;/div&gt;&lt;blockquote&gt;Hi,&lt;br /&gt;&lt;br /&gt;Can I get portletPreference of my portlet in the scheduler of the same portlet.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Liferay Questions&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As you may know , portlet preferences belong to the portlet (portletId) in a page (plid). If the portlet is instanceable then the portletId will be that of the portlet instance id.  Portlet preferences are stored in the database and com.liferay.portal.util.PrefsPropsUtil.java can be used as an example on how to retrieve those preferences using the PortletPreferencesLocalServiceUtil.</summary>
    <dc:creator>Shagul Khajamohideen</dc:creator>
    <dc:date>2011-05-19T10:38:23Z</dc:date>
  </entry>
  <entry>
    <title>Reading portlet preference in Scheduler of the portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8874393" />
    <author>
      <name />
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8874393</id>
    <updated>2011-05-19T10:19:40Z</updated>
    <published>2011-05-19T10:19:40Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;Can I get portletPreference of my portlet in the scheduler of the same portlet.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Liferay Questions</summary>
    <dc:creator />
    <dc:date>2011-05-19T10:19:40Z</dc:date>
  </entry>
</feed>
