Esempio n. 1
0
    def encodeInternal(self, value, instance):

        from netbluemind.scheduledjob.api.JobDomainStatus import JobDomainStatus
        from netbluemind.scheduledjob.api.JobDomainStatus import __JobDomainStatusSerDer__
        domainStatusValue = value.domainStatus
        instance["domainStatus"] = serder.ListSerDer(
            __JobDomainStatusSerDer__()).encode(domainStatusValue)
        from netbluemind.scheduledjob.api.JobPlanification import JobPlanification
        from netbluemind.scheduledjob.api.JobPlanification import __JobPlanificationSerDer__
        domainPlanificationValue = value.domainPlanification
        instance["domainPlanification"] = serder.ListSerDer(
            __JobPlanificationSerDer__()).encode(domainPlanificationValue)
        idValue = value.id
        instance["id"] = serder.STRING.encode(idValue)
        descriptionValue = value.description
        instance["description"] = serder.STRING.encode(descriptionValue)
        from netbluemind.scheduledjob.api.JobKind import JobKind
        from netbluemind.scheduledjob.api.JobKind import __JobKindSerDer__
        kindValue = value.kind
        instance["kind"] = __JobKindSerDer__().encode(kindValue)
        sendReportValue = value.sendReport
        instance["sendReport"] = serder.BOOLEAN.encode(sendReportValue)
        recipientsValue = value.recipients
        instance["recipients"] = serder.STRING.encode(recipientsValue)
        return instance
Esempio n. 2
0
    def multipleGet(self, arg0):
        postUri = "/_mget"
        __data__ = None
        __data__ = serder.ListSerDer(serder.STRING).encode(arg0)

        queryParams = {}

        response = requests.post(self.base + postUri,
                                 params=queryParams,
                                 verify=False,
                                 headers={
                                     'X-BM-ApiKey':
                                     self.apiKey,
                                     'Accept':
                                     'application/json',
                                     'X-BM-ClientVersion':
                                     IMailboxFolderHierarchy_VERSION
                                 },
                                 data=json.dumps(__data__))
        from netbluemind.folder.api.Folder import Folder
        from netbluemind.folder.api.Folder import __FolderSerDer__
        from netbluemind.core.container.model.ItemValue import ItemValue
        from netbluemind.core.container.model.ItemValue import __ItemValueSerDer__
        return self.handleResult__(
            serder.ListSerDer(__ItemValueSerDer__(__FolderSerDer__())),
            response)
Esempio n. 3
0
    def encodeInternal(self, value, instance):

        generationIdValue = value.generationId
        instance["generationId"] = serder.INT.encode(generationIdValue)
        from netbluemind.domain.api.Domain import Domain
        from netbluemind.domain.api.Domain import __DomainSerDer__
        from netbluemind.core.container.model.ItemValue import ItemValue
        from netbluemind.core.container.model.ItemValue import __ItemValueSerDer__
        domainsValue = value.domains
        instance["domains"] = serder.ListSerDer(
            __ItemValueSerDer__(__DomainSerDer__())).encode(domainsValue)
        from netbluemind.server.api.Server import Server
        from netbluemind.server.api.Server import __ServerSerDer__
        from netbluemind.core.container.model.ItemValue import ItemValue
        from netbluemind.core.container.model.ItemValue import __ItemValueSerDer__
        serversValue = value.servers
        instance["servers"] = serder.ListSerDer(
            __ItemValueSerDer__(__ServerSerDer__())).encode(serversValue)
        from netbluemind.directory.api.DirEntry import DirEntry
        from netbluemind.directory.api.DirEntry import __DirEntrySerDer__
        from netbluemind.core.container.model.ItemValue import ItemValue
        from netbluemind.core.container.model.ItemValue import __ItemValueSerDer__
        entriesValue = value.entries
        instance["entries"] = serder.ListSerDer(
            __ItemValueSerDer__(__DirEntrySerDer__())).encode(entriesValue)
        from netbluemind.dataprotect.api.RestoreOperation import RestoreOperation
        from netbluemind.dataprotect.api.RestoreOperation import __RestoreOperationSerDer__
        capabilitiesValue = value.capabilities
        instance["capabilities"] = serder.ListSerDer(
            __RestoreOperationSerDer__()).encode(capabilitiesValue)
        return instance
