include/externalAPI/LotusLive/ExtAPILotusLive.php

Show: inherited
Table of Contents

\ExtAPILotusLive

Package:

External API based on OAuth

Parent(s)
\WebDocument < \ExternalAPIBase < \ExternalAPIPlugin

Constants

Constant  APP_STRING_ERROR_PREFIX = 'ERR_EXTERNAL_API_'

Properties

Propertyprotected  $_appStringErrorPrefix= 'self::APP_STRING_ERROR_PREFIX'
Default valueself::APP_STRING_ERROR_PREFIXDetails
Type
n/a
Inherited_from
\ExternalAPIBase::$$_appStringErrorPrefix  
Inherited_from
\OAuthPluginBase::$$_appStringErrorPrefix  
Propertypublic  $account_name= ''
Details
Type
n/a
Inherited_from
\ExternalAPIBase::$$account_name  
Inherited_from
\OAuthPluginBase::$$account_name  
Propertypublic  $account_password= ''
Details
Type
n/a
Inherited_from
\ExternalAPIBase::$$account_password  
Inherited_from
\OAuthPluginBase::$$account_password  
Propertyprotected\EAPM  $authData= ''
inherited

Authorization data

Inherited from: \ExternalAPIBase::$$authData\OAuthPluginBase::$$authData
Details
Type
\EAPM
Inherited_from
\ExternalAPIBase::$$authData  
Inherited_from
\OAuthPluginBase::$$authData  
Propertypublic  $authMethod= ''oauth''
Default value'oauth'Details
Type
n/a
Propertypublic  $canInvite= 'false'
Default valuefalseDetails
Type
n/a
Propertypublic  $connector= '"ext_eapm_lotuslive"'
Default value"ext_eapm_lotuslive"Details
Type
n/a
Propertyprotected  $dateFormat= ''m/d/Y H:i:s''
Default value'm/d/Y H:i:s'Details
Type
n/a
Propertypublic  $docSearch= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $hostURL= ''
Details
Type
n/a
Propertyprotected  $llMimeWhitelist= 'array( 'application/msword', 'application/pdf', 'application/postscript', 'application/vnd.ms-excel', 'application/vnd.ms-powerpoint', 'application/vnd.oasis.opendocument.formula', 'application/vnd.oasis.opendocument.graphics', 'application/vnd.oasis.opendocument.presentation', 'application/vnd.oasis.opendocument.presentation-template', 'application/vnd.oasis.opendocument.spreadsheet', 'application/vnd.oasis.opendocument.spreadsheet-template', 'application/vnd.oasis.opendocument.text', 'application/vnd.oasis.opendocument.text-master', 'application/vnd.oasis.opendocument.text-template', 'application/vnd.oasis.opendocument.text-web', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.ms-word.document.macroEnabled.12', 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', 'application/vnd.ms-word.template.macroEnabled.12', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/vnd.ms-excel.sheet.macroEnabled.12', 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', 'application/vnd.ms-excel.template.macroEnabled.12', 'application/vnd.ms-excel.sheet.binary.macroEnabled.12', 'application/vnd.ms-excel.addin.macroEnabled.12', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/vnd.ms-powerpoint.presentation.macroEnabled.12', 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12', 'application/vnd.openxmlformats-officedocument.presentationml.template', 'application/vnd.ms-powerpoint.template.macroEnabled.12', 'application/vnd.ms-powerpoint.addin.macroEnabled.12', 'application/vnd.openxmlformats-officedocument.presentationml.slide', 'application/vnd.ms-powerpoint.slide.macroEnabled.12', 'application/vnd.ms-officetheme', 'application/onenote', )'
static
Default valuearray( 'application/msword', 'application/pdf', 'application/postscript', 'application/vnd.ms-excel', 'application/vnd.ms-powerpoint', 'application/vnd.oasis.opendocument.formula', 'application/vnd.oasis.opendocument.graphics', 'application/vnd.oasis.opendocument.presentation', 'application/vnd.oasis.opendocument.presentation-template', 'application/vnd.oasis.opendocument.spreadsheet', 'application/vnd.oasis.opendocument.spreadsheet-template', 'application/vnd.oasis.opendocument.text', 'application/vnd.oasis.opendocument.text-master', 'application/vnd.oasis.opendocument.text-template', 'application/vnd.oasis.opendocument.text-web', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.ms-word.document.macroEnabled.12', 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', 'application/vnd.ms-word.template.macroEnabled.12', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/vnd.ms-excel.sheet.macroEnabled.12', 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', 'application/vnd.ms-excel.template.macroEnabled.12', 'application/vnd.ms-excel.sheet.binary.macroEnabled.12', 'application/vnd.ms-excel.addin.macroEnabled.12', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/vnd.ms-powerpoint.presentation.macroEnabled.12', 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12', 'application/vnd.openxmlformats-officedocument.presentationml.template', 'application/vnd.ms-powerpoint.template.macroEnabled.12', 'application/vnd.ms-powerpoint.addin.macroEnabled.12', 'application/vnd.openxmlformats-officedocument.presentationml.slide', 'application/vnd.ms-powerpoint.slide.macroEnabled.12', 'application/vnd.ms-officetheme', 'application/onenote', )Details
Type
n/a
Propertypublic  $needsUrl= 'false'
Default valuefalseDetails
Type
n/a
Propertyprotected  $oauthAccess= ''/manage/oauth/getAccessToken''
Default value'/manage/oauth/getAccessToken'Details
Type
n/a
Propertyprotected  $oauthAuth= ''/manage/oauth/authorizeToken''
Default value'/manage/oauth/authorizeToken'Details
Type
n/a
Propertyprotected  $oauthParams= 'array( 'signatureMethod' => 'PLAINTEXT', )'
Default valuearray( 'signatureMethod' => 'PLAINTEXT', )Details
Type
n/a
Propertyprotected  $oauthReq= '"/manage/oauth/getRequestToken"'
Default value"/manage/oauth/getRequestToken"Details
Type
n/a
Propertyprotected  $oauth_keys_initialized= 'false'
Default valuefalseDetails
Type
n/a
Inherited_from
\OAuthPluginBase::$$oauth_keys_initialized  
Propertypublic  $requireAuth= 'true'
Default valuetrueDetails
Type
n/a
Inherited_from
\ExternalAPIBase::$$requireAuth  
Inherited_from
\OAuthPluginBase::$$requireAuth  
Propertypublic  $restrictUploadsByExtension= 'false'
Default valuefalseDetails
Type
n/a
Propertypublic  $sendsInvites= 'false'
Default valuefalseDetails
Type
n/a
Propertypublic  $supportMeetingPassword= 'false'
Default valuefalseDetails
Type
n/a
Propertypublic  $supportedModules= 'array('Meetings','Notes', 'Documents')'
Default valuearray('Meetings','Notes', 'Documents')Details
Type
n/a
Propertyprotected  $url= ''https://apps.lotuslive.com/''
Default value'https://apps.lotuslive.com/'Details
Type
n/a
Propertypublic  $useAuth= 'true'
Default valuetrueDetails
Type
n/a
Inherited_from
\ExternalAPIBase::$$useAuth  
Inherited_from
\OAuthPluginBase::$$useAuth  

