API Docs for: 1.0.0
Show:

GSPCalendar.Server Class

Constructor

GSPCalendar.Server

()

Properties

calendar

GlideRecord | PortalCalendar

The PortalCalendar for the active service portal.

data

Object
Tracks the data to send over to the Widget in the UI. All data placed here arrives as part of the $scope.data object in the client side.

data.calendar

Object

The data to describe the basics of the current calendar such as title and description.

See the Calendar utility for the details retrieved by the getCalendarJSON method.

data.events

Object

All events for the currently associated Calendar where the u_publish_to_calendar flag is true.

This may pose a memory issue at a future point, but the current use case lets this remain simple.

See the Calendar utility for the details retrieved by the getEvents method.

options

Object
Tracks the options provided to the Widget for its own customizations. Additional information can also be added to this object or modified as needed in the server side script.

sp

GlideRecord | ServicePortal

The GlideRecord for the active ServicePortal from which to pull values such as the current calendar or owner information if needed.

utility

CWTCalendarUtil

Used for retrieving necessary calendar information.