Esempio n. 4
0
 def parseInternal(self, value, instance):
     generationIdValue = value['generationId']
     instance.generationId = serder.INT.parse(generationIdValue)
     from netbluemind.domain.api.Domain import Domain
     from netbluemind.domain.api.Domain import __DomainSerDer__
     from netbluemind.core.container.model.ItemValue import ItemValue
     from netbluemind.core.container.model.ItemValue import __ItemValueSerDer__
     domainsValue = value['domains']
     instance.domains = serder.ListSerDer(
         __ItemValueSerDer__(__DomainSerDer__())).parse(domainsValue)
     from netbluemind.server.api.Server import Server
     from netbluemind.server.api.Server import __ServerSerDer__
     from netbluemind.core.container.model.ItemValue import ItemValue
     from netbluemind.core.container.model.ItemValue import __ItemValueSerDer__
     serversValue = value['servers']
     instance.servers = serder.ListSerDer(
         __ItemValueSerDer__(__ServerSerDer__())).parse(serversValue)
     from netbluemind.directory.api.DirEntry import DirEntry
     from netbluemind.directory.api.DirEntry import __DirEntrySerDer__
     from netbluemind.core.container.model.ItemValue import ItemValue
     from netbluemind.core.container.model.ItemValue import __ItemValueSerDer__
     entriesValue = value['entries']
     instance.entries = serder.ListSerDer(
         __ItemValueSerDer__(__DirEntrySerDer__())).parse(entriesValue)
     from netbluemind.dataprotect.api.RestoreOperation import RestoreOperation
     from netbluemind.dataprotect.api.RestoreOperation import __RestoreOperationSerDer__
     capabilitiesValue = value['capabilities']
     instance.capabilities = serder.ListSerDer(
         __RestoreOperationSerDer__()).parse(capabilitiesValue)
     return instance
Esempio n. 5
0
 def parseInternal(self, value, instance):
     from netbluemind.core.api.date.BmDateTime import BmDateTime
     from netbluemind.core.api.date.BmDateTime import __BmDateTimeSerDer__
     dtstartValue = value['dtstart']
     instance.dtstart = __BmDateTimeSerDer__().parse(dtstartValue)
     summaryValue = value['summary']
     instance.summary = serder.STRING.parse(summaryValue)
     from netbluemind.icalendar.api.ICalendarElementClassification import ICalendarElementClassification
     from netbluemind.icalendar.api.ICalendarElementClassification import __ICalendarElementClassificationSerDer__
     classificationValue = value['classification']
     instance.classification = __ICalendarElementClassificationSerDer__(
     ).parse(classificationValue)
     locationValue = value['location']
     instance.location = serder.STRING.parse(locationValue)
     descriptionValue = value['description']
     instance.description = serder.STRING.parse(descriptionValue)
     priorityValue = value['priority']
     instance.priority = serder.INT.parse(priorityValue)
     from netbluemind.icalendar.api.ICalendarElementVAlarm import ICalendarElementVAlarm
     from netbluemind.icalendar.api.ICalendarElementVAlarm import __ICalendarElementVAlarmSerDer__
     alarmValue = value['alarm']
     instance.alarm = serder.ListSerDer(
         __ICalendarElementVAlarmSerDer__()).parse(alarmValue)
     from netbluemind.icalendar.api.ICalendarElementStatus import ICalendarElementStatus
     from netbluemind.icalendar.api.ICalendarElementStatus import __ICalendarElementStatusSerDer__
     statusValue = value['status']
     instance.status = __ICalendarElementStatusSerDer__().parse(statusValue)
     from netbluemind.icalendar.api.ICalendarElementAttendee import ICalendarElementAttendee
     from netbluemind.icalendar.api.ICalendarElementAttendee import __ICalendarElementAttendeeSerDer__
     attendeesValue = value['attendees']
     instance.attendees = serder.ListSerDer(
         __ICalendarElementAttendeeSerDer__()).parse(attendeesValue)
     from netbluemind.icalendar.api.ICalendarElementOrganizer import ICalendarElementOrganizer
     from netbluemind.icalendar.api.ICalendarElementOrganizer import __ICalendarElementOrganizerSerDer__
     organizerValue = value['organizer']
     instance.organizer = __ICalendarElementOrganizerSerDer__().parse(
         organizerValue)
     from netbluemind.tag.api.TagRef import TagRef
     from netbluemind.tag.api.TagRef import __TagRefSerDer__
     categoriesValue = value['categories']
     instance.categories = serder.ListSerDer(
         __TagRefSerDer__()).parse(categoriesValue)
     from netbluemind.core.api.date.BmDateTime import BmDateTime
     from netbluemind.core.api.date.BmDateTime import __BmDateTimeSerDer__
     exdateValue = value['exdate']
     instance.exdate = serder.SetSerDer(
         __BmDateTimeSerDer__()).parse(exdateValue)
     from netbluemind.core.api.date.BmDateTime import BmDateTime
     from netbluemind.core.api.date.BmDateTime import __BmDateTimeSerDer__
     rdateValue = value['rdate']
     instance.rdate = serder.SetSerDer(
         __BmDateTimeSerDer__()).parse(rdateValue)
     from netbluemind.icalendar.api.ICalendarElementRRule import ICalendarElementRRule
     from netbluemind.icalendar.api.ICalendarElementRRule import __ICalendarElementRRuleSerDer__
     rruleValue = value['rrule']
     instance.rrule = __ICalendarElementRRuleSerDer__().parse(rruleValue)
     urlValue = value['url']
     instance.url = serder.STRING.parse(urlValue)
     return instance
