public KalturaContentDistributionSearchItem(Element node) throws KalturaApiException {
   super(node);
   NodeList childNodes = node.getChildNodes();
   for (int i = 0; i < childNodes.getLength(); i++) {
     Node aNode = childNodes.item(i);
     String nodeName = aNode.getNodeName();
     String txt = aNode.getTextContent();
     if (nodeName.equals("noDistributionProfiles")) {
       this.noDistributionProfiles = ParseUtils.parseBool(txt);
       continue;
     } else if (nodeName.equals("distributionProfileId")) {
       this.distributionProfileId = ParseUtils.parseInt(txt);
       continue;
     } else if (nodeName.equals("distributionSunStatus")) {
       this.distributionSunStatus =
           KalturaEntryDistributionSunStatus.get(ParseUtils.parseInt(txt));
       continue;
     } else if (nodeName.equals("entryDistributionFlag")) {
       this.entryDistributionFlag = KalturaEntryDistributionFlag.get(ParseUtils.parseInt(txt));
       continue;
     } else if (nodeName.equals("entryDistributionStatus")) {
       this.entryDistributionStatus = KalturaEntryDistributionStatus.get(ParseUtils.parseInt(txt));
       continue;
     } else if (nodeName.equals("hasEntryDistributionValidationErrors")) {
       this.hasEntryDistributionValidationErrors = ParseUtils.parseBool(txt);
       continue;
     } else if (nodeName.equals("entryDistributionValidationErrors")) {
       this.entryDistributionValidationErrors = ParseUtils.parseString(txt);
       continue;
     }
   }
 }
コード例 #2
0
 public KalturaEntryDistribution(Element node) throws KalturaApiException {
   NodeList childNodes = node.getChildNodes();
   for (int i = 0; i < childNodes.getLength(); i++) {
     Node aNode = childNodes.item(i);
     String nodeName = aNode.getNodeName();
     String txt = aNode.getTextContent();
     if (nodeName.equals("id")) {
       this.id = ParseUtils.parseInt(txt);
       continue;
     } else if (nodeName.equals("createdAt")) {
       this.createdAt = ParseUtils.parseInt(txt);
       continue;
     } else if (nodeName.equals("updatedAt")) {
       this.updatedAt = ParseUtils.parseInt(txt);
       continue;
     } else if (nodeName.equals("submittedAt")) {
       this.submittedAt = ParseUtils.parseInt(txt);
       continue;
     } else if (nodeName.equals("entryId")) {
       this.entryId = ParseUtils.parseString(txt);
       continue;
     } else if (nodeName.equals("partnerId")) {
       this.partnerId = ParseUtils.parseInt(txt);
       continue;
     } else if (nodeName.equals("distributionProfileId")) {
       this.distributionProfileId = ParseUtils.parseInt(txt);
       continue;
     } else if (nodeName.equals("status")) {
       this.status = KalturaEntryDistributionStatus.get(ParseUtils.parseInt(txt));
       continue;
     } else if (nodeName.equals("sunStatus")) {
       this.sunStatus = KalturaEntryDistributionSunStatus.get(ParseUtils.parseInt(txt));
       continue;
     } else if (nodeName.equals("dirtyStatus")) {
       this.dirtyStatus = KalturaEntryDistributionFlag.get(ParseUtils.parseInt(txt));
       continue;
     } else if (nodeName.equals("thumbAssetIds")) {
       this.thumbAssetIds = ParseUtils.parseString(txt);
       continue;
     } else if (nodeName.equals("flavorAssetIds")) {
       this.flavorAssetIds = ParseUtils.parseString(txt);
       continue;
     } else if (nodeName.equals("assetIds")) {
       this.assetIds = ParseUtils.parseString(txt);
       continue;
     } else if (nodeName.equals("sunrise")) {
       this.sunrise = ParseUtils.parseInt(txt);
       continue;
     } else if (nodeName.equals("sunset")) {
       this.sunset = ParseUtils.parseInt(txt);
       continue;
     } else if (nodeName.equals("remoteId")) {
       this.remoteId = ParseUtils.parseString(txt);
       continue;
     } else if (nodeName.equals("plays")) {
       this.plays = ParseUtils.parseInt(txt);
       continue;
     } else if (nodeName.equals("views")) {
       this.views = ParseUtils.parseInt(txt);
       continue;
     } else if (nodeName.equals("validationErrors")) {
       this.validationErrors =
           ParseUtils.parseArray(KalturaDistributionValidationError.class, aNode);
       continue;
     } else if (nodeName.equals("errorType")) {
       this.errorType = KalturaBatchJobErrorTypes.get(ParseUtils.parseInt(txt));
       continue;
     } else if (nodeName.equals("errorNumber")) {
       this.errorNumber = ParseUtils.parseInt(txt);
       continue;
     } else if (nodeName.equals("errorDescription")) {
       this.errorDescription = ParseUtils.parseString(txt);
       continue;
     } else if (nodeName.equals("hasSubmitResultsLog")) {
       this.hasSubmitResultsLog = KalturaNullableBoolean.get(ParseUtils.parseInt(txt));
       continue;
     } else if (nodeName.equals("hasSubmitSentDataLog")) {
       this.hasSubmitSentDataLog = KalturaNullableBoolean.get(ParseUtils.parseInt(txt));
       continue;
     } else if (nodeName.equals("hasUpdateResultsLog")) {
       this.hasUpdateResultsLog = KalturaNullableBoolean.get(ParseUtils.parseInt(txt));
       continue;
     } else if (nodeName.equals("hasUpdateSentDataLog")) {
       this.hasUpdateSentDataLog = KalturaNullableBoolean.get(ParseUtils.parseInt(txt));
       continue;
     } else if (nodeName.equals("hasDeleteResultsLog")) {
       this.hasDeleteResultsLog = KalturaNullableBoolean.get(ParseUtils.parseInt(txt));
       continue;
     } else if (nodeName.equals("hasDeleteSentDataLog")) {
       this.hasDeleteSentDataLog = KalturaNullableBoolean.get(ParseUtils.parseInt(txt));
       continue;
     }
   }
 }
