@Component public class AppointmentManager extends Object
| コンストラクタと説明 |
|---|
AppointmentManager() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
cleanupIdleConnections()
Cleans up unused idle connections.
|
boolean |
createCalendar(org.apache.commons.httpclient.HttpClient client,
org.apache.openmeetings.db.entity.calendar.OmCalendar calendar)
Create or Update calendar on the database.
|
org.apache.commons.httpclient.HttpClient |
createHttpClient()
Returns a new HttpClient with the inbuilt connection manager in this.
|
void |
deleteCalendar(org.apache.openmeetings.db.entity.calendar.OmCalendar calendar)
Deletes the calendar from the local database.
|
boolean |
deleteItem(org.apache.commons.httpclient.HttpClient client,
org.apache.openmeetings.db.entity.calendar.Appointment appointment)
Delete Appointment on the CalDAV server.
|
void |
destroy()
Method which is called when the Context is destroyed.
|
List<org.apache.openmeetings.db.entity.calendar.OmCalendar> |
getCalendars() |
List<org.apache.openmeetings.db.entity.calendar.OmCalendar> |
getCalendars(Long userid) |
List<org.apache.openmeetings.db.entity.calendar.OmCalendar> |
getGoogleCalendars(Long userId) |
String |
getPathfromCalendar(org.apache.commons.httpclient.HttpClient client,
org.apache.openmeetings.db.entity.calendar.OmCalendar calendar)
Returns the Path from the Calendar.
|
static String |
getTokenFromProperty(org.apache.jackrabbit.webdav.property.DavProperty<?> property)
Returns the String value of the property, else null.
|
void |
provideCredentials(org.apache.commons.httpclient.HttpClient client,
org.apache.openmeetings.db.entity.calendar.OmCalendar calendar,
org.apache.commons.httpclient.Credentials credentials)
Adds the Credentials provided to the given client on the Calendar's URL.
|
void |
syncItem(org.apache.commons.httpclient.HttpClient client,
org.apache.openmeetings.db.entity.calendar.OmCalendar calendar)
Function which when called performs syncing based on the type of Syncing detected.
|
void |
syncItems(org.apache.commons.httpclient.HttpClient client,
Long userId)
Syncs all the calendars currrently present on the DB.
|
boolean |
testConnection(org.apache.commons.httpclient.HttpClient client,
org.apache.openmeetings.db.entity.calendar.OmCalendar calendar)
Tests if the Calendar's URL can be accessed, or not.
|
boolean |
updateItem(org.apache.commons.httpclient.HttpClient client,
org.apache.openmeetings.db.entity.calendar.Appointment appointment)
Function for create/updating multiple appointment on the server.
|
public org.apache.commons.httpclient.HttpClient createHttpClient()
public String getPathfromCalendar(org.apache.commons.httpclient.HttpClient client, org.apache.openmeetings.db.entity.calendar.OmCalendar calendar)
client - Client which makes the connection.calendar - Calendar who's URL is used to get the path from.public void provideCredentials(org.apache.commons.httpclient.HttpClient client,
org.apache.openmeetings.db.entity.calendar.OmCalendar calendar,
org.apache.commons.httpclient.Credentials credentials)
client - Client which makes the connection.calendar - Calendar whose Host the Credentials are for.credentials - Credentials to addpublic boolean testConnection(org.apache.commons.httpclient.HttpClient client,
org.apache.openmeetings.db.entity.calendar.OmCalendar calendar)
client - Client which makes the connection.calendar - Calendar whose URL is to be accessed.public boolean createCalendar(org.apache.commons.httpclient.HttpClient client,
org.apache.openmeetings.db.entity.calendar.OmCalendar calendar)
calendar - Calendar to update or createpublic void deleteCalendar(org.apache.openmeetings.db.entity.calendar.OmCalendar calendar)
calendar - Calendar to deletepublic List<org.apache.openmeetings.db.entity.calendar.OmCalendar> getCalendars()
public List<org.apache.openmeetings.db.entity.calendar.OmCalendar> getCalendars(Long userid)
OmCalendarDao.getByUser(Long)public List<org.apache.openmeetings.db.entity.calendar.OmCalendar> getGoogleCalendars(Long userId)
OmCalendarDao.getGoogleCalendars(Long)public void syncItem(org.apache.commons.httpclient.HttpClient client,
org.apache.openmeetings.db.entity.calendar.OmCalendar calendar)
calendar - Calendar who's sync has to take placepublic void syncItems(org.apache.commons.httpclient.HttpClient client,
Long userId)
public boolean updateItem(org.apache.commons.httpclient.HttpClient client,
org.apache.openmeetings.db.entity.calendar.Appointment appointment)
appointment - Appointment to create/update.public boolean deleteItem(org.apache.commons.httpclient.HttpClient client,
org.apache.openmeetings.db.entity.calendar.Appointment appointment)
appointment - Appointment to Deletepublic static String getTokenFromProperty(org.apache.jackrabbit.webdav.property.DavProperty<?> property)
property - Property who's string value is to be returned.public void cleanupIdleConnections()
@PreDestroy public void destroy()
Copyright © 2012–2017 Apache Software Foundation. All rights reserved.