Java Doc for CalendarService.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.CalendarService

All known Subclasses:   org.sakaiproject.calendar.impl.BaseCalendarService,
CalendarService
public interface CalendarService extends EntityProducer(Code)

CalendarService is the interface for the Calendar service.

The service manages a set of calendars, each containing a set of events.



Field Summary
final static  StringAPPLICATION_ID
     The type string for this application: should not change over time as it may be stored in various parts of persistent entities.
final public static  StringAUTH_ADD_CALENDAR
    
final public static  StringAUTH_ALL_GROUPS_CALENDAR
     Security function granted to users who will then have membership in all site groups based on their site membership.
final public static  StringAUTH_IMPORT_CALENDAR
     Security lock for importing events into a calendar.
final public static  StringAUTH_MODIFY_CALENDAR_ANY
     Security lock for changing any events (or fields) in a calendar.
final public static  StringAUTH_MODIFY_CALENDAR_OWN
     Security lock for changing user's own events in a calendar.
final public static  StringAUTH_READ_CALENDAR
     Security lock for adding to a calendar.
final public static  StringAUTH_REMOVE_CALENDAR_ANY
    
final public static  StringAUTH_REMOVE_CALENDAR_OWN
    
final public static  intDAY_VIEW
    
final public static  StringEVENT_ADD_CALENDAR
     Name for the event of adding a calendar event.
final public static  StringEVENT_MODIFY_CALENDAR
     Name for the event of removing or changing any events in a calendar.
final public static  StringEVENT_REMOVE_CALENDAR
    
final public static  intLIST_VIEW
    
final public static  intMOD_ALL
     Recurring event modification intention: all.
final public static  intMOD_NA
     Recurring event modification intention: no intention.
final public static  intMOD_PRIOR
     Recurring event modification intention: this and prior.
final public static  intMOD_REST
     Recurring event modification intention: this and subsequent.
final public static  intMOD_THIS
     Recurring event modification intention: just this one.
final public static  intMONTH_VIEW
    
final public static  StringREFERENCE_ROOT
     This string starts the references to resources in this service.
final public static  StringREF_TYPE_CALENDAR
     The Reference type for a calendar.
final public static  StringREF_TYPE_CALENDAR_PDF
     The Reference type for a calendar pdf.
final public static  StringREF_TYPE_EVENT
     The Reference type for an event.
final public static  StringSECURE_ADD
     Security function / event for adding site / event.
final public static  StringSECURE_ALL_GROUPS
     Security function giving the user permission to all groups, if granted to at the calendar or calendar level.
final public static  StringSECURE_READ
     Security function / event for reading site / event.
final public static  StringSECURE_REMOVE
    
final public static  StringSECURE_UPDATE
     Security function / event for updating event.
final public static  StringSESSION_CALENDAR_LIST
    
final public static  intUNKNOWN_VIEW
     Calendar Printing Views.
final public static  intWEEK_VIEW
    


Method Summary
public  CalendarEditaddCalendar(String ref)
     Add a new calendar. Must commitCalendar() to make official, or cancelCalendar() when done!
Parameters:
  ref - The new calendar reference.
public  booleanallowEditCalendar(String ref)
     check permissions for editCalendar() e.g.
public  booleanallowGetCalendar(String ref)
     check permissions for getCalendar().
Parameters:
  ref - The calendar reference.
public  booleanallowImportCalendar(String ref)
     check permissions for importing calendar events
Parameters:
  ref - The calendar reference.
public  booleanallowMergeCalendar(String ref)
     check permissions for mergeCalendar()
Parameters:
  ref - The calendar reference.
public  StringcalendarPdfReference(String context, String id, int scheduleType, String timeRangeString, String userName, TimeRange dailyTimeRange)
     Access the internal reference which can be used to access the calendar-in-pdf format from within the system.
Parameters:
  context - The context.
Parameters:
  id - The calendar id.
public  StringcalendarReference(String context, String id)
     Access the internal reference which can be used to access the calendar from within the system.
Parameters:
  context - The context.
Parameters:
  id - The calendar id.
public  voidcancelCalendar(CalendarEdit edit)
     Cancel the changes made to a CalendarEdit object, and release the lock.
public  voidcommitCalendar(CalendarEdit edit)
     Commit the changes made to a CalendarEdit object, and release the lock.
public  CalendarEditeditCalendar(String ref)
     Get a locked calendar object for editing. Must commitCalendar() to make official, or cancelCalendar() or removeCalendar() when done!
Parameters:
  ref - The calendar reference.
public  StringeventReference(String context, String calendarId, String id)
     Access the internal reference which can be used to access the event from within the system.
Parameters:
  context - The context.
Parameters:
  calendarlId - The channel id.
Parameters:
  id - The event id.
public  CalendargetCalendar(String ref)
     Return a specific calendar.
Parameters:
  ref - The calendar reference.
public  ListgetCalendars()
     Return a List of all the defined calendars.
public  CalendarEventVectorgetEvents(List references, TimeRange range)
     Takes several calendar References and merges their events from within a given time range.
Parameters:
  references - The List of calendar References.
