[Building Sakai] Synoptic Announcements change limit.

Prakash, Savitha savithap at umich.edu
Wed Mar 16 05:09:19 PDT 2011


Most definitely, if it is a requirement for many, we can make it configurable through sakai.properties.

- Savitha

On Mar 16, 2011, at 6:48 AM, Jean-Francois Leveque wrote:

> Savitha,
> 
> Could this be configurable through sakai.properties in the future?
> 
> J-F
> 
> On 14/03/2011 15:37, Savitha Prakash wrote:
>> Chris,
>> 
>> The announcement messages are getting filtered out to 20 in
>> _AnnouncmentAction.__buildMainPanelContext_ method at
>> 
>> Line 938     messages = prepPage(sstate);
>> 
>> 
>> The prepPage(sstate) is a method in PagedResourceActionII class in the
>> velocity project. In this method, it determines the pageSize from the
>> STATE_PAGESIZE attribute, which in null in the case of synoptic
>> announcement, hence it resorts to the default value, which is set to be
>> 20, in this class.
>> 
>> 
>> protected List prepPage(SessionState state)
>> 
>> {
>> 
>> // access the page size
>> 
>> int pageSize = state.getAttribute(STATE_PAGESIZE) != null ?
>> 
>> ((Integer) state.getAttribute(STATE_PAGESIZE)).intValue() :
>> DEFAULT_PAGE_SIZE;
>> 
>> 
>> If you want to change the value, you will need to set the state
>> attribute STATE_PAGESIZE in the announcement side. I would hesitate to
>> make any changes in PagedResourceActionII, as other projects has
>> dependencies on Velocity.
>> 
>> 
>> Hope this helps,
>> 
>> Savitha
>> 
>> 
>> 
>> On Mon, Mar 14, 2011 at 9:21 AM, Chris Ribble <cribble at uwindsor.ca
>> <mailto:cribble at uwindsor.ca>> wrote:
>> 
>>    Hi Savitha,
>> 
>>    Thanks for the reply. I've tried changing the items property in
>>    sakai.synoptic.announcement.xml but it still only yields a display
>>    of 20 messages. I've even changed the SAK-13116 code in
>>    AnnouncementAction.java to allow more than 20 posts to be set in the
>>    tool options. I've also changed the properties in admin sites tool.
>>    Yet, it still only shows 20 posts. Have I missed somewhere else in
>>    the code where that number is set?
>> 
>>    Thanks again,
>>    Chris
>> 
>> 
>> 
>>    From: Savitha Prakash <savithasprakash at gmail.com
>>    <mailto:savithasprakash at gmail.com>>
>>    To: Chris Ribble <cribble at uwindsor.ca <mailto:cribble at uwindsor.ca>>
>>    Cc: sakai-dev at collab.sakaiproject.org
>>    <mailto:sakai-dev at collab.sakaiproject.org>
>>    Date: 03/14/2011 08:44 AM
>>    Subject: Re: [Building Sakai] Synoptic Announcements change limit.
>>    ------------------------------------------------------------------------
>> 
>> 
>> 
>>    Hi Chris,
>> 
>>    The default limit can be changed by changing the properties (days,
>>    items) in the registration file of synoptic announcement, which can
>>    be found at
>>    announcement-tool/tool/src/webapp/tools/sakai.synoptic.announcement.xml.
>> 
>> 
>>    Also as a sakai admin, one can change the value of these properties
>>    by admin sites tool
>> 
>>    - Savitha
>> 
>>    On Fri, Mar 11, 2011 at 3:11 PM, Chris Ribble <_cribble at uwindsor.ca_
>>    <mailto:cribble at uwindsor.ca>> wrote:
>>    Hi All,
>> 
>>    I'm currently working on our 2.7.1 test environment trying to get it
>>    to function similarly to our 2.5.2 production environment. It has
>>    been noted that in our 2.5.2 environment we had no limit on Recent
>>    Announcement postings through the Synoptic Announcements Tool. In
>>    2.7.1 however it is limited at 20. I've checked through the code for
>>    some sort of property relating to this hard limit and I cannot find
>>    it. I have found the SAK-13116 patched area of
>>    AnnouncementAction.java and it only allows me to remove the warning
>>    that only 20 posts will be displayed.
>> 
>>    We need to be able to set this to a higher number for our sites as
>>    some Profs have raised this as an issue in the past.
>> 
>>    Can anyone point me in the right direction?
>> 
>>    Thanks
>>    Chris
>> 
>>    Chris Ribble
>>    LMS Application Developer
>>    Information Technology Services
>>    University of Windsor_
>>    __cribble at uwindsor.ca_ <mailto:cribble at uwindsor.ca>
>>    _______________________________________________
>>    sakai-dev mailing list_
>>    __sakai-dev at collab.sakaiproject.org_
>>    <mailto:sakai-dev at collab.sakaiproject.org>_
>>    __http://collab.sakaiproject.org/mailman/listinfo/sakai-dev_
>> 
>>    TO UNSUBSCRIBE: send email to
>>    _sakai-dev-unsubscribe at collab.sakaiproject.org_
>>    <mailto:sakai-dev-unsubscribe at collab.sakaiproject.org>with a subject
>>    of "unsubscribe"
>> 
>> 
>> 
>>    --
>>    Savitha



More information about the sakai-dev mailing list