org.jasig.portlet.calendar
Class PredefinedCalendarConfiguration

java.lang.Object
  extended by org.jasig.portlet.calendar.CalendarConfiguration
      extended by org.jasig.portlet.calendar.PredefinedCalendarConfiguration

public class PredefinedCalendarConfiguration
extends CalendarConfiguration

PredefinedCalendarConfiguration represents a user configuration of a built-in calendar definition. There may be many configurations for each predefined calendar definition. This class defines an extra place to put user-specific configuration information and preferences.

Author:
Jen Bourey

Constructor Summary
PredefinedCalendarConfiguration()
          Default constructor
 
Method Summary
 void addPreference(String name, String value)
          Add a user preference for this configuration.
 Map<String,String> getPreferences()
          Get the user-specific preferences for this configuration.
 void setCalendarDefinition(CalendarDefinition definition)
          Set the CalendarDefinition for the calendar being configured.
 void setPreferences(Map<String,String> preferences)
          Set the user-specific preferences for this configuration.
 
Methods inherited from class org.jasig.portlet.calendar.CalendarConfiguration
getCalendarDefinition, getId, getSubscribeId, isDisplayed, setDisplayed, setId, setSubscribeId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PredefinedCalendarConfiguration

public PredefinedCalendarConfiguration()
Default constructor

Method Detail

getPreferences

public Map<String,String> getPreferences()
Get the user-specific preferences for this configuration.

Returns:

setPreferences

public void setPreferences(Map<String,String> preferences)
Set the user-specific preferences for this configuration.

Parameters:
preferences -

addPreference

public void addPreference(String name,
                          String value)
Add a user preference for this configuration.

Parameters:
name - parameter name (key)
value - value to be stored

setCalendarDefinition

public void setCalendarDefinition(CalendarDefinition definition)
Description copied from class: CalendarConfiguration
Set the CalendarDefinition for the calendar being configured.

Overrides:
setCalendarDefinition in class CalendarConfiguration


Copyright © 2012 Jasig. All Rights Reserved.