org.olat.commons.calendar.ui.components
Class KalendarRenderWrapper

java.lang.Object
  extended by org.olat.commons.calendar.ui.components.KalendarRenderWrapper

public class KalendarRenderWrapper
extends java.lang.Object


Field Summary
static int ACCESS_READ_ONLY
           
static int ACCESS_READ_WRITE
          These are the access restrictions on this calendar.
static java.lang.String CALENDAR_COLOR_BLUE
          These CSS classes must be defined in the calendar.css file.
static java.lang.String CALENDAR_COLOR_GREEN
           
static java.lang.String CALENDAR_COLOR_ORANGE
           
static java.lang.String CALENDAR_COLOR_RED
           
static java.lang.String CALENDAR_COLOR_YELLOW
           
 
Constructor Summary
KalendarRenderWrapper(Kalendar kalendar)
          Configure a calendar for rendering.
KalendarRenderWrapper(Kalendar kalendar, KalendarConfig config, int access)
          Configure a calendar for rendering.
 
Method Summary
 int getAccess()
           
 Kalendar getKalendar()
           
 KalendarConfig getKalendarConfig()
           
 LinkProvider getLinkProvider()
           
 boolean hasIcalFeed(Identity identity)
           
 boolean isImported()
           
 boolean isSubscribed()
           
 Kalendar reloadKalendar()
           
 void setAccess(int access)
           
 void setImported(boolean imported)
           
 void setKalendarConfig(KalendarConfig calendarConfig)
           
 void setLinkProvider(LinkProvider linkProvider)
           
 void setSubscribed(boolean subscribed)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CALENDAR_COLOR_BLUE

public static final java.lang.String CALENDAR_COLOR_BLUE
These CSS classes must be defined in the calendar.css file.

See Also:
Constant Field Values

CALENDAR_COLOR_ORANGE

public static final java.lang.String CALENDAR_COLOR_ORANGE
See Also:
Constant Field Values

CALENDAR_COLOR_GREEN

public static final java.lang.String CALENDAR_COLOR_GREEN
See Also:
Constant Field Values

CALENDAR_COLOR_YELLOW

public static final java.lang.String CALENDAR_COLOR_YELLOW
See Also:
Constant Field Values

CALENDAR_COLOR_RED

public static final java.lang.String CALENDAR_COLOR_RED
See Also:
Constant Field Values

ACCESS_READ_WRITE

public static final int ACCESS_READ_WRITE
These are the access restrictions on this calendar.

See Also:
Constant Field Values

ACCESS_READ_ONLY

public static final int ACCESS_READ_ONLY
See Also:
Constant Field Values
Constructor Detail

KalendarRenderWrapper

public KalendarRenderWrapper(Kalendar kalendar)
Configure a calendar for rendering. Set default values for calendar color (BLUE) and access (READ_ONLY).

Parameters:
kalendar -
calendarColor -
access -

KalendarRenderWrapper

public KalendarRenderWrapper(Kalendar kalendar,
                             KalendarConfig config,
                             int access)
Configure a calendar for rendering.

Parameters:
kalendar -
calendarColor -
access -
Method Detail

setAccess

public void setAccess(int access)

getAccess

public int getAccess()

setImported

public void setImported(boolean imported)

isImported

public boolean isImported()

isSubscribed

public boolean isSubscribed()

setSubscribed

public void setSubscribed(boolean subscribed)

getKalendar

public Kalendar getKalendar()

reloadKalendar

public Kalendar reloadKalendar()

getKalendarConfig

public KalendarConfig getKalendarConfig()

setKalendarConfig

public void setKalendarConfig(KalendarConfig calendarConfig)

getLinkProvider

public LinkProvider getLinkProvider()
Returns:
Returns the linkProvider.

setLinkProvider

public void setLinkProvider(LinkProvider linkProvider)
Parameters:
linkProvider - The linkProvider to set.

hasIcalFeed

public boolean hasIcalFeed(Identity identity)