Пример #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))
Пример #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
Пример #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
Пример #4
0
    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)
Пример #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
Пример #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
Пример #7
0
 def getVidyoClient(cls):
     return AdminClient.getInstance()
Пример #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))
Пример #9
0
 def _api_operation(cls, service, *params, **kwargs):
     try:
         vidyoClient = AdminClient.getInstance()
     except Exception, e:
         raise VidyoConnectionException(e)
Пример #10
0
 def _api_operation(cls, service, *params, **kwargs):
     try:
         vidyoClient = AdminClient.getInstance()
     except Exception, e:
         raise VidyoConnectionException(e)
Пример #11
0
 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)
Пример #12
0
 def connectRoom(cls, roomId, confId, bookingId, legacyMember):
     try:
         vidyoClient = AdminClient.getInstance()
     except Exception, e:
         raise VidyoConnectionException(e)