public KalturaUiConfAdminListResponse(Element node) throws KalturaApiException {
   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("objects")) {
       this.objects = new ArrayList<KalturaUiConfAdmin>();
       NodeList subNodeList = aNode.getChildNodes();
       for (int j = 0; j < subNodeList.getLength(); j++) {
         Node arrayNode = subNodeList.item(j);
         this.objects.add((KalturaUiConfAdmin) KalturaObjectFactory.create((Element) arrayNode));
       }
       continue;
     } else if (nodeName.equals("totalCount")) {
       try {
         if (!txt.equals("")) this.totalCount = Integer.parseInt(txt);
       } catch (NumberFormatException nfe) {
       }
       continue;
     }
   }
 }
 public KalturaDistributionProfile get(int id) throws KalturaApiException {
   KalturaParams kparams = new KalturaParams();
   kparams.addIntIfNotNull("id", id);
   this.kalturaClient.queueServiceCall("contentdistribution_distributionprofile", "get", kparams);
   if (this.kalturaClient.isMultiRequest()) return null;
   Element resultXmlElement = this.kalturaClient.doQueue();
   return (KalturaDistributionProfile) KalturaObjectFactory.create(resultXmlElement);
 }
 public KalturaMediaInfoListResponse list(KalturaMediaInfoFilter filter, KalturaFilterPager pager)
     throws KalturaApiException {
   KalturaParams kparams = new KalturaParams();
   if (filter != null) kparams.add("filter", filter.toParams());
   if (pager != null) kparams.add("pager", pager.toParams());
   this.kalturaClient.queueServiceCall("adminconsole_mediainfo", "list", kparams);
   if (this.kalturaClient.isMultiRequest()) return null;
   Element resultXmlElement = this.kalturaClient.doQueue();
   return (KalturaMediaInfoListResponse) KalturaObjectFactory.create(resultXmlElement);
 }
 public KalturaDistributionProfile add(KalturaDistributionProfile distributionProfile)
     throws KalturaApiException {
   KalturaParams kparams = new KalturaParams();
   if (distributionProfile != null)
     kparams.add("distributionProfile", distributionProfile.toParams());
   this.kalturaClient.queueServiceCall("contentdistribution_distributionprofile", "add", kparams);
   if (this.kalturaClient.isMultiRequest()) return null;
   Element resultXmlElement = this.kalturaClient.doQueue();
   return (KalturaDistributionProfile) KalturaObjectFactory.create(resultXmlElement);
 }
 public KalturaDistributionProfileListResponse list(
     KalturaDistributionProfileFilter filter, KalturaFilterPager pager)
     throws KalturaApiException {
   KalturaParams kparams = new KalturaParams();
   if (filter != null) kparams.add("filter", filter.toParams());
   if (pager != null) kparams.add("pager", pager.toParams());
   this.kalturaClient.queueServiceCall("contentdistribution_distributionprofile", "list", kparams);
   if (this.kalturaClient.isMultiRequest()) return null;
   Element resultXmlElement = this.kalturaClient.doQueue();
   return (KalturaDistributionProfileListResponse) KalturaObjectFactory.create(resultXmlElement);
 }
Exemplo n.º 6
0
 public KalturaFilter(Element node) throws KalturaApiException {
   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("orderBy")) {
       this.orderBy = txt;
       continue;
     } else if (nodeName.equals("advancedSearch")) {
       this.advancedSearch = (KalturaSearchItem) KalturaObjectFactory.create((Element) aNode);
       continue;
     }
   }
 }
 public KalturaDistributionFieldConfig(Element node) throws KalturaApiException {
   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("fieldName")) {
       this.fieldName = txt;
       continue;
     } else if (nodeName.equals("userFriendlyFieldName")) {
       this.userFriendlyFieldName = txt;
       continue;
     } else if (nodeName.equals("entryMrssXslt")) {
       this.entryMrssXslt = txt;
       continue;
     } else if (nodeName.equals("isRequired")) {
       try {
         if (!txt.equals(""))
           this.isRequired = KalturaDistributionFieldRequiredStatus.get(Integer.parseInt(txt));
       } catch (NumberFormatException nfe) {
       }
       continue;
     } else if (nodeName.equals("updateOnChange")) {
       if (!txt.equals("")) this.updateOnChange = ((txt.equals("0")) ? false : true);
       continue;
     } else if (nodeName.equals("updateParams")) {
       this.updateParams = new ArrayList<KalturaString>();
       NodeList subNodeList = aNode.getChildNodes();
       for (int j = 0; j < subNodeList.getLength(); j++) {
         Node arrayNode = subNodeList.item(j);
         this.updateParams.add((KalturaString) KalturaObjectFactory.create((Element) arrayNode));
       }
       continue;
     } else if (nodeName.equals("isDefault")) {
       if (!txt.equals("")) this.isDefault = ((txt.equals("0")) ? false : true);
       continue;
     }
   }
 }