Java Doc for Calendar.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » calendar » api » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » org.sakaiproject.calendar.api 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.sakaiproject.calendar.api.Calendar

Calendar
public interface Calendar extends Entity(Code)

Calendar is the base interface for Calendar service calendars.

Calendars contains collections of CalendarEvents.





Method Summary
public  CalendarEventaddEvent(TimeRange range, String displayName, String description, String type, String location, EventAccess access, Collection groups, List attachments)
     Add a new event to this calendar.
Parameters:
  range - The event's time range.
Parameters:
  displayName - The event's display name (PROP_DISPLAY_NAME) property value.
Parameters:
  description - The event's description (PROP_DESCRIPTION) property value.
Parameters:
  type - The event's calendar event type (PROP_CALENDAR_TYPE) property value.
Parameters:
  location - The event's calendar event location (PROP_CALENDAR_LOCATION) property value.
Parameters:
  access - The event's access type site or grouped
Parameters:
  groups - The groups which can access this event
Parameters:
  attachments - The event attachments, a vector of Reference objects.
public  CalendarEventaddEvent(TimeRange range, String displayName, String description, String type, String location, List attachments)
     Add a new event to this calendar.
Parameters:
  range - The event's time range.
Parameters:
  displayName - The event's display name (PROP_DISPLAY_NAME) property value.
Parameters:
  description - The event's description (PROP_DESCRIPTION) property value.
Parameters:
  type - The event's calendar event type (PROP_CALENDAR_TYPE) property value.
Parameters:
  location - The event's calendar event location (PROP_CALENDAR_LOCATION) property value.
Parameters:
  attachments - The event attachments, a vector of Reference objects.
public  CalendarEventEditaddEvent()
     Add a new event to this calendar.
 booleanallowAddCalendarEvent()
     Check if the user has permission to add a calendar-wide (not grouped) message.
public  booleanallowAddEvent()
     check permissions for addEvent().
public  booleanallowEditEvent(String eventId)
     check permissions for editEvent()
Parameters:
  id - The event id.
public  booleanallowGetEvent(String eventId)
     check permissions for getEvent() for a particular event.
public  booleanallowGetEvents()
     check permissions for getEvents() and getEvent() on a SITE / calendar level.
public  booleanallowRemoveEvent(CalendarEvent event)
     check permissions for removeEvent().
Parameters:
  event - The event from this calendar to remove.
public  voidcancelEvent(CalendarEventEdit edit)
     Cancel the changes made to a CalendarEventEdit object, and release the lock.
public  voidcommitEvent(CalendarEventEdit edit, int intention)
     Commit the changes made to a CalendarEventEdit object, and release the lock.
public  voidcommitEvent(CalendarEventEdit edit)
     Commit the changes made to a CalendarEventEdit object, and release the lock.
public  StringgetContext()
     Access the context of the resource.
public  CalendarEventEditgetEditEvent(String eventId, String editType)
     Return a specific calendar event, as specified by event name, locked for update.
public  CalendarEventgetEvent(String eventId)
     Return a specific calendar event, as specified by event name.
Parameters:
  eventId - The id of the event to get.
public  StringgetEventFields()
     Return the extra fields kept for each event in this calendar. the extra fields kept for each event in this calendar, formatted into a single string.
public  ListgetEvents(TimeRange range, Filter filter)
     Return a List of all or filtered events in the calendar. The order in which the events will be found in the iteration is by event start date.
Parameters:
  range - A time range to limit the iterated events.
 CollectiongetGroupsAllowAddEvent()
     Get the collection of Groups defined for the context of this calendar that the end user has add event permissions in.
 CollectiongetGroupsAllowGetEvent()
     Get the collection of Group defined for the context of this calendar that the end user has get event permissions in.
 CollectiongetGroupsAllowRemoveEvent(boolean own)
     Get the collection of Group defined for the context of this channel that the end user has remove event permissions in.
public  CalendarEventEditmergeEvent(Element el)
     Merge in a new event as defined in the xml.
