Examples of EntityList


Examples of com.centraview.common.EntityList

        DisplayList displaylistSession = ( DisplayList )session.getAttribute( "displaylist") ;

        DisplayList displaylist = ( DisplayList )request.getAttribute( "displaylist") ;

        EntityList DL = new EntityList();
        ListGenerator lg = ListGenerator.getListGenerator(dataSource);
        if( displaylist == null  )
        {

          String searchString = "ADVANCE:SELECT entityid FROM vendor  ";
          DL = ( EntityList )lg.getEntityList( userobjectd.getIndividualID(), 1,listpreference.getRecordsPerPage() , searchString ,listpreference.getSortElement());
          if (DL == null)
          {
            DL = new EntityList();
          }

          DisplayList DL1 = lg.getDisplayList(DL.getListID() );
          DL1.setListType("Vendor");
          DL.setListType("Vendor");
          DL.setPrimaryTable("vendor");
          DL1.setTotalNoOfRecords(DL.size());
          DL.setTotalNoOfRecords(DL.size());
        }
        else
        {
          String searchSession = displaylistSession.getSearchString();
          String searchrequest = displaylist.getSearchString();

          if(searchSession == null)
            searchSession = "";
          if(searchrequest == null)
            searchrequest = "";

          if (( (displaylistSession.getListID() == displaylist.getListID() ) &&
                ( displaylist.getDirtyFlag() == false ) &&
                ( displaylist.getStartAT() >= displaylistSession.getBeginIndex() ) &&
                ( displaylist.getEndAT()<=displaylistSession.getEndIndex() ) &&
                (displaylist.getSortMember().equals(displaylistSession.getSortMember()) &&
                (displaylist.getSortType()==(displaylistSession.getSortType())) &&
                (searchSession.equals(searchrequest)) )) ||
                displaylist.getAdvanceSearchFlag() == true)
          {
            DL = (EntityList)displaylistSession;
            DL.setListType("Vendor");
            DL.setPrimaryTable("vendor");
            DL.setTotalNoOfRecords(DL.size());
            request.setAttribute("displaylist" , displaylistSession );
          }
          else
          {
            DL = ( EntityList )lg.getEntityList( displaylist );
            DisplayList DL1 = lg.getDisplayList(DL.getListID() );
            DL1.setListType("Vendor");
            DL.setListType("Vendor");
            DL.setPrimaryTable("vendor");
            DL1.setTotalNoOfRecords(DL.size());
            DL.setTotalNoOfRecords(DL.size());
          }
        }


        Set listkey = DL.keySet();
        Iterator it =  listkey.iterator();
        while( it.hasNext() )
        {
          String str = ( String )it.next();

          StringMember sm=null;
          ListElement ele  = ( ListElement )DL.get( str );
          sm = ( StringMember )ele.get("Name" );
          sm.setRequestURL("openPopup('ViewEntityDetail.do?rowId="+ele.getElementID()+"&listId="+DL.getListID()+"')");
          sm = ( StringMember )ele.get("PrimaryContact" );
          IntMember im = (IntMember) ele.get("IndividualID");
          sm.setRequestURL("openPopup('ViewIndividualDetail.do?rowId="+((Integer)im.getMemberValue()).intValue()+"&listId="+DL.getListID()+"')");
          sm = ( StringMember )ele.get("Website");
          sm.setRequestURL("openWindowWithTool('"+sm.getDisplayString()+"')");
          sm = ( StringMember )ele.get("Email" );
          sm.setRequestURL("openWindows('mail/Compose.do?to="+sm.getDisplayString()+"',720,585,'')");
        }
View Full Code Here

Examples of com.centraview.common.EntityList

  public void ejbRemove()  { }
  public void ejbCreate() throws CreateException{ }

  public EntityList getAllEntityList( int userId, HashMap preference)
  {
    EntityList  entityList = null;
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      ContactListLocalHome home = (ContactListLocalHome)ic.lookup("local/ContactList");
      ContactListLocal remote =  home.create();
View Full Code Here

Examples of org.apache.falcon.resource.EntityList

    }

    private String parseEntityList(ClientResponse clientResponse)
        throws FalconCLIException {

        EntityList result = clientResponse.getEntity(EntityList.class);
        if (result == null || result.getElements() == null) {
            return "";
        }
        return result.toString();

    }
View Full Code Here

Examples of org.apache.falcon.resource.EntityList

        ConfigurationStore.get().init();
        CurrentUser.authenticate("testuser");
        FalconClient client = new FalconClient(falconUrl);
        for (int index = 2; index < args.length; index++) {
            entity = args[index];
            EntityList deps = client.getDependency(type, entity);
            for (EntityElement dep : deps.getElements()) {
                EntityType eType = EntityType.valueOf(dep.type.toUpperCase());
                if (ConfigurationStore.get().get(eType, dep.name) != null) {
                    continue;
                }
                String xml = client.getDefinition(eType.name().toLowerCase(), dep.name);
View Full Code Here

Examples of org.apache.falcon.resource.EntityList

            validateColo(optionsList);
            validateEntityName(entityName);
            result = client.getDependency(entityType, entityName).toString();
        } else if (optionsList.contains(LIST_OPT)) {
            validateColo(optionsList);
            EntityList entityList = client.getEntityList(entityType);
            result = entityList != null ? entityList.toString() : "No entity of type (" + entityType + ") found.";
        } else if (optionsList.contains(HELP_CMD)) {
            OUT.get().println("Falcon Help");
        } else {
            throw new FalconCLIException("Invalid command");
        }
View Full Code Here

Examples of org.apache.falcon.resource.EntityList

    }

    private EntityList parseEntityList(ClientResponse clientResponse)
        throws FalconCLIException {

        EntityList result = clientResponse.getEntity(EntityList.class);
        if (result == null || result.getElements() == null) {
            return null;
        }
        return result;

    }
View Full Code Here

Examples of org.apache.falcon.resource.EntityList

    }

    private String parseEntityList(ClientResponse clientResponse)
        throws FalconCLIException {

        EntityList result = clientResponse.getEntity(EntityList.class);
        if (result == null || result.getElements() == null) {
            return "";
        }
        return result.toString();

    }
View Full Code Here

Examples of org.apache.ivory.resource.EntityList

  }

  private String parseEntityList(ClientResponse clientResponse)
      throws IvoryCLIException {

    EntityList result = clientResponse.getEntity(EntityList.class);
    if (result == null || result.getElements() == null) {
      return "";
    }
    return result.toString();

  }
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.