public class BluemindConnector extends AbstractMessagingConnector
MessagingConnector.AttendeeInformation, MessagingConnector.FreeBusyStatus, MessagingConnector.ResponseType
Modifier and Type | Field and Description |
---|---|
protected String |
_adminLogin
The administrator login.
|
protected String |
_apiKey
An API key generated by the above administrator account.
|
protected String |
_bmCoreUrl
The bluemind server core URL (for instance
http://bluemind.myserver.com/services)
|
protected CurrentUserProvider |
_currentUserProvider
The current user provider
|
protected String |
_domain
The BlueMind domain (for instance myserver.com)
|
protected net.bluemind.core.rest.http.ClientSideServiceProvider |
_serviceProvider
The serviceProvider to establish the connection
|
_userPopulationDAO
ROLE
Constructor and Description |
---|
BluemindConnector() |
Modifier and Type | Method and Description |
---|---|
private net.bluemind.core.rest.http.ClientSideServiceProvider |
_getServiceUserProvider(UserIdentity userIdentity) |
private String |
_getUserAuthKey(UserIdentity userIdentity) |
protected Map<String,Object> |
getEventsInfo(UserIdentity userIdentity,
int maxDays)
Get the events information from the bluemind server.
|
void |
initialize() |
protected List<EmailMessage> |
internalGetEmails(UserIdentity userIdentity,
int maxEmails)
Get emails (no caching)
|
protected int |
internalGetEmailsCount(UserIdentity userIdentity)
Get emails count (no caching)
|
protected List<CalendarEvent> |
internalGetEvents(UserIdentity userIdentity,
Date fromDate,
Date untilDate,
int maxEvents)
Get events between two date (no caching)
|
protected int |
internalGetEventsCount(UserIdentity userIdentity,
Date fromDate,
Date untilDate)
Get events count between two date (no caching)
|
void |
service(ServiceManager manager) |
createEvent, deleteEvent, getAllowedPopulationIds, getAttendees, getEvents, getEventsCount, getFreeBusy, getUnreadEmailCount, getUnreadEmails, isAllowed, isEventExist, isUserExist, setAttendees, supportInvitation, updateEvent
getLogger, setLogger
protected CurrentUserProvider _currentUserProvider
protected String _bmCoreUrl
protected String _adminLogin
protected net.bluemind.core.rest.http.ClientSideServiceProvider _serviceProvider
public BluemindConnector()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractMessagingConnector
ServiceException
public void initialize()
initialize
in interface Initializable
initialize
in class AbstractMessagingConnector
private String _getUserAuthKey(UserIdentity userIdentity)
private net.bluemind.core.rest.http.ClientSideServiceProvider _getServiceUserProvider(UserIdentity userIdentity)
protected Map<String,Object> getEventsInfo(UserIdentity userIdentity, int maxDays) throws MessagingConnectorException
userIdentity
- the user identity.maxDays
- The maximum number of days from now to search the eventsMessagingConnectorException
- if an error occurs.protected List<CalendarEvent> internalGetEvents(UserIdentity userIdentity, Date fromDate, Date untilDate, int maxEvents) throws MessagingConnectorException
AbstractMessagingConnector
internalGetEvents
in class AbstractMessagingConnector
userIdentity
- The user identityfromDate
- The date to start searchuntilDate
- The date to end searchmaxEvents
- The maximum number of events to retrieveMessagingConnectorException
- if failed to get events from serverprotected int internalGetEventsCount(UserIdentity userIdentity, Date fromDate, Date untilDate) throws MessagingConnectorException
AbstractMessagingConnector
internalGetEventsCount
in class AbstractMessagingConnector
userIdentity
- The user identityfromDate
- The date to start searchuntilDate
- The date to end searchMessagingConnectorException
- if failed to get events from serverprotected List<EmailMessage> internalGetEmails(UserIdentity userIdentity, int maxEmails) throws MessagingConnectorException
AbstractMessagingConnector
internalGetEmails
in class AbstractMessagingConnector
userIdentity
- The user identitymaxEmails
- The maximum number of emails to retrieveMessagingConnectorException
- if failed to get events from serverprotected int internalGetEmailsCount(UserIdentity userIdentity) throws MessagingConnectorException
AbstractMessagingConnector
internalGetEmailsCount
in class AbstractMessagingConnector
userIdentity
- The user identityMessagingConnectorException
- if failed to get events from server