Esempio n. 6
0
	def getItems (self, uids ):
		postUri = "/_mget";
		__data__ = None
		__data__ = serder.ListSerDer(serder.STRING).encode(uids)

		queryParams = {   };

		response = requests.post( self.base + postUri, params = queryParams, verify=False, headers = {'X-BM-ApiKey' : self.apiKey, 'Accept' : 'application/json', 'X-BM-ClientVersion' : IContainerManagement_VERSION}, data = json.dumps(__data__));
		from netbluemind.core.container.model.ItemDescriptor import ItemDescriptor
		from netbluemind.core.container.model.ItemDescriptor import __ItemDescriptorSerDer__
		return self.handleResult__(serder.ListSerDer(__ItemDescriptorSerDer__()), response)
Esempio n. 7
0
	def multipleGet (self, uids ):
		postUri = "/_mget";
		__data__ = None
		__data__ = serder.ListSerDer(serder.STRING).encode(uids)

		queryParams = {   };

		response = requests.post( self.base + postUri, params = queryParams, verify=False, headers = {'X-BM-ApiKey' : self.apiKey, 'Accept' : 'application/json', 'X-BM-ClientVersion' : ITodoList_VERSION}, data = json.dumps(__data__));
		from netbluemind.todolist.api.VTodo import VTodo
		from netbluemind.todolist.api.VTodo import __VTodoSerDer__
		from netbluemind.core.container.model.ItemValue import ItemValue
		from netbluemind.core.container.model.ItemValue import __ItemValueSerDer__
		return self.handleResult__(serder.ListSerDer(__ItemValueSerDer__(__VTodoSerDer__())), response)
 def parseInternal(self, value, instance):
     createdValue = value['created']
     instance.created = serder.ListSerDer(
         self.paramSerDerT).parse(createdValue)
     updatedValue = value['updated']
     instance.updated = serder.ListSerDer(
         self.paramSerDerT).parse(updatedValue)
     deletedValue = value['deleted']
     instance.deleted = serder.ListSerDer(
         self.paramSerDerT).parse(deletedValue)
     versionValue = value['version']
     instance.version = serder.LONG.parse(versionValue)
     return instance
Esempio n. 9
0
	def parseInternal(self, value, instance):
		from netbluemind.calendar.api.CalendarViewChangesItemAdd import CalendarViewChangesItemAdd
		from netbluemind.calendar.api.CalendarViewChangesItemAdd import __CalendarViewChangesItemAddSerDer__
		addValue = value['add']
		instance.add = serder.ListSerDer(__CalendarViewChangesItemAddSerDer__()).parse(addValue)
		from netbluemind.calendar.api.CalendarViewChangesItemModify import CalendarViewChangesItemModify
		from netbluemind.calendar.api.CalendarViewChangesItemModify import __CalendarViewChangesItemModifySerDer__
		modifyValue = value['modify']
		instance.modify = serder.ListSerDer(__CalendarViewChangesItemModifySerDer__()).parse(modifyValue)
		from netbluemind.calendar.api.CalendarViewChangesItemDelete import CalendarViewChangesItemDelete
		from netbluemind.calendar.api.CalendarViewChangesItemDelete import __CalendarViewChangesItemDeleteSerDer__
		deleteValue = value['delete']
		instance.delete = serder.ListSerDer(__CalendarViewChangesItemDeleteSerDer__()).parse(deleteValue)
		return instance