Parameters:
  range - The time period to use to select events.
 RecurrenceRulenewRecurrence(String frequency)
     Construct a new recurrence rule who's frequency description matches the frequency parameter.
Parameters:
  frequency - The frequency description of the desired rule.
 RecurrenceRulenewRecurrence(String frequency, int interval)
     Construct a new recurrence rule who's frequency description matches the frequency parameter.
Parameters:
  frequency - The frequency description of the desired rule.
Parameters:
  interval - The recurrence interval.
 RecurrenceRulenewRecurrence(String frequency, int interval, int count)
     Construct a new recurrence rule who's frequency description matches the frequency parameter.
Parameters:
  frequency - The frequency description of the desired rule.
Parameters:
  interval - The recurrence interval.
Parameters:
  count - The number of reecurrences limit.
 RecurrenceRulenewRecurrence(String frequency, int interval, Time until)
     Construct a new recurrence rule who's frequency description matches the frequency parameter.
Parameters:
  frequency - The frequency description of the desired rule.
Parameters:
  interval - The recurrence interval.
Parameters:
  until - The time after which recurrences stop.
public  voidremoveCalendar(CalendarEdit edit)
     Remove a calendar that is locked for edit.

Field Detail
APPLICATION_ID
final static String APPLICATION_ID(Code)
The type string for this application: should not change over time as it may be stored in various parts of persistent entities.



AUTH_ADD_CALENDAR
final public static String AUTH_ADD_CALENDAR(Code)
Security lock for adding a calendar event



AUTH_ALL_GROUPS_CALENDAR
final public static String AUTH_ALL_GROUPS_CALENDAR(Code)
Security function granted to users who will then have membership in all site groups based on their site membership.



AUTH_IMPORT_CALENDAR
final public static String AUTH_IMPORT_CALENDAR(Code)
Security lock for importing events into a calendar.



AUTH_MODIFY_CALENDAR_ANY
final public static String AUTH_MODIFY_CALENDAR_ANY(Code)
Security lock for changing any events (or fields) in a calendar.



AUTH_MODIFY_CALENDAR_OWN
final public static String AUTH_MODIFY_CALENDAR_OWN(Code)
Security lock for changing user's own events in a calendar.



AUTH_READ_CALENDAR
final public static String AUTH_READ_CALENDAR(Code)
Security lock for adding to a calendar.



AUTH_REMOVE_CALENDAR_ANY
final public static String AUTH_REMOVE_CALENDAR_ANY(Code)
Security lock for removing any calendar event



AUTH_REMOVE_CALENDAR_OWN
final public static String AUTH_REMOVE_CALENDAR_OWN(Code)
Security lock for removing user's own calendar event



DAY_VIEW
final public static int DAY_VIEW(Code)



EVENT_ADD_CALENDAR
final public static String EVENT_ADD_CALENDAR(Code)
Name for the event of adding a calendar event.



EVENT_MODIFY_CALENDAR
final public static String EVENT_MODIFY_CALENDAR(Code)
Name for the event of removing or changing any events in a calendar.



EVENT_REMOVE_CALENDAR
final public static String EVENT_REMOVE_CALENDAR(Code)
Name for the event of removing a calendar event



LIST_VIEW
final public static int LIST_VIEW(Code)



MOD_ALL
final public static int MOD_ALL(Code)
Recurring event modification intention: all.



MOD_NA
final public static int MOD_NA(Code)
Recurring event modification intention: no intention.



MOD_PRIOR
final public static int MOD_PRIOR(Code)
Recurring event modification intention: this and prior.



MOD_REST
final public static int MOD_REST(Code)
Recurring event modification intention: this and subsequent.



MOD_THIS
final public static int MOD_THIS(Code)
Recurring event modification intention: just this one.



MONTH_VIEW
final public static int MONTH_VIEW(Code)



REFERENCE_ROOT
final public static String REFERENCE_ROOT(Code)
This string starts the references to resources in this service.



REF_TYPE_CALENDAR
final public static String REF_TYPE_CALENDAR(Code)
The Reference type for a calendar.



REF_TYPE_CALENDAR_PDF
final public static String REF_TYPE_CALENDAR_PDF(Code)
The Reference type for a calendar pdf.



REF_TYPE_EVENT
final public static String REF_TYPE_EVENT(Code)
The Reference type for an event.



SECURE_ADD
final public static String SECURE_ADD(Code)
Security function / event for adding site / event.



SECURE_ALL_GROUPS
final public static String SECURE_ALL_GROUPS(Code)
Security function giving the user permission to all groups, if granted to at the calendar or calendar level.



SECURE_READ
final public static String SECURE_READ(Code)
Security function / event for reading site / event.



SECURE_REMOVE
final public static String SECURE_REMOVE(Code)
Security function / event for removing event



SECURE_UPDATE
final public static String SECURE_UPDATE(Code)
Security function / event for updating event.



SESSION_CALENDAR_LIST
final public static String SESSION_CALENDAR_LIST(Code)
session attribute for list of all calendars user can reference



UNKNOWN_VIEW
final public static int UNKNOWN_VIEW(Code)
Calendar Printing Views.