Methods

methodpublic__construct( ) : void

methodpubliccheckLogin( \EAPM $eapmBean = null ) : void

Check login

Parameters
Name Type Description
$eapmBean \EAPM
methodprotectedcheckOauthLogin( ) : void
inherited

Inherited from: \OAuthPluginBase::checkOauthLogin()
methodpublicdeleteDoc(  $document ) : void

Parameters
Name Type Description
$document
methodpublicdownloadDoc(  $documentId,  $documentFormat ) : void

Parameters
Name Type Description
$documentId
$documentFormat
methodpubliceditMeeting(  $bean ) : void

Edit an existing Lotus meeting

Parameters
Name Type Description
$bean
methodprotectedformatCallbackURL( \$callback_url $callback_url ) : String

This function takes a callback_url and checks the $_REQUEST variable to see if additional parameters should be appended to the callback_url value. The $_REQUEST variables that are being checked deal with handling the behavior of closing/hiding windows/tabs that are displayed when prompting for OAUTH validation

Parameters
Name Type Description
$callback_url \$callback_url

String value of callback URL

Returns
Type Description
String value of URL with applicable formatting
methodprotectedgetClient( ) : \Zend_Http_Client

Get HTTP client for communication with Lotus

Creates and setup the http client object, including authorization data if needed

Returns
Type Description
\Zend_Http_Client
methodpublicgetConnector( ) : \source | null
inherited

Get connector for this API

Inherited from: \ExternalAPIBase::getConnector()\OAuthPluginBase::getConnector()
Returns
Type Description
\source | null
methodpublicgetConnectorParam( string $name ) : mixed
inherited

Get parameter from source

Inherited from: \ExternalAPIBase::getConnectorParam()\OAuthPluginBase::getConnectorParam()
Parameters
Name Type Description
$name string
Returns
Type Description
mixed
methodprotectedgetErrorStringFromCode( \$error $error = '' ) : String