Esempio n. 10
0
    def encodeInternal(self, value, instance):

        createdValue = value.created
        instance["created"] = serder.ListSerDer(
            self.paramSerDerT).encode(createdValue)
        updatedValue = value.updated
        instance["updated"] = serder.ListSerDer(
            self.paramSerDerT).encode(updatedValue)
        deletedValue = value.deleted
        instance["deleted"] = serder.ListSerDer(
            self.paramSerDerT).encode(deletedValue)
        versionValue = value.version
        instance["version"] = serder.LONG.encode(versionValue)
        return instance
	def parseInternal(self, value, instance):
		addedValue = value['added']
		instance.added = serder.ListSerDer(serder.STRING).parse(addedValue)
		updatedValue = value['updated']
		instance.updated = serder.ListSerDer(serder.STRING).parse(updatedValue)
		removedValue = value['removed']
		instance.removed = serder.ListSerDer(serder.STRING).parse(removedValue)
		from netbluemind.core.container.model.ContainerUpdatesResultInError import ContainerUpdatesResultInError
		from netbluemind.core.container.model.ContainerUpdatesResultInError import __ContainerUpdatesResultInErrorSerDer__
		errorsValue = value['errors']
		instance.errors = serder.ListSerDer(__ContainerUpdatesResultInErrorSerDer__()).parse(errorsValue)
		versionValue = value['version']
		instance.version = serder.LONG.parse(versionValue)
		return instance
Esempio n. 12
0
 def parseInternal(self, value, instance):
     from netbluemind.addressbook.api.VCardExplanatoryUrl import VCardExplanatoryUrl
     from netbluemind.addressbook.api.VCardExplanatoryUrl import __VCardExplanatoryUrlSerDer__
     urlsValue = value['urls']
     instance.urls = serder.ListSerDer(
         __VCardExplanatoryUrlSerDer__()).parse(urlsValue)
     from netbluemind.tag.api.TagRef import TagRef
     from netbluemind.tag.api.TagRef import __TagRefSerDer__
     categoriesValue = value['categories']
     instance.categories = serder.ListSerDer(
         __TagRefSerDer__()).parse(categoriesValue)
     noteValue = value['note']
     instance.note = serder.STRING.parse(noteValue)
     return instance
Esempio n. 13
0
	def encodeInternal(self, value, instance):

		from netbluemind.calendar.api.CalendarViewChangesItemAdd import CalendarViewChangesItemAdd
		from netbluemind.calendar.api.CalendarViewChangesItemAdd import __CalendarViewChangesItemAddSerDer__
		addValue = value.add
		instance["add"] = serder.ListSerDer(__CalendarViewChangesItemAddSerDer__()).encode(addValue)
		from netbluemind.calendar.api.CalendarViewChangesItemModify import CalendarViewChangesItemModify
		from netbluemind.calendar.api.CalendarViewChangesItemModify import __CalendarViewChangesItemModifySerDer__
		modifyValue = value.modify
		instance["modify"] = serder.ListSerDer(__CalendarViewChangesItemModifySerDer__()).encode(modifyValue)
		from netbluemind.calendar.api.CalendarViewChangesItemDelete import CalendarViewChangesItemDelete
		from netbluemind.calendar.api.CalendarViewChangesItemDelete import __CalendarViewChangesItemDeleteSerDer__
		deleteValue = value.delete
		instance["delete"] = serder.ListSerDer(__CalendarViewChangesItemDeleteSerDer__()).encode(deleteValue)
		return instance
