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 String |
_domain
The BlueMind domain (for instance myserver.com)
|
protected net.bluemind.core.rest.http.ClientSideServiceProvider |
_serviceProvider
The serviceProvider to establish the connection
|
_cryptoHelper, _currentUserProvider, _userPopulationDAO, _userPref
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,
int maxDays,
int maxEvents)
Get upcoming events (no caching)
|
protected int |
internalGetEventsCount(UserIdentity userIdentity,
int maxDays)
Get upcoming events count (no caching)
|
createEvent, deleteEvent, getAllowedPopulationIds, getAttendees, getEvents, getEventsCount, getFreeBusy, getUnreadEmailCount, getUnreadEmails, getUserCryptedPassword, getUserPassword, internalCreateEvent, internalDeleteEvent, internalGetAttendees, internalGetFreeBusy, internalIsEventExist, internalSetAttendees, internalUpdateEvent, isAllowed, isEventExist, isUserExist, service, setAttendees, setUserPassword, supportInvitation, supportUserCredential, updateEvent, userCredentialNeeded
getLogger, setLogger
protected String _bmCoreUrl
protected String _adminLogin
protected net.bluemind.core.rest.http.ClientSideServiceProvider _serviceProvider
public BluemindConnector()
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, int maxDays, int maxEvents) throws MessagingConnectorException
AbstractMessagingConnector
internalGetEvents
in class AbstractMessagingConnector
userIdentity
- The user identitymaxDays
- The maximum number of days to search formaxEvents
- The maximum number of events to retrieveMessagingConnectorException
- if failed to get events from serverprotected int internalGetEventsCount(UserIdentity userIdentity, int maxDays) throws MessagingConnectorException
AbstractMessagingConnector
internalGetEventsCount
in class AbstractMessagingConnector
userIdentity
- The user identitymaxDays
- The maximum number of days to search forMessagingConnectorException
- 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