Example #1
0
 def testAdminAPIConnectivity(self):
     raise unittest.SkipTest('Test disabled')
     try:
         AdminClient.getInstance()
     except Exception, e:
         self.fail(
             msg="Could not create a Vidyo AdminClient instance. Exception: "
             + str(e))
Example #2
0
    def createRoom(cls, name, description, ownerName, extension, pin,
                   moderatorPin):
        """ Creates a SOAP room object
        """
        vidyoClient = AdminClient.getInstance()

        newRoom = vidyoClient.factory.create('Room')
        newRoom.name = name
        newRoom.RoomType = 'Public'
        newRoom.ownerName = ownerName
        newRoom.extension = extension
        newRoom.groupName = getVidyoOptionValue("indicoGroup")
        newRoom.description = description
        newRoom.RoomMode.isLocked = False
        if pin:
            newRoom.RoomMode.hasPIN = True
            newRoom.RoomMode.roomPIN = pin
        else:
            newRoom.RoomMode.hasPIN = False

        if moderatorPin:
            newRoom.RoomMode.hasModeratorPIN = True
            newRoom.RoomMode.moderatorPIN = moderatorPin
        else:
            newRoom.RoomMode.hasModeratorPIN = False

        return newRoom
Example #3
0
    def createRoom(cls, name, description, ownerName, extension, pin, moderatorPin):
        """ Creates a SOAP room object
        """
        vidyoClient = AdminClient.getInstance()

        newRoom = vidyoClient.factory.create('Room')
        newRoom.name = name
        newRoom.RoomType = 'Public'
        newRoom.ownerName = ownerName
        newRoom.extension = extension
        newRoom.groupName = getVidyoOptionValue("indicoGroup")
        newRoom.description = description
        newRoom.RoomMode.isLocked = False
        if pin:
            newRoom.RoomMode.hasPIN = True
            newRoom.RoomMode.roomPIN = pin
        else:
            newRoom.RoomMode.hasPIN = False

        if moderatorPin:
            newRoom.RoomMode.hasModeratorPIN = True
            newRoom.RoomMode.moderatorPIN = moderatorPin
        else:
            newRoom.RoomMode.hasModeratorPIN = False

        return newRoom
Example #4
0
File: api.py Project: bubbas/indico
    def getRooms(cls, searchFilter, confId, bookingId):
        #WARNING: until bug is corrected, name description and groupName in returned rooms are wrong

        #Logger.get('Vidyo').info("""Evt:%s, booking:%s, opening connection to Vidyo Admin API""" % (confId, bookingId))
        try:
            vidyoClient = AdminClient.getInstance()
        except Exception, e:
            raise VidyoConnectionException(e)
Example #5
0
    def createFilter(cls, apiType, query):
        if apiType == 'admin':
            vidyoClient = AdminClient.getInstance()
        else:
            vidyoClient = UserClient.getInstance()

        newFilter = vidyoClient.factory.create('Filter')
        newFilter.query = query
        newFilter.dir = 'DESC'

        return newFilter
Example #6
0
    def createFilter(cls, apiType, query):
        if apiType == 'admin':
            vidyoClient = AdminClient.getInstance()
        else:
            vidyoClient = UserClient.getInstance()

        newFilter = vidyoClient.factory.create('Filter')
        newFilter.query = query
        newFilter.dir = 'DESC'

        return newFilter
Example #7
0
 def getVidyoClient(cls):
     return AdminClient.getInstance()
Example #8
0
 def testAdminAPIConnectivity(self):
     raise nose.SkipTest
     try:
         AdminClient.getInstance()
     except Exception, e:
         self.fail(msg = "Could not create a Vidyo AdminClient instance. Exception: " + str(e))
Example #9
0
 def _api_operation(cls, service, *params, **kwargs):
     try:
         vidyoClient = AdminClient.getInstance()
     except Exception, e:
         raise VidyoConnectionException(e)
Example #10
0
 def _api_operation(cls, service, *params, **kwargs):
     try:
         vidyoClient = AdminClient.getInstance()
     except Exception, e:
         raise VidyoConnectionException(e)
Example #11
0
File: api.py Project: bubbas/indico
 def updateRoom(cls, roomId, updatedRoom, confId, bookingId):
     #Logger.get('Vidyo').info("""Evt:%s, booking:%s, opening connection to Vidyo Admin API""" % (confId, bookingId))
     try:
         vidyoClient = AdminClient.getInstance()
     except Exception, e:
         raise VidyoConnectionException(e)
Example #12
0
File: api.py Project: bubbas/indico
 def connectRoom(cls, roomId, confId, bookingId, legacyMember):
     try:
         vidyoClient = AdminClient.getInstance()
     except Exception, e:
         raise VidyoConnectionException(e)