public  voidremoveEvent(CalendarEventEdit edit, int intention)
     Remove an event from the calendar, one locked for edit.
public  voidremoveEvent(CalendarEventEdit edit)
     Remove an event from the calendar, one locked for edit.



Method Detail
addEvent
public CalendarEvent addEvent(TimeRange range, String displayName, String description, String type, String location, EventAccess access, Collection groups, List attachments) throws PermissionException(Code)
Add a new event to this calendar.
Parameters:
  range - The event's time range.
Parameters:
  displayName - The event's display name (PROP_DISPLAY_NAME) property value.
Parameters:
  description - The event's description (PROP_DESCRIPTION) property value.
Parameters:
  type - The event's calendar event type (PROP_CALENDAR_TYPE) property value.
Parameters:
  location - The event's calendar event location (PROP_CALENDAR_LOCATION) property value.
Parameters:
  access - The event's access type site or grouped
Parameters:
  groups - The groups which can access this event
Parameters:
  attachments - The event attachments, a vector of Reference objects. The newly added event.
exception:
  PermissionException - If the user does not have permission to modify the calendar.



addEvent
public CalendarEvent addEvent(TimeRange range, String displayName, String description, String type, String location, List attachments) throws PermissionException(Code)
Add a new event to this calendar.
Parameters:
  range - The event's time range.
Parameters:
  displayName - The event's display name (PROP_DISPLAY_NAME) property value.
Parameters:
  description - The event's description (PROP_DESCRIPTION) property value.
Parameters:
  type - The event's calendar event type (PROP_CALENDAR_TYPE) property value.
Parameters:
  location - The event's calendar event location (PROP_CALENDAR_LOCATION) property value.
Parameters:
  attachments - The event attachments, a vector of Reference objects. The newly added event.
exception:
  PermissionException - If the user does not have permission to modify the calendar.



addEvent
public CalendarEventEdit addEvent() throws PermissionException(Code)
Add a new event to this calendar. Must commitEvent() to make official, or cancelEvent() when done! The newly added event, locked for update.
exception:
  PermissionException - If the user does not have write permission to the calendar.



allowAddCalendarEvent
boolean allowAddCalendarEvent()(Code)
Check if the user has permission to add a calendar-wide (not grouped) message. true if the user has permission to add a calendar-wide (not grouped) message.



allowAddEvent
public boolean allowAddEvent()(Code)
check permissions for addEvent(). true if the user is allowed to addEvent(...), false if not.



allowEditEvent
public boolean allowEditEvent(String eventId)(Code)
check permissions for editEvent()
Parameters:
  id - The event id. true if the user is allowed to update the event, false if not.



allowGetEvent
public boolean allowGetEvent(String eventId)(Code)
check permissions for getEvent() for a particular event. true if the user is allowed to get the event from the calendar, false if not.



allowGetEvents
public boolean allowGetEvents()(Code)
check permissions for getEvents() and getEvent() on a SITE / calendar level. true if the user is allowed to get events from the calendar, false if not.



allowRemoveEvent
public boolean allowRemoveEvent(CalendarEvent event)(Code)
check permissions for removeEvent().
Parameters:
  event - The event from this calendar to remove. true if the user is allowed to removeEvent(event), false if not.



cancelEvent
public void cancelEvent(CalendarEventEdit edit)(Code)
Cancel the changes made to a CalendarEventEdit object, and release the lock. The CalendarEventEdit is disabled, and not to be used after this call.
Parameters:
  edit - The CalendarEventEdit object to commit.



commitEvent
public void commitEvent(CalendarEventEdit edit, int intention)(Code)
Commit the changes made to a CalendarEventEdit object, and release the lock. The CalendarEventEdit is disabled, and not to be used after this call.
Parameters:
  edit - The CalendarEventEdit object to commit.
Parameters:
  intention - The recurring event modification intention,based on values in the GenericCalendarService "MOD_*",used if the event is part of a recurring event sequence to determine how much of the sequence is changed by this commmit.