コード例 #3
0
 public KalturaEntryDistributionBaseFilter(Element node) throws KalturaApiException {
   super(node);
   NodeList childNodes = node.getChildNodes();
   for (int i = 0; i < childNodes.getLength(); i++) {
     Node aNode = childNodes.item(i);
     String txt = aNode.getTextContent();
     String nodeName = aNode.getNodeName();
     if (false) {
       // noop
     } else if (nodeName.equals("idEqual")) {
       try {
         if (!txt.equals("")) this.idEqual = Integer.parseInt(txt);
       } catch (NumberFormatException nfe) {
       }
       continue;
     } else if (nodeName.equals("idIn")) {
       this.idIn = txt;
       continue;
     } else if (nodeName.equals("createdAtGreaterThanOrEqual")) {
       try {
         if (!txt.equals("")) this.createdAtGreaterThanOrEqual = Integer.parseInt(txt);
       } catch (NumberFormatException nfe) {
       }
       continue;
     } else if (nodeName.equals("createdAtLessThanOrEqual")) {
       try {
         if (!txt.equals("")) this.createdAtLessThanOrEqual = Integer.parseInt(txt);
       } catch (NumberFormatException nfe) {
       }
       continue;
     } else if (nodeName.equals("updatedAtGreaterThanOrEqual")) {
       try {
         if (!txt.equals("")) this.updatedAtGreaterThanOrEqual = Integer.parseInt(txt);
       } catch (NumberFormatException nfe) {
       }
       continue;
     } else if (nodeName.equals("updatedAtLessThanOrEqual")) {
       try {
         if (!txt.equals("")) this.updatedAtLessThanOrEqual = Integer.parseInt(txt);
       } catch (NumberFormatException nfe) {
       }
       continue;
     } else if (nodeName.equals("submittedAtGreaterThanOrEqual")) {
       try {
         if (!txt.equals("")) this.submittedAtGreaterThanOrEqual = Integer.parseInt(txt);
       } catch (NumberFormatException nfe) {
       }
       continue;
     } else if (nodeName.equals("submittedAtLessThanOrEqual")) {
       try {
         if (!txt.equals("")) this.submittedAtLessThanOrEqual = Integer.parseInt(txt);
       } catch (NumberFormatException nfe) {
       }
       continue;
     } else if (nodeName.equals("entryIdEqual")) {
       this.entryIdEqual = txt;
       continue;
     } else if (nodeName.equals("entryIdIn")) {
       this.entryIdIn = txt;
       continue;
     } else if (nodeName.equals("distributionProfileIdEqual")) {
       try {
         if (!txt.equals("")) this.distributionProfileIdEqual = Integer.parseInt(txt);
       } catch (NumberFormatException nfe) {
       }
       continue;
     } else if (nodeName.equals("distributionProfileIdIn")) {
       this.distributionProfileIdIn = txt;
       continue;
     } else if (nodeName.equals("statusEqual")) {
       try {
         if (!txt.equals(""))
           this.statusEqual = KalturaEntryDistributionStatus.get(Integer.parseInt(txt));
       } catch (NumberFormatException nfe) {
       }
       continue;
     } else if (nodeName.equals("statusIn")) {
       this.statusIn = txt;
       continue;
     } else if (nodeName.equals("dirtyStatusEqual")) {
       try {
         if (!txt.equals(""))
           this.dirtyStatusEqual = KalturaEntryDistributionFlag.get(Integer.parseInt(txt));
       } catch (NumberFormatException nfe) {
       }
       continue;
     } else if (nodeName.equals("dirtyStatusIn")) {
       this.dirtyStatusIn = txt;
       continue;
     } else if (nodeName.equals("sunriseGreaterThanOrEqual")) {
       try {
         if (!txt.equals("")) this.sunriseGreaterThanOrEqual = Integer.parseInt(txt);
       } catch (NumberFormatException nfe) {
       }
       continue;
     } else if (nodeName.equals("sunriseLessThanOrEqual")) {
       try {
         if (!txt.equals("")) this.sunriseLessThanOrEqual = Integer.parseInt(txt);
       } catch (NumberFormatException nfe) {
       }
       continue;
     } else if (nodeName.equals("sunsetGreaterThanOrEqual")) {
       try {
         if (!txt.equals("")) this.sunsetGreaterThanOrEqual = Integer.parseInt(txt);
       } catch (NumberFormatException nfe) {
       }
       continue;
     } else if (nodeName.equals("sunsetLessThanOrEqual")) {
       try {
         if (!txt.equals("")) this.sunsetLessThanOrEqual = Integer.parseInt(txt);
       } catch (NumberFormatException nfe) {
       }
       continue;
     }
   }
 }