Esempio n. 14
0
    def encodeInternal(self, value, instance):

        from netbluemind.addressbook.api.VCardExplanatoryUrl import VCardExplanatoryUrl
        from netbluemind.addressbook.api.VCardExplanatoryUrl import __VCardExplanatoryUrlSerDer__
        urlsValue = value.urls
        instance["urls"] = serder.ListSerDer(
            __VCardExplanatoryUrlSerDer__()).encode(urlsValue)
        from netbluemind.tag.api.TagRef import TagRef
        from netbluemind.tag.api.TagRef import __TagRefSerDer__
        categoriesValue = value.categories
        instance["categories"] = serder.ListSerDer(
            __TagRefSerDer__()).encode(categoriesValue)
        noteValue = value.note
        instance["note"] = serder.STRING.encode(noteValue)
        return instance
	def encodeInternal(self, value, instance):

		addedValue = value.added
		instance["added"] = serder.ListSerDer(serder.STRING).encode(addedValue)
		updatedValue = value.updated
		instance["updated"] = serder.ListSerDer(serder.STRING).encode(updatedValue)
		removedValue = value.removed
		instance["removed"] = serder.ListSerDer(serder.STRING).encode(removedValue)
		from netbluemind.core.container.model.ContainerUpdatesResultInError import ContainerUpdatesResultInError
		from netbluemind.core.container.model.ContainerUpdatesResultInError import __ContainerUpdatesResultInErrorSerDer__
		errorsValue = value.errors
		instance["errors"] = serder.ListSerDer(__ContainerUpdatesResultInErrorSerDer__()).encode(errorsValue)
		versionValue = value.version
		instance["version"] = serder.LONG.encode(versionValue)
		return instance
    def encodeInternal(self, value, instance):

        versionValue = value.version
        instance["version"] = serder.STRING.encode(versionValue)
        installationVersionValue = value.installationVersion
        instance["installationVersion"] = serder.STRING.encode(
            installationVersionValue)
        customerValue = value.customer
        instance["customer"] = serder.STRING.encode(customerValue)
        customerCodeValue = value.customerCode
        instance["customerCode"] = serder.STRING.encode(customerCodeValue)
        dealerValue = value.dealer
        instance["dealer"] = serder.STRING.encode(dealerValue)
        distributorValue = value.distributor
        instance["distributor"] = serder.STRING.encode(distributorValue)
        serverOsValue = value.serverOs
        instance["serverOs"] = serder.STRING.encode(serverOsValue)
        from netbluemind.system.api.SubscriptionInformationsKind import SubscriptionInformationsKind
        from netbluemind.system.api.SubscriptionInformationsKind import __SubscriptionInformationsKindSerDer__
        kindValue = value.kind
        instance["kind"] = __SubscriptionInformationsKindSerDer__().encode(
            kindValue)
        startsValue = value.starts
        instance["starts"] = serder.DATE.encode(startsValue)
        endsValue = value.ends
        instance["ends"] = serder.DATE.encode(endsValue)
        validValue = value.valid
        instance["valid"] = serder.BOOLEAN.encode(validValue)
        pubKeyFingerprintValue = value.pubKeyFingerprint
        instance["pubKeyFingerprint"] = serder.STRING.encode(
            pubKeyFingerprintValue)
        validProviderValue = value.validProvider
        instance["validProvider"] = serder.BOOLEAN.encode(validProviderValue)
        from netbluemind.system.api.SubscriptionInformationsInstallationIndicator import SubscriptionInformationsInstallationIndicator
        from netbluemind.system.api.SubscriptionInformationsInstallationIndicator import __SubscriptionInformationsInstallationIndicatorSerDer__
        indicatorValue = value.indicator
        instance["indicator"] = serder.ListSerDer(
            __SubscriptionInformationsInstallationIndicatorSerDer__()).encode(
                indicatorValue)
        contactsValue = value.contacts
        instance["contacts"] = serder.ListSerDer(
            serder.STRING).encode(contactsValue)
        from netbluemind.system.api.SubscriptionInformationsMessage import SubscriptionInformationsMessage
        from netbluemind.system.api.SubscriptionInformationsMessage import __SubscriptionInformationsMessageSerDer__
        messagesValue = value.messages
        instance["messages"] = serder.ListSerDer(
            __SubscriptionInformationsMessageSerDer__()).encode(messagesValue)
        return instance
Esempio n. 17
0
    def encodeInternal(self, value, instance):

        uidsValue = value.uids
        instance["uids"] = serder.ListSerDer(serder.STRING).encode(uidsValue)
        totalValue = value.total
        instance["total"] = serder.INT.encode(totalValue)
        return instance
Esempio n. 18
0
 def parseInternal(self, value, instance):
     from netbluemind.core.container.model.ItemChangeLogEntry import ItemChangeLogEntry
     from netbluemind.core.container.model.ItemChangeLogEntry import __ItemChangeLogEntrySerDer__
     entriesValue = value['entries']
     instance.entries = serder.ListSerDer(
         __ItemChangeLogEntrySerDer__()).parse(entriesValue)
     return instance
Esempio n. 19
0
	def encodeInternal(self, value, instance):

		from netbluemind.system.api.DomainTemplateDescriptionI18NDescription import DomainTemplateDescriptionI18NDescription
		from netbluemind.system.api.DomainTemplateDescriptionI18NDescription import __DomainTemplateDescriptionI18NDescriptionSerDer__
		i18nValue = value.i18n
		instance["i18n"] = serder.ListSerDer(__DomainTemplateDescriptionI18NDescriptionSerDer__()).encode(i18nValue)
		return instance
Esempio n. 20
0
	def subscribers (self):
		postUri = "/_subscription";
		__data__ = None
		queryParams = {  };

		response = requests.get( self.base + postUri, params = queryParams, verify=False, headers = {'X-BM-ApiKey' : self.apiKey, 'Accept' : 'application/json', 'X-BM-ClientVersion' : IContainerManagement_VERSION}, data = json.dumps(__data__));
		return self.handleResult__(serder.ListSerDer(serder.STRING), response)
    def byParentId(self, parent):
        postUri = "/by_parent_id"
        __data__ = None
        queryParams = {
            'parent': parent
        }

        response = requests.get(self.base + postUri,
                                params=queryParams,
                                verify=False,
                                headers={
                                    'X-BM-ApiKey':
                                    self.apiKey,
                                    'Accept':
                                    'application/json',
                                    'X-BM-ClientVersion':
                                    IUserFolderHierarchy_VERSION
                                },
                                data=json.dumps(__data__))
        from netbluemind.folder.api.Folder import Folder
        from netbluemind.folder.api.Folder import __FolderSerDer__
        from netbluemind.core.container.model.ItemValue import ItemValue
        from netbluemind.core.container.model.ItemValue import __ItemValueSerDer__
        return self.handleResult__(
            serder.ListSerDer(__ItemValueSerDer__(__FolderSerDer__())),
            response)
Esempio n. 22
0
	def parseInternal(self, value, instance):
		from netbluemind.calendar.api.PrintOptionsPrintView import PrintOptionsPrintView
		from netbluemind.calendar.api.PrintOptionsPrintView import __PrintOptionsPrintViewSerDer__
		viewValue = value['view']
		instance.view = __PrintOptionsPrintViewSerDer__().parse(viewValue)
		from netbluemind.calendar.api.PrintOptionsPrintFormat import PrintOptionsPrintFormat
		from netbluemind.calendar.api.PrintOptionsPrintFormat import __PrintOptionsPrintFormatSerDer__
		formatValue = value['format']
		instance.format = __PrintOptionsPrintFormatSerDer__().parse(formatValue)
		from netbluemind.core.api.date.BmDateTime import BmDateTime
		from netbluemind.core.api.date.BmDateTime import __BmDateTimeSerDer__
		dateBeginValue = value['dateBegin']
		instance.dateBegin = __BmDateTimeSerDer__().parse(dateBeginValue)
		from netbluemind.core.api.date.BmDateTime import BmDateTime
		from netbluemind.core.api.date.BmDateTime import __BmDateTimeSerDer__
		dateEndValue = value['dateEnd']
		instance.dateEnd = __BmDateTimeSerDer__().parse(dateEndValue)
		colorValue = value['color']
		instance.color = serder.BOOLEAN.parse(colorValue)
		showDetailValue = value['showDetail']
		instance.showDetail = serder.BOOLEAN.parse(showDetailValue)
		from netbluemind.calendar.api.PrintOptionsPrintLayout import PrintOptionsPrintLayout
		from netbluemind.calendar.api.PrintOptionsPrintLayout import __PrintOptionsPrintLayoutSerDer__
		layoutValue = value['layout']
		instance.layout = __PrintOptionsPrintLayoutSerDer__().parse(layoutValue)
		from netbluemind.calendar.api.PrintOptionsCalendarMetadata import PrintOptionsCalendarMetadata
		from netbluemind.calendar.api.PrintOptionsCalendarMetadata import __PrintOptionsCalendarMetadataSerDer__
		calendarsValue = value['calendars']
		instance.calendars = serder.ListSerDer(__PrintOptionsCalendarMetadataSerDer__()).parse(calendarsValue)
		tagsFilterValue = value['tagsFilter']
		instance.tagsFilter = serder.SetSerDer(serder.STRING).parse(tagsFilterValue)
		return instance
Esempio n. 23
0
	def encodeInternal(self, value, instance):

		from netbluemind.calendar.api.PrintOptionsPrintView import PrintOptionsPrintView
		from netbluemind.calendar.api.PrintOptionsPrintView import __PrintOptionsPrintViewSerDer__
		viewValue = value.view
		instance["view"] = __PrintOptionsPrintViewSerDer__().encode(viewValue)
		from netbluemind.calendar.api.PrintOptionsPrintFormat import PrintOptionsPrintFormat
		from netbluemind.calendar.api.PrintOptionsPrintFormat import __PrintOptionsPrintFormatSerDer__
		formatValue = value.format
		instance["format"] = __PrintOptionsPrintFormatSerDer__().encode(formatValue)
		from netbluemind.core.api.date.BmDateTime import BmDateTime
		from netbluemind.core.api.date.BmDateTime import __BmDateTimeSerDer__
		dateBeginValue = value.dateBegin
		instance["dateBegin"] = __BmDateTimeSerDer__().encode(dateBeginValue)
		from netbluemind.core.api.date.BmDateTime import BmDateTime
		from netbluemind.core.api.date.BmDateTime import __BmDateTimeSerDer__
		dateEndValue = value.dateEnd
		instance["dateEnd"] = __BmDateTimeSerDer__().encode(dateEndValue)
		colorValue = value.color
		instance["color"] = serder.BOOLEAN.encode(colorValue)
		showDetailValue = value.showDetail
		instance["showDetail"] = serder.BOOLEAN.encode(showDetailValue)
		from netbluemind.calendar.api.PrintOptionsPrintLayout import PrintOptionsPrintLayout
		from netbluemind.calendar.api.PrintOptionsPrintLayout import __PrintOptionsPrintLayoutSerDer__
		layoutValue = value.layout
		instance["layout"] = __PrintOptionsPrintLayoutSerDer__().encode(layoutValue)
		from netbluemind.calendar.api.PrintOptionsCalendarMetadata import PrintOptionsCalendarMetadata
		from netbluemind.calendar.api.PrintOptionsCalendarMetadata import __PrintOptionsCalendarMetadataSerDer__
		calendarsValue = value.calendars
		instance["calendars"] = serder.ListSerDer(__PrintOptionsCalendarMetadataSerDer__()).encode(calendarsValue)
		tagsFilterValue = value.tagsFilter
		instance["tagsFilter"] = serder.SetSerDer(serder.STRING).encode(tagsFilterValue)
		return instance
Esempio n. 24
0
 def parseInternal(self, value, instance):
     from netbluemind.directory.api.DirEntryKind import DirEntryKind
     from netbluemind.directory.api.DirEntryKind import __DirEntryKindSerDer__
     kindValue = value['kind']
     instance.kind = __DirEntryKindSerDer__().parse(kindValue)
     pathValue = value['path']
     instance.path = serder.STRING.parse(pathValue)
     displayNameValue = value['displayName']
     instance.displayName = serder.STRING.parse(displayNameValue)
     entryUidValue = value['entryUid']
     instance.entryUid = serder.STRING.parse(entryUidValue)
     emailValue = value['email']
     instance.email = serder.STRING.parse(emailValue)
     hiddenValue = value['hidden']
     instance.hidden = serder.BOOLEAN.parse(hiddenValue)
     systemValue = value['system']
     instance.system = serder.BOOLEAN.parse(systemValue)
     archivedValue = value['archived']
     instance.archived = serder.BOOLEAN.parse(archivedValue)
     from netbluemind.core.api.Email import Email
     from netbluemind.core.api.Email import __EmailSerDer__
     emailsValue = value['emails']
     instance.emails = serder.ListSerDer(
         __EmailSerDer__()).parse(emailsValue)
     orgUnitUidValue = value['orgUnitUid']
     instance.orgUnitUid = serder.STRING.parse(orgUnitUidValue)
     from netbluemind.directory.api.OrgUnitPath import OrgUnitPath
     from netbluemind.directory.api.OrgUnitPath import __OrgUnitPathSerDer__
     orgUnitPathValue = value['orgUnitPath']
     instance.orgUnitPath = __OrgUnitPathSerDer__().parse(orgUnitPathValue)
     return instance
Esempio n. 25
0
    def encodeInternal(self, value, instance):

        from netbluemind.directory.api.DirEntryKind import DirEntryKind
        from netbluemind.directory.api.DirEntryKind import __DirEntryKindSerDer__
        kindValue = value.kind
        instance["kind"] = __DirEntryKindSerDer__().encode(kindValue)
        pathValue = value.path
        instance["path"] = serder.STRING.encode(pathValue)
        displayNameValue = value.displayName
        instance["displayName"] = serder.STRING.encode(displayNameValue)
        entryUidValue = value.entryUid
        instance["entryUid"] = serder.STRING.encode(entryUidValue)
        emailValue = value.email
        instance["email"] = serder.STRING.encode(emailValue)
        hiddenValue = value.hidden
        instance["hidden"] = serder.BOOLEAN.encode(hiddenValue)
        systemValue = value.system
        instance["system"] = serder.BOOLEAN.encode(systemValue)
        archivedValue = value.archived
        instance["archived"] = serder.BOOLEAN.encode(archivedValue)
        from netbluemind.core.api.Email import Email
        from netbluemind.core.api.Email import __EmailSerDer__
        emailsValue = value.emails
        instance["emails"] = serder.ListSerDer(
            __EmailSerDer__()).encode(emailsValue)
        orgUnitUidValue = value.orgUnitUid
        instance["orgUnitUid"] = serder.STRING.encode(orgUnitUidValue)
        from netbluemind.directory.api.OrgUnitPath import OrgUnitPath
        from netbluemind.directory.api.OrgUnitPath import __OrgUnitPathSerDer__
        orgUnitPathValue = value.orgUnitPath
        instance["orgUnitPath"] = __OrgUnitPathSerDer__().encode(
            orgUnitPathValue)
        return instance
Esempio n. 26
0
 def parseInternal(self, value, instance):
     from netbluemind.core.api.report.DiagnosticReportEntry import DiagnosticReportEntry
     from netbluemind.core.api.report.DiagnosticReportEntry import __DiagnosticReportEntrySerDer__
     entriesValue = value['entries']
     instance.entries = serder.ListSerDer(
         __DiagnosticReportEntrySerDer__()).parse(entriesValue)
     return instance
Esempio n. 27
0
    def search(self, query):
        postUri = "/_search"
        __data__ = None
        from netbluemind.group.api.GroupSearchQuery import GroupSearchQuery
        from netbluemind.group.api.GroupSearchQuery import __GroupSearchQuerySerDer__
        __data__ = __GroupSearchQuerySerDer__().encode(query)

        queryParams = {}

        response = requests.post(self.base + postUri,
                                 params=queryParams,
                                 verify=False,
                                 headers={
                                     'X-BM-ApiKey': self.apiKey,
                                     'Accept': 'application/json',
                                     'X-BM-ClientVersion': IGroup_VERSION
                                 },
                                 data=json.dumps(__data__))
        from netbluemind.group.api.Group import Group
        from netbluemind.group.api.Group import __GroupSerDer__
        from netbluemind.core.container.model.ItemValue import ItemValue
        from netbluemind.core.container.model.ItemValue import __ItemValueSerDer__
        return self.handleResult__(
            serder.ListSerDer(__ItemValueSerDer__(__GroupSerDer__())),
            response)
Esempio n. 28
0
	def getCurrentLogs (self):
		postUri = "/_currentLogs";
		__data__ = None
		queryParams = {  };

		response = requests.get( self.base + postUri, params = queryParams, verify=False, headers = {'X-BM-ApiKey' : self.apiKey, 'Accept' : 'application/json', 'X-BM-ClientVersion' : ITask_VERSION}, data = json.dumps(__data__));
		return self.handleResult__(serder.ListSerDer(serder.STRING), response)
Esempio n. 29
0
    def calendarLookup(self, pattern, verb):
        postUri = "/_calendarLookup/{pattern}"
        __data__ = None
        postUri = postUri.replace("{pattern}", pattern)
        from netbluemind.core.container.model.acl.Verb import Verb
        from netbluemind.core.container.model.acl.Verb import __VerbSerDer__
        __data__ = __VerbSerDer__().encode(verb)

        queryParams = {}

        response = requests.post(self.base + postUri,
                                 params=queryParams,
                                 verify=False,
                                 headers={
                                     'X-BM-ApiKey':
                                     self.apiKey,
                                     'Accept':
                                     'application/json',
                                     'X-BM-ClientVersion':
                                     ICalendarAutocomplete_VERSION
                                 },
                                 data=json.dumps(__data__))
        from netbluemind.calendar.api.CalendarLookupResponse import CalendarLookupResponse
        from netbluemind.calendar.api.CalendarLookupResponse import __CalendarLookupResponseSerDer__
        return self.handleResult__(
            serder.ListSerDer(__CalendarLookupResponseSerDer__()), response)
Esempio n. 30
0
 def parseInternal(self, value, instance):
     valuesValue = value['values']
     instance.values = serder.ListSerDer(
         self.paramSerDerE).parse(valuesValue)
     totalValue = value['total']
     instance.total = serder.INT.parse(totalValue)
     return instance