com.arsdigita.acs.calendar
Class CalendarInfo

java.lang.Object
  |
  +--com.arsdigita.acs.calendar.CalendarInfo

public class CalendarInfo
extends Object

Simple data-storage class for calendar info. TODO: add get/set methods, consider merging this into one proper "Calendar" class since this is not at all O-O, or else use "calendarParam" like PortalsParam is using.


Field Summary
 String action
           
 String addLink
           
 String compressDayViewP
          "t" or "f".
 String currentDate
           
 String currentView
           
 String currentViewLink
           
 String dayLink
           
 boolean groupAdminP
           
 Integer groupId
           
 boolean groupMemberP
           
 String groupName
           
 UserInfo loggedInUser
           
 String newItemsAge
           
 String prettyCurrentDate
           
 String prettyName
           
 String title
           
 String type
           
 Integer viewedUserId
           
 String viewMode
           
 String viewModeVar
           
 
Constructor Summary
CalendarInfo()
           
 
Method Summary
 String getAction()
          Get the value of action.
 String getAddLink()
          Get the value of addLink.
 String getCompressDayViewP()
          Get the value of compressDayViewP (t or f).
 String getCurrentDate()
          Get the value of currentDate.
 String getCurrentView()
          Get the value of currentView.
 String getCurrentViewLink()
          Get the value of currentViewLink.
 String getDayLink()
          Get the value of dayLink.
 Integer getGroupId()
          Get the value of groupId.
 String getGroupName()
          Get the value of groupName.
 UserInfo getLoggedInUser()
          Get the value of loggedInUser.
 Integer getLoggedInUserIdOr0()
          Get the value of loggedInUserId, or 0 if there is no logged in user.
 String getNewItemsAge()
          Get the value of newItemsAge.
 String getPrettyCurrentDate()
          Get the value of prettyCurrentDate.
 String getPrettyName()
          Get the value of prettyName.
 String getTitle()
          Get the value of title.
 String getType()
          Get the value of type.
 Integer getViewedUserId()
          Gets viewed user id.
 String getViewMode()
          Get the value of viewMode.
 String getViewModeVar()
          Get the value of viewModeVar.
 boolean isGroupAdminP()
          Get the value of groupAdminP.
 boolean isGroupMemberP()
          Get the value of groupMemberP.
 void setAction(String v)
          Set the value of action.
 void setAddLink(String v)
          Set the value of addLink.
 void setCompressDayViewP(String v)
          Set the value of compressDayViewP (t or f).
 void setCurrentDate(String v)
          Set the value of currentDate.
 void setCurrentView(String v)
          Set the value of currentView.
 void setCurrentViewLink(String v)
          Set the value of currentViewLink.
 void setDayLink(String v)
          Set the value of dayLink.
 void setGroupAdminP(boolean v)
          Set the value of groupAdminP.
 void setGroupId(Integer v)
          Set the value of groupId.
 void setGroupMemberP(boolean v)
          Set the value of groupMemberP.
 void setGroupName(String v)
          Set the value of groupName.
 void setLoggedInUser(UserInfo v)
          Set the value of loggedInUser.
 void setNewItemsAge(String v)
          Set the value of newItemsAge.
 void setPrettyCurrentDate(String v)
          Set the value of prettyCurrentDate.
 void setPrettyName(String v)
          Set the value of prettyName.
 void setTitle(String v)
          Set the value of title.
 void setType(String v)
          Set the value of type.
 void setViewedUserId(Integer v)
          Sets viewed user id.
 void setViewMode(String v)
          Set the value of viewMode.
 void setViewModeVar(String v)
          Set the value of viewModeVar.
 String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

loggedInUser

public UserInfo loggedInUser

viewedUserId

public Integer viewedUserId

currentDate

public String currentDate

prettyCurrentDate

public String prettyCurrentDate

type

public String type

groupName

public String groupName

prettyName

public String prettyName

groupMemberP

public boolean groupMemberP

groupAdminP

public boolean groupAdminP

groupId

public Integer groupId

currentView

public String currentView

compressDayViewP

public String compressDayViewP
"t" or "f".

newItemsAge

public String newItemsAge

title

public String title

viewMode

public String viewMode

viewModeVar

public String viewModeVar

action

public String action

addLink

public String addLink

currentViewLink

public String currentViewLink

dayLink

public String dayLink
Constructor Detail

CalendarInfo

public CalendarInfo()
Method Detail

getCurrentView

public String getCurrentView()
Get the value of currentView.
Returns:
value of currentView.

setCurrentView

public void setCurrentView(String v)
Set the value of currentView.
Parameters:
v - Value to assign to currentView.

getGroupId

public Integer getGroupId()
Get the value of groupId.
Returns:
value of groupId.

setGroupId

public void setGroupId(Integer v)
Set the value of groupId.
Parameters:
v - Value to assign to groupId.