WEEK_VIEW
final public static int WEEK_VIEW(Code)





Method Detail
addCalendar
public CalendarEdit addCalendar(String ref) throws IdUsedException, IdInvalidException, PermissionException(Code)
Add a new calendar. Must commitCalendar() to make official, or cancelCalendar() when done!
Parameters:
  ref - The new calendar reference. The newly created calendar.
exception:
  IdUsedException - if the id is not unique.
exception:
  IdInvalidException - if the id is not made up of valid characters.
exception:
  PermissionException - if the user does not have permission to add a calendar.



allowEditCalendar
public boolean allowEditCalendar(String ref)(Code)
check permissions for editCalendar() e.g. add/delete fields
Parameters:
  ref - The calendar reference. true if the user is allowed to edit the calendar, false if not.



allowGetCalendar
public boolean allowGetCalendar(String ref)(Code)
check permissions for getCalendar().
Parameters:
  ref - The calendar reference. true if the user is allowed to getCalendar(ref), false if not.



allowImportCalendar
public boolean allowImportCalendar(String ref)(Code)
check permissions for importing calendar events
Parameters:
  ref - The calendar reference. true if the user is allowed to import events, false if not.



allowMergeCalendar
public boolean allowMergeCalendar(String ref)(Code)
check permissions for mergeCalendar()
Parameters:
  ref - The calendar reference. true if the user is allowed to merge the calendar, false if not.



calendarPdfReference
public String calendarPdfReference(String context, String id, int scheduleType, String timeRangeString, String userName, TimeRange dailyTimeRange)(Code)
Access the internal reference which can be used to access the calendar-in-pdf format from within the system.
Parameters:
  context - The context.
Parameters:
  id - The calendar id. The the internal reference which can be used to access the calendar-in-pdf format from within the system.



calendarReference
public String calendarReference(String context, String id)(Code)
Access the internal reference which can be used to access the calendar from within the system.
Parameters:
  context - The context.
Parameters:
  id - The calendar id. The the internal reference which can be used to access the calendar from within the system.



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



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



editCalendar
public CalendarEdit editCalendar(String ref) throws IdUnusedException, PermissionException, InUseException(Code)
Get a locked calendar object for editing. Must commitCalendar() to make official, or cancelCalendar() or removeCalendar() when done!
Parameters:
  ref - The calendar reference. A CalendarEdit object for editing.
exception:
  IdUnusedException - if not found, or if not an CalendarEdit object
exception:
  PermissionException - if the current user does not have permission to mess with this user.
exception:
  InUseException - if the Calendar object is locked by someone else.



eventReference
public String eventReference(String context, String calendarId, String id)(Code)
Access the internal reference which can be used to access the event from within the system.
Parameters:
  context - The context.
Parameters:
  calendarlId - The channel id.
Parameters:
  id - The event id. The the internal reference which can be used to access the event from within the system.



getCalendar
public Calendar getCalendar(String ref) throws IdUnusedException, PermissionException(Code)
Return a specific calendar.
Parameters:
  ref - The calendar reference. the Calendar that has the specified name.
exception:
  IdUnusedException - If this name is not defined for any calendar.
exception:
  PermissionException - If the user does not have any permissions to the calendar.



getCalendars
public List getCalendars()(Code)
Return a List of all the defined calendars. a List of Calendar objects (may be empty)



getEvents
public CalendarEventVector getEvents(List references, TimeRange range)(Code)
Takes several calendar References and merges their events from within a given time range.
Parameters:
  references - The List of calendar References.
Parameters:
  range - The time period to use to select events. CalendarEventVector object with the union of all events from the list of calendars in the given time range.



newRecurrence
RecurrenceRule newRecurrence(String frequency)(Code)
Construct a new recurrence rule who's frequency description matches the frequency parameter.
Parameters:
  frequency - The frequency description of the desired rule. A new recurrence rule.



newRecurrence
RecurrenceRule newRecurrence(String frequency, int interval)(Code)
Construct a new recurrence rule who's frequency description matches the frequency parameter.
Parameters:
  frequency - The frequency description of the desired rule.
Parameters:
  interval - The recurrence interval. A new recurrence rule.



newRecurrence
RecurrenceRule newRecurrence(String frequency, int interval, int count)(Code)
Construct a new recurrence rule who's frequency description matches the frequency parameter.
Parameters:
  frequency - The frequency description of the desired rule.
Parameters:
  interval - The recurrence interval.
Parameters:
  count - The number of reecurrences limit. A new recurrence rule.



newRecurrence
RecurrenceRule newRecurrence(String frequency, int interval, Time until)(Code)
Construct a new recurrence rule who's frequency description matches the frequency parameter.
Parameters:
  frequency - The frequency description of the desired rule.
Parameters:
  interval - The recurrence interval.
Parameters:
  until - The time after which recurrences stop. A new recurrence rule.



removeCalendar
public void removeCalendar(CalendarEdit edit) throws PermissionException(Code)
Remove a calendar that is locked for edit.
Parameters:
  edit - The calendar to remove.
exception:
  PermissionException - if the user does not have permission to remove a calendar.



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