getErrorStringFromCode

This method overrides the getErrorStringFromCode method from the ExternalAPIBase class and provides for custom error messages specific to the Lotus Live web service.

Parameters
Name Type Description
$error \$error

Mixed variable of the error message, number or object returned from Lotus Live web service

Returns
Type Description
String Translated string label for the error message
methodpublicgetMeetingDetails( string $bean ) : void

Get detailed information about the meeting with key $meeting.

Parameters
Name Type Description
$bean string

meeting- The Lotus meeting key. return: The XML response from the Lotus server.

methodpublicgetOauth( ) : \SugarOauth
inherited

Get OAuth client

Inherited from: \OAuthPluginBase::getOauth()
Returns
Type Description
\SugarOauth
methodpublicgetOauthAccessURL( ) : void
inherited

Inherited from: \OAuthPluginBase::getOauthAccessURL()
methodpublicgetOauthAuthURL( ) : void
inherited

Inherited from: \OAuthPluginBase::getOauthAuthURL()
methodpublicgetOauthParams( ) : void
inherited

Inherited from: \OAuthPluginBase::getOauthParams()
methodpublicgetOauthRequestURL( ) : void
inherited

Inherited from: \OAuthPluginBase::getOauthRequestURL()
methodprotectedgetValue(  $value ) : void
Parameters
Name Type Description
$value
methodprotectedgetVersion( ) : void

Check the API version

methodpublicinviteAttendee(  $bean, array $attendee,  $sendInvites = false ) : void

NOT SUPPORTED BY LOTUS Invite $attendee to the meeting with key $session.

Parameters
Name Type Description
$bean
$attendee array
  • An array with entries for 'name' and 'email' return: boolean.
$sendInvites
methodpublicisMimeDetectionAvailable( ) : bool
inherited

Determine if mime detection extensions are available.

Inherited from: \ExternalAPIBase::isMimeDetectionAvailable()\OAuthPluginBase::isMimeDetectionAvailable()
Returns
Type Description
bool
methodpubliclistMyMeetings( ) : void

List all meetings created by this object's Lotus user.

methodpublicloadDocCache(  $forceReload = false ) : void

Parameters
Name Type Description
$forceReload
methodpublicloadEAPM( \EAPM $eapmBean ) : void

Load data from EAPM bean

Parameters
Name Type Description
$eapmBean \EAPM
methodpubliclogOff( ) : void
methodprotectedmakeRequest(  $urlReq, \unknown_type $method = 'GET', \unknown_type $json = true ) : void

Make request to a service

Parameters
Name Type Description
$urlReq
$method \unknown_type
$json \unknown_type
methodpublicoauthLogin( ) : void
inherited

Inherited from: \OAuthPluginBase::oauthLogin()
methodprotectedpostData(  $url,  $postfields,  $headers ) : void
Parameters
Name Type Description
$url
$postfields
$headers
methodpublicquickCheckLogin( ) : void

methodpublicscheduleMeeting(  $bean ) : void

Create a new Lotus meeting.

Parameters
Name Type Description
$bean
methodpublicsearchDoc(  $keywords,  $flushDocCache = false ) : void

Parameters
Name Type Description
$keywords
$flushDocCache
methodpublicsetupOauthKeys( ) : void
inherited

Setup oauth parameters from connector

Inherited from: \OAuthPluginBase::setupOauthKeys()
methodpublicshareDoc(  $documentId,  $emails ) : void

Parameters
Name Type Description
$documentId
$emails
methodpublicsupports(  $method = '' ) : void
inherited

Does API support this method?

Inherited from: \ExternalAPIBase::supports()\OAuthPluginBase::supports()
Parameters
Name Type Description
$method
Details
See
\ExternalAPIPlugin::supports()  
methodpublicuninviteAttendee(  $bean, array $attendeeID ) : void

NOT SUPPORTED BY LOTUS Uninvite the attendee with ID $attendeeID from the meeting.

Note: attendee ID is returned as part of the response to inviteAtendee(). The attendee ID refers to a specific person and a specific meeting.

Parameters
Name Type Description
$bean
$attendeeID array
  • Lotus attendee ID. return: boolean.
methodpublicunscheduleMeeting(  $bean ) : void

Delete an existing Lotus meeting.

Parameters
Name Type Description
$bean
methodpublicuploadDoc(  $bean,  $fileToUpload,  $docName,  $mimeType ) : void

Parameters
Name Type Description
$bean
$fileToUpload
$docName
$mimeType
Documentation was generated by DocBlox 0.18.1.