Examples of ListDescription


Examples of hidb2.kern.ListDescription

      // Control Destination Class
      if (obj instanceof ListDescrNode)
        {
        ListDescrNode on = (ListDescrNode) obj;

        ListDescription fd = (ListDescription) on.getDescr();

        fd.updateStats(Application.getDataStore());

        // Calculate Impact + Confirmation window
        boolean rb = MessageDialog.openConfirm(wbwin.getShell(), "Delete List Description",
            "Do you confirm the deletion of :" + fd.getName() + "\nHaving : " + fd.getNbInstance() + " items");

        if (rb)
          {
          fd.setStatus(StatusCycle.DELETED);

          fd.write(Application.getDataStore());

          DefaultNode p = on.getParent();

          p.removeChild(on);
View Full Code Here

Examples of hidb2.kern.ListDescription

              if (obj instanceof ListDescrTitleNode)
                {
                if (iwp instanceof DBStructView)
                  {
                  // Create a new FolderDescrNode and open the editor
                  ListDescription fd = Application.getDataStore().createListDescription();
                  ListDescrNode fnd = new ListDescrNode(fd);
                  ((ListDescrTitleNode) obj).addChild(fnd);

                  page.openEditor(fnd, ListDescrEditor.ID);
View Full Code Here

Examples of hidb2.kern.ListDescription

      if (_isListRef)
        {
        int idx = _cbLst.getSelectionIndex();
       
        ListDescription ld = ((AttrEnumItemChecker) _ack).getDataStore().getListDescriptionList().get(idx);
       
        _ack.set("", ld.getID());
        }
      else
        {
        for (String paramName : _ack.getDefinitionProp())
          {
View Full Code Here

Examples of hidb2.kern.ListDescription

   */
  protected void pageChange(int newPageIndex)
    {
    super.pageChange(newPageIndex);

    ListDescription fd = getFD();

    switch (newPageIndex)
      {
      case 0:
        setPartName(fd.getName());

        _fNameEntry.setValue(fd.getName());

        _fCmtEntry.setValue(fd.getComment());

        _fIdxIconEntry.setValue(Integer.toString(fd.getIconAttrIndex()));

        _fIdxLabelEntry.setValue(Integer.toString(fd.getLabelAttrIndex()));

        // Fill Statistic fields
        _fMainTable.setValue(fd.getTName());

        fd.updateStats(Application.getDataStore());
        _fNbInstance.setValue(Long.toString(fd.getNbInstance()));
        break;

      case 1:
        _tabvLdAttr.setDescr(fd);
        break;
View Full Code Here

Examples of org.uddi.api_v3.ListDescription

  public static BindingDetail getBindingDetailFromKeys(FindBinding body, FindQualifiers findQualifiers, EntityManager em, List<?> keysFound,
                             Date modifiedAfter, Date modifiedBefore, Holder<Integer> subscriptionStartIndex, Integer subscriptionMaxRows)
           throws DispositionReportFaultMessage {

    BindingDetail result = new BindingDetail();
    ListDescription listDesc = new ListDescription();
    result.setListDescription(listDesc);
   
    // Sort and retrieve the final results with paging taken into account
    List<?> queryResults = FetchBindingTemplatesQuery.select(em, findQualifiers, keysFound, body.getMaxRows(), body.getListHead(), listDesc);
View Full Code Here

Examples of org.uddi.api_v3.ListDescription

  public static BusinessList getBusinessListFromKeys(FindBusiness body, FindQualifiers findQualifiers, EntityManager em, List<?> keysFound,
                             Date modifiedAfter, Date modifiedBefore, Holder<Integer> subscriptionStartIndex, Integer subscriptionMaxRows)
           throws DispositionReportFaultMessage {

    BusinessList result = new BusinessList();
    ListDescription listDesc = new ListDescription();
    result.setListDescription(listDesc);

    // Sort and retrieve the final results taking paging into account
    List<?> queryResults = FetchBusinessEntitiesQuery.select(em, findQualifiers, keysFound, body.getMaxRows(), body.getListHead(), listDesc);
    if (queryResults != null && queryResults.size() > 0)
View Full Code Here

Examples of org.uddi.api_v3.ListDescription

  public static ServiceList getServiceListFromKeys(FindService body, FindQualifiers findQualifiers, EntityManager em, List<?> keysFound,
                           Date modifiedAfter, Date modifiedBefore, Holder<Integer> subscriptionStartIndex, Integer subscriptionMaxRows)
           throws DispositionReportFaultMessage {
    ServiceList result = new ServiceList();
    ListDescription listDesc = new ListDescription();
    result.setListDescription(listDesc);
   
    // Sort and retrieve the final results taking paging into account
    List<?> queryResults = FetchBusinessServicesQuery.select(em, findQualifiers, keysFound, body.getMaxRows(), body.getListHead(), listDesc);
    if (queryResults != null && queryResults.size() > 0)
View Full Code Here

Examples of org.uddi.api_v3.ListDescription

 
  public static TModelList getTModelListFromKeys(FindTModel body, FindQualifiers findQualifiers, EntityManager em, List<?> keysFound,
                           Date modifiedAfter, Date modifiedBefore, Holder<Integer> subscriptionStartIndex, Integer subscriptionMaxRows)
           throws DispositionReportFaultMessage {
    TModelList result = new TModelList();
    ListDescription listDesc = new ListDescription();
    result.setListDescription(listDesc);

    // Sort and retrieve the final results taking paging into account
    List<?> queryResults = FetchTModelsQuery.select(em, findQualifiers, keysFound, body.getMaxRows(), body.getListHead(), listDesc);
    if (queryResults != null && queryResults.size() > 0)
View Full Code Here

Examples of org.uddi.api_v3.ListDescription

    return getRelatedBusinessesList(body, em, null, null);
  }
 
  public static RelatedBusinessesList getRelatedBusinessesList(FindRelatedBusinesses body, EntityManager em, Date modifiedAfter, Date modifiedBefore) throws DispositionReportFaultMessage {
    RelatedBusinessesList result = new RelatedBusinessesList();
    ListDescription listDesc = new ListDescription();
    result.setListDescription(listDesc);
   
    // Either one of the businessKey, fromKey or toKey will be passed.  This is considered the "focal" business to which related businesses must be
    // found.  Rather than use a query, it seems simpler to take advantage of the model's publisher assertion collections.
    org.uddi.api_v3.RelatedBusinessInfos relatedBusinessInfos = new org.uddi.api_v3.RelatedBusinessInfos();
    if (body.getBusinessKey() != null ) {
      InquiryHelper.getRelatedBusinesses(em, Direction.FROM_KEY, body.getBusinessKey(), body.getKeyedReference(), relatedBusinessInfos, modifiedAfter, modifiedBefore);
      InquiryHelper.getRelatedBusinesses(em, Direction.TO_KEY, body.getBusinessKey(), body.getKeyedReference(), relatedBusinessInfos, modifiedAfter, modifiedBefore);
    }
    else if (body.getFromKey() != null)
      InquiryHelper.getRelatedBusinesses(em, Direction.FROM_KEY, body.getFromKey(), body.getKeyedReference(), relatedBusinessInfos, modifiedAfter, modifiedBefore);
    else if (body.getToKey() != null)
      InquiryHelper.getRelatedBusinesses(em, Direction.TO_KEY, body.getToKey(), body.getKeyedReference(), relatedBusinessInfos, modifiedAfter, modifiedBefore);

    if (relatedBusinessInfos.getRelatedBusinessInfo().size() > 0) {
      // TODO: Do proper pagination!
      listDesc.setActualCount(relatedBusinessInfos.getRelatedBusinessInfo().size());
      listDesc.setIncludeCount(relatedBusinessInfos.getRelatedBusinessInfo().size());
      listDesc.setListHead(1);
     
      result.setRelatedBusinessInfos(relatedBusinessInfos);
    }
   
    return result;
View Full Code Here

Examples of org.uddi.api_v3.ListDescription

  public static BindingDetail getBindingDetailFromKeys(FindBinding body, FindQualifiers findQualifiers, EntityManager em, List<?> keysFound,
                             Date modifiedAfter, Date modifiedBefore, Holder<Integer> subscriptionStartIndex, Integer subscriptionMaxRows)
           throws DispositionReportFaultMessage {

    BindingDetail result = new BindingDetail();
    ListDescription listDesc = new ListDescription();
    result.setListDescription(listDesc);
   
    // Sort and retrieve the final results with paging taken into account
    List<?> queryResults = FetchBindingTemplatesQuery.select(em, findQualifiers, keysFound, body.getMaxRows(), body.getListHead(), listDesc);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.