commitEvent
public void commitEvent(CalendarEventEdit edit)(Code)
Commit the changes made to a CalendarEventEdit object, and release the lock. The CalendarEventEdit is disabled, and not to be used after this call. Note: if the event is a recurring event, the entire sequence is modified by this commit (MOD_ALL).
Parameters:
  edit - The CalendarEventEdit object to commit.



getContext
public String getContext()(Code)
Access the context of the resource. The context.



getEditEvent
public CalendarEventEdit getEditEvent(String eventId, String editType) throws IdUnusedException, PermissionException, InUseException(Code)
Return a specific calendar event, as specified by event name, locked for update. Must commitEvent() to make official, or cancelEvent(), or removeEvent() when done!
Parameters:
  eventId - The id of the event to get.
Parameters:
  editType - add, remove or modifying calendar? the Event that has the specified id.
exception:
  IdUnusedException - If this name is not a defined event in this calendar.
exception:
  PermissionException - If the user does not have any permissions to edit the event.
exception:
  InUseException - if the event is locked for edit by someone else.



getEvent
public CalendarEvent getEvent(String eventId) throws IdUnusedException, PermissionException(Code)
Return a specific calendar event, as specified by event name.
Parameters:
  eventId - The id of the event to get. the CalendarEvent that has the specified id.
exception:
  IdUnusedException - If this id is not a defined event in this calendar.
exception:
  PermissionException - If the user does not have any permissions to read the calendar.



getEventFields
public String getEventFields()(Code)
Return the extra fields kept for each event in this calendar. the extra fields kept for each event in this calendar, formatted into a single string. %%%



getEvents
public List getEvents(TimeRange range, Filter filter) throws PermissionException(Code)
Return a List of all or filtered events in the calendar. The order in which the events will be found in the iteration is by event start date.
Parameters:
  range - A time range to limit the iterated events. May be null; all events will be returned.
Parameters:
  filter - A filtering object to accept events into the iterator, or null if no filtering is desired. a List of all or filtered CalendarEvents in the calendar (may be empty).
exception:
  PermissionException - if the user does not have read permission to the calendar.



getGroupsAllowAddEvent
Collection getGroupsAllowAddEvent()(Code)
Get the collection of Groups defined for the context of this calendar that the end user has add event permissions in. The Collection (Group) of groups defined for the context of this calendar that the end user has add event permissions in, empty if none.



getGroupsAllowGetEvent
Collection getGroupsAllowGetEvent()(Code)
Get the collection of Group defined for the context of this calendar that the end user has get event permissions in. The Collection (Group) of groups defined for the context of this calendar that the end user has get event permissions in, empty if none.



getGroupsAllowRemoveEvent
Collection getGroupsAllowRemoveEvent(boolean own)(Code)
Get the collection of Group defined for the context of this channel that the end user has remove event permissions in.
Parameters:
  own - boolean flag indicating whether user owns event The Collection (Group) of groups defined for the context of this channel that the end user has remove event permissions in, empty if none.



mergeEvent
public CalendarEventEdit mergeEvent(Element el) throws PermissionException, IdUsedException(Code)
Merge in a new event as defined in the xml.
Parameters:
  el - The event information in XML in a DOM element.
exception:
  PermissionException - If the user does not have write permission to the calendar.
exception:
  IdUsedException - if the user id is already used.



removeEvent
public void removeEvent(CalendarEventEdit edit, int intention) throws PermissionException(Code)
Remove an event from the calendar, one locked for edit.
Parameters:
  edit - The event from this calendar to remove.
Parameters:
  intention - The recurring event modification intention,based on values in the GenericCalendarService "MOD_*",used if the event is part of a recurring event sequence to determine how much of the sequence is removed.
throws:
  PermissionException - if the end user does not have permission to remove.



removeEvent
public void removeEvent(CalendarEventEdit edit) throws PermissionException(Code)
Remove an event from the calendar, one locked for edit. Note: if the event is a recurring event, the entire sequence is removed by this commit (MOD_ALL).
Parameters:
  edit - The event from this calendar to remove.
throws:
  PermissionException - if the end user does not have permission to remove.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.