edu.yale.its.tp.portlets.calendar
Class PredefinedCalendarConfiguration

java.lang.Object
  extended by edu.yale.its.tp.portlets.calendar.CalendarConfiguration
      extended by edu.yale.its.tp.portlets.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(java.lang.String name, java.lang.String value)
          Add a user preference for this configuration.
 PredefinedCalendarDefinition getCalendarDefinition()
          Get the CalendarDefinition for the calendar being configured.
 java.util.Map<java.lang.String,java.lang.String> getPreferences()
          Get the user-specific preferences for this configuration.
 void setCalendarDefinition(PredefinedCalendarDefinition definition)
           
 void setPreferences(java.util.Map<java.lang.String,java.lang.String> preferences)
          Set the user-specific preferences for this configuration.
 
Methods inherited from class edu.yale.its.tp.portlets.calendar.CalendarConfiguration
getId, getSubscribeId, isDisplayed, setCalendarDefinition, 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 java.util.Map<java.lang.String,java.lang.String> getPreferences()
Get the user-specific preferences for this configuration.

Returns:

setPreferences

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

Parameters:
preferences -

addPreference

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

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

getCalendarDefinition

public PredefinedCalendarDefinition getCalendarDefinition()
Description copied from class: CalendarConfiguration
Get the CalendarDefinition for the calendar being configured.

Overrides:
getCalendarDefinition in class CalendarConfiguration
Returns:

setCalendarDefinition

public void setCalendarDefinition(PredefinedCalendarDefinition definition)


Copyright © 2009 Jasig. All Rights Reserved.