isGroupAdminP

public boolean isGroupAdminP()
Get the value of groupAdminP.
Returns:
value of groupAdminP.

setGroupAdminP

public void setGroupAdminP(boolean v)
Set the value of groupAdminP.
Parameters:
v - Value to assign to groupAdminP.

isGroupMemberP

public boolean isGroupMemberP()
Get the value of groupMemberP.
Returns:
value of groupMemberP.

setGroupMemberP

public void setGroupMemberP(boolean v)
Set the value of groupMemberP.
Parameters:
v - Value to assign to groupMemberP.

getPrettyName

public String getPrettyName()
Get the value of prettyName.
Returns:
value of prettyName.

setPrettyName

public void setPrettyName(String v)
Set the value of prettyName.
Parameters:
v - Value to assign to prettyName.

getGroupName

public String getGroupName()
Get the value of groupName.
Returns:
value of groupName.

setGroupName

public void setGroupName(String v)
Set the value of groupName.
Parameters:
v - Value to assign to groupName.

getType

public String getType()
Get the value of type.
Returns:
value of type.

setType

public void setType(String v)
Set the value of type.
Parameters:
v - Value to assign to type.

getPrettyCurrentDate

public String getPrettyCurrentDate()
Get the value of prettyCurrentDate.
Returns:
value of prettyCurrentDate.

setPrettyCurrentDate

public void setPrettyCurrentDate(String v)
Set the value of prettyCurrentDate.
Parameters:
v - Value to assign to prettyCurrentDate.

getCurrentDate

public String getCurrentDate()
Get the value of currentDate.
Returns:
value of currentDate.

setCurrentDate

public void setCurrentDate(String v)
Set the value of currentDate.
Parameters:
v - Value to assign to currentDate.

getCompressDayViewP

public String getCompressDayViewP()
Get the value of compressDayViewP (t or f).
Returns:
value of compressDayViewP.

setCompressDayViewP

public void setCompressDayViewP(String v)
Set the value of compressDayViewP (t or f).
Parameters:
v - Value to assign to compressDayViewP.

getNewItemsAge

public String getNewItemsAge()
Get the value of newItemsAge.
Returns:
value of newItemsAge.

setNewItemsAge

public void setNewItemsAge(String v)
Set the value of newItemsAge.
Parameters:
v - Value to assign to newItemsAge.

getTitle

public String getTitle()
Get the value of title.
Returns:
value of title.

setTitle

public void setTitle(String v)
Set the value of title.
Parameters:
v - Value to assign to title.

getViewModeVar

public String getViewModeVar()
Get the value of viewModeVar.
Returns:
value of viewModeVar.

setViewModeVar

public void setViewModeVar(String v)
Set the value of viewModeVar.
Parameters:
v - Value to assign to viewModeVar.

getAction

public String getAction()
Get the value of action.
Returns:
value of action.

setAction

public void setAction(String v)
Set the value of action.
Parameters:
v - Value to assign to action.

getAddLink

public String getAddLink()
Get the value of addLink.
Returns:
value of addLink.

setAddLink

public void setAddLink(String v)
Set the value of addLink.
Parameters:
v - Value to assign to addLink.

getViewMode

public String getViewMode()
Get the value of viewMode.
Returns:
value of viewMode.

setViewMode

public void setViewMode(String v)
Set the value of viewMode.
Parameters:
v - Value to assign to viewMode.

getCurrentViewLink

public String getCurrentViewLink()
Get the value of currentViewLink.
Returns:
value of currentViewLink.

setCurrentViewLink

public void setCurrentViewLink(String v)
Set the value of currentViewLink.
Parameters:
v - Value to assign to currentViewLink.

getLoggedInUser

public UserInfo getLoggedInUser()
Get the value of loggedInUser.
Returns:
value of loggedInUser.

setLoggedInUser

public void setLoggedInUser(UserInfo v)
Set the value of loggedInUser.
Parameters:
v - Value to assign to loggedInUser.

getDayLink

public String getDayLink()
Get the value of dayLink.
Returns:
value of dayLink.

setDayLink

public void setDayLink(String v)
Set the value of dayLink.
Parameters:
v - Value to assign to dayLink.

getLoggedInUserIdOr0

public Integer getLoggedInUserIdOr0()
Get the value of loggedInUserId, or 0 if there is no logged in user.
Returns:
value of loggedInUser or 0, as an Integer so it can be bound.

getViewedUserId

public Integer getViewedUserId()
Gets viewed user id. There is supposed to be a distinction between viewed user id and logged in user id, but this is not strictly enforced right now.

setViewedUserId

public void setViewedUserId(Integer v)
Sets viewed user id. There is supposed to be a distinction between viewed user id and logged in user id, but this is not strictly enforced right now.

toString

public String toString()
Overrides:
toString in class Object