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

		idValue = value.id
		instance["id"] = serder.STRING.encode(idValue)
		parentRoleIdValue = value.parentRoleId
		instance["parentRoleId"] = serder.STRING.encode(parentRoleIdValue)
		categoryIdValue = value.categoryId
		instance["categoryId"] = serder.STRING.encode(categoryIdValue)
		labelValue = value.label
		instance["label"] = serder.STRING.encode(labelValue)
		descriptionValue = value.description
		instance["description"] = serder.STRING.encode(descriptionValue)
		selfPromoteValue = value.selfPromote
		instance["selfPromote"] = serder.BOOLEAN.encode(selfPromoteValue)
		dirEntryPromoteValue = value.dirEntryPromote
		instance["dirEntryPromote"] = serder.BOOLEAN.encode(dirEntryPromoteValue)
		from netbluemind.directory.api.DirEntryKind import DirEntryKind
		from netbluemind.directory.api.DirEntryKind import __DirEntryKindSerDer__
		dirEntryKindValue = value.dirEntryKind
		instance["dirEntryKind"] = __DirEntryKindSerDer__().encode(dirEntryKindValue)
		siblingRoleValue = value.siblingRole
		instance["siblingRole"] = serder.STRING.encode(siblingRoleValue)
		childsRoleValue = value.childsRole
		instance["childsRole"] = serder.SetSerDer(serder.STRING).encode(childsRoleValue)
		visibleValue = value.visible
		instance["visible"] = serder.BOOLEAN.encode(visibleValue)
		delegableValue = value.delegable
		instance["delegable"] = serder.BOOLEAN.encode(delegableValue)
		containerRolesValue = value.containerRoles
		instance["containerRoles"] = serder.SetSerDer(serder.STRING).encode(containerRolesValue)
		return instance
Ejemplo n.º 2
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
Ejemplo n.º 3
0
	def parseInternal(self, value, instance):
		idValue = value['id']
		instance.id = serder.STRING.parse(idValue)
		parentRoleIdValue = value['parentRoleId']
		instance.parentRoleId = serder.STRING.parse(parentRoleIdValue)
		categoryIdValue = value['categoryId']
		instance.categoryId = serder.STRING.parse(categoryIdValue)
		labelValue = value['label']
		instance.label = serder.STRING.parse(labelValue)
		descriptionValue = value['description']
		instance.description = serder.STRING.parse(descriptionValue)
		selfPromoteValue = value['selfPromote']
		instance.selfPromote = serder.BOOLEAN.parse(selfPromoteValue)
		dirEntryPromoteValue = value['dirEntryPromote']
		instance.dirEntryPromote = serder.BOOLEAN.parse(dirEntryPromoteValue)
		from netbluemind.directory.api.DirEntryKind import DirEntryKind
		from netbluemind.directory.api.DirEntryKind import __DirEntryKindSerDer__
		dirEntryKindValue = value['dirEntryKind']
		instance.dirEntryKind = __DirEntryKindSerDer__().parse(dirEntryKindValue)
		siblingRoleValue = value['siblingRole']
		instance.siblingRole = serder.STRING.parse(siblingRoleValue)
		childsRoleValue = value['childsRole']
		instance.childsRole = serder.SetSerDer(serder.STRING).parse(childsRoleValue)
		visibleValue = value['visible']
		instance.visible = serder.BOOLEAN.parse(visibleValue)
		delegableValue = value['delegable']
		instance.delegable = serder.BOOLEAN.parse(delegableValue)
		containerRolesValue = value['containerRoles']
		instance.containerRoles = serder.SetSerDer(serder.STRING).parse(containerRolesValue)
		return instance
Ejemplo n.º 4
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
Ejemplo n.º 5
0
 def parseInternal(self, value, instance):
     from_Value = value['from']
     instance.from_ = serder.INT.parse(from_Value)
     sizeValue = value['size']
     instance.size = serder.INT.parse(sizeValue)
     queryValue = value['query']
     instance.query = serder.STRING.parse(queryValue)
     from netbluemind.directory.api.DirEntryKind import DirEntryKind
     from netbluemind.directory.api.DirEntryKind import __DirEntryKindSerDer__
     managableKindsValue = value['managableKinds']
     instance.managableKinds = serder.SetSerDer(
         __DirEntryKindSerDer__()).parse(managableKindsValue)
     return instance
Ejemplo n.º 6
0
    def encodeInternal(self, value, instance):

        from_Value = value.from_
        instance["from"] = serder.INT.encode(from_Value)
        sizeValue = value.size
        instance["size"] = serder.INT.encode(sizeValue)
        queryValue = value.query
        instance["query"] = serder.STRING.encode(queryValue)
        from netbluemind.directory.api.DirEntryKind import DirEntryKind
        from netbluemind.directory.api.DirEntryKind import __DirEntryKindSerDer__
        managableKindsValue = value.managableKinds
        instance["managableKinds"] = serder.SetSerDer(
            __DirEntryKindSerDer__()).encode(managableKindsValue)
        return instance
Ejemplo n.º 7
0
	def encodeInternal(self, value, instance):

		from netbluemind.directory.api.DirEntryQueryOrder import DirEntryQueryOrder
		from netbluemind.directory.api.DirEntryQueryOrder import __DirEntryQueryOrderSerDer__
		orderValue = value.order
		instance["order"] = __DirEntryQueryOrderSerDer__().encode(orderValue)
		nameFilterValue = value.nameFilter
		instance["nameFilter"] = serder.STRING.encode(nameFilterValue)
		hiddenFilterValue = value.hiddenFilter
		instance["hiddenFilter"] = serder.BOOLEAN.encode(hiddenFilterValue)
		emailFilterValue = value.emailFilter
		instance["emailFilter"] = serder.STRING.encode(emailFilterValue)
		nameOrEmailFilterValue = value.nameOrEmailFilter
		instance["nameOrEmailFilter"] = serder.STRING.encode(nameOrEmailFilterValue)
		from netbluemind.directory.api.DirEntryQueryStateFilter import DirEntryQueryStateFilter
		from netbluemind.directory.api.DirEntryQueryStateFilter import __DirEntryQueryStateFilterSerDer__
		stateFilterValue = value.stateFilter
		instance["stateFilter"] = __DirEntryQueryStateFilterSerDer__().encode(stateFilterValue)
		systemFilterValue = value.systemFilter
		instance["systemFilter"] = serder.BOOLEAN.encode(systemFilterValue)
		from netbluemind.directory.api.DirEntryKind import DirEntryKind
		from netbluemind.directory.api.DirEntryKind import __DirEntryKindSerDer__
		kindsFilterValue = value.kindsFilter
		instance["kindsFilter"] = serder.ListSerDer(__DirEntryKindSerDer__()).encode(kindsFilterValue)
		entriesValue = value.entries
		instance["entries"] = serder.ListSerDer(serder.STRING).encode(entriesValue)
		from_Value = value.from_
		instance["from"] = serder.INT.encode(from_Value)
		sizeValue = value.size
		instance["size"] = serder.INT.encode(sizeValue)
		entryUidFilterValue = value.entryUidFilter
		instance["entryUidFilter"] = serder.ListSerDer(serder.STRING).encode(entryUidFilterValue)
		entriesFilterOutValue = value.entriesFilterOut
		instance["entriesFilterOut"] = serder.ListSerDer(serder.STRING).encode(entriesFilterOutValue)
		onlyManagableValue = value.onlyManagable
		instance["onlyManagable"] = serder.BOOLEAN.encode(onlyManagableValue)
		return instance
Ejemplo n.º 8
0
	def parseInternal(self, value, instance):
		from netbluemind.directory.api.DirEntryQueryOrder import DirEntryQueryOrder
		from netbluemind.directory.api.DirEntryQueryOrder import __DirEntryQueryOrderSerDer__
		orderValue = value['order']
		instance.order = __DirEntryQueryOrderSerDer__().parse(orderValue)
		nameFilterValue = value['nameFilter']
		instance.nameFilter = serder.STRING.parse(nameFilterValue)
		hiddenFilterValue = value['hiddenFilter']
		instance.hiddenFilter = serder.BOOLEAN.parse(hiddenFilterValue)
		emailFilterValue = value['emailFilter']
		instance.emailFilter = serder.STRING.parse(emailFilterValue)
		nameOrEmailFilterValue = value['nameOrEmailFilter']
		instance.nameOrEmailFilter = serder.STRING.parse(nameOrEmailFilterValue)
		from netbluemind.directory.api.DirEntryQueryStateFilter import DirEntryQueryStateFilter
		from netbluemind.directory.api.DirEntryQueryStateFilter import __DirEntryQueryStateFilterSerDer__
		stateFilterValue = value['stateFilter']
		instance.stateFilter = __DirEntryQueryStateFilterSerDer__().parse(stateFilterValue)
		systemFilterValue = value['systemFilter']
		instance.systemFilter = serder.BOOLEAN.parse(systemFilterValue)
		from netbluemind.directory.api.DirEntryKind import DirEntryKind
		from netbluemind.directory.api.DirEntryKind import __DirEntryKindSerDer__
		kindsFilterValue = value['kindsFilter']
		instance.kindsFilter = serder.ListSerDer(__DirEntryKindSerDer__()).parse(kindsFilterValue)
		entriesValue = value['entries']
		instance.entries = serder.ListSerDer(serder.STRING).parse(entriesValue)
		from_Value = value['from']
		instance.from_ = serder.INT.parse(from_Value)
		sizeValue = value['size']
		instance.size = serder.INT.parse(sizeValue)
		entryUidFilterValue = value['entryUidFilter']
		instance.entryUidFilter = serder.ListSerDer(serder.STRING).parse(entryUidFilterValue)
		entriesFilterOutValue = value['entriesFilterOut']
		instance.entriesFilterOut = serder.ListSerDer(serder.STRING).parse(entriesFilterOutValue)
		onlyManagableValue = value['onlyManagable']
		instance.onlyManagable = serder.BOOLEAN.parse(onlyManagableValue)
		return instance