@Test public void testListMetadataWithInvalidSessionId() throws NoSuchFieldException, UnexpectedErrorFault_Exception, IllegalAccessException, ApiException, InterruptedException { logout(); Thread.sleep(1000); ListMetadataQuery query = new ListMetadataQuery("CustomField"); try { this.mdconn.listMetadata(Collections.singletonList(query)); fail(); } catch (ApiException e) { assertInvalidSession(e); } }
@Override @Nonnull public synchronized List<FileProperties> listMetadata(@Nonnull List<ListMetadataQuery> queries) throws ApiException { List<com.palominolabs.crm.sf.soap.jaxwsstub.metadata.ListMetadataQuery> stubList = new ArrayList<com.palominolabs.crm.sf.soap.jaxwsstub.metadata.ListMetadataQuery>(); for (ListMetadataQuery query : queries) { stubList.add(query.getStubObject()); } List<com.palominolabs.crm.sf.soap.jaxwsstub.metadata.FileProperties> stubResultList = new ListMetadataOp().execute(stubList); List<FileProperties> resultList = new ArrayList<FileProperties>(stubResultList.size()); for (com.palominolabs.crm.sf.soap.jaxwsstub.metadata.FileProperties stub : stubResultList) { resultList.add(new FileProperties(stub)); } return resultList; }
MetadataConnectionImpl extends AbstractSalesforceConnection implements MetadataConnection { @Override @Nonnull public synchronized List<FileProperties> listMetadata(@Nonnull List<ListMetadataQuery> queries) throws ApiException { List<com.palominolabs.crm.sf.soap.jaxwsstub.metadata.ListMetadataQuery> stubList = new ArrayList<com.palominolabs.crm.sf.soap.jaxwsstub.metadata.ListMetadataQuery>(); for (ListMetadataQuery query : queries) { stubList.add(query.getStubObject()); } List<com.palominolabs.crm.sf.soap.jaxwsstub.metadata.FileProperties> stubResultList = new ListMetadataOp().execute(stubList); List<FileProperties> resultList = new ArrayList<FileProperties>(stubResultList.size()); for (com.palominolabs.crm.sf.soap.jaxwsstub.metadata.FileProperties stub : stubResultList) { resultList.add(new FileProperties(stub)); } return resultList; } }
MetadataConnectionImpl extends AbstractSalesforceConnection implements MetadataConnection { @Override @Nonnull public synchronized List<FileProperties> listMetadata(@Nonnull List<ListMetadataQuery> queries) throws ApiException { List<com.palominolabs.crm.sf.soap.jaxwsstub.metadata.ListMetadataQuery> stubList = new ArrayList<com.palominolabs.crm.sf.soap.jaxwsstub.metadata.ListMetadataQuery>(); for (ListMetadataQuery query : queries) { stubList.add(query.getStubObject()); } List<com.palominolabs.crm.sf.soap.jaxwsstub.metadata.FileProperties> stubResultList = new ListMetadataOp().execute(stubList); List<FileProperties> resultList = new ArrayList<FileProperties>(stubResultList.size()); for (com.palominolabs.crm.sf.soap.jaxwsstub.metadata.FileProperties stub : stubResultList) { resultList.add(new FileProperties(stub)); } return resultList; } MetadataConnectionImpl(@Nonnull CallSemaphore semaphore, @Nonnull ConnectionBundleImpl bundle,
            MetricRegistry metricRegistry); }
MetadataConnectionImpl extends AbstractSalesforceConnection implements MetadataConnection { @Override @Nonnull public synchronized List<FileProperties> listMetadata(@Nonnull List<ListMetadataQuery> queries) throws ApiException { List<com.palominolabs.crm.sf.soap.jaxwsstub.metadata.ListMetadataQuery> stubList = new ArrayList<com.palominolabs.crm.sf.soap.jaxwsstub.metadata.ListMetadataQuery>(); for (ListMetadataQuery query : queries) { stubList.add(query.getStubObject()); } List<com.palominolabs.crm.sf.soap.jaxwsstub.metadata.FileProperties> stubResultList = new ListMetadataOp().execute(stubList); List<FileProperties> resultList = new ArrayList<FileProperties>(stubResultList.size()); for (com.palominolabs.crm.sf.soap.jaxwsstub.metadata.FileProperties stub : stubResultList) { resultList.add(new FileProperties(stub)); } return resultList; } MetadataConnectionImpl(@Nonnull CallSemaphore semaphore, @Nonnull ConnectionBundleImpl bundle,
            MetricRegistry metricRegistry); @Override @Nonnull WaitForAsyncResult waitForAsyncResults(@Nonnull List<AsyncResult> results, long maxMillisToWait); @Override @Nonnull synchronized List<AsyncResult> checkStatus(@Nonnull List<Id> idsToCheck); @Override @Nonnull synchronized List<AsyncResult> create(@Nonnull List<Metadata> metadataList); @Override @Nonnull synchronized List<AsyncResult> delete(@Nonnull List<Metadata> metadataList); @Override @Nonnull synchronized List<AsyncResult> update(@Nonnull List<UpdateMetadata> metadataList); @Override @Nonnull synchronized List<FileProperties> listMetadata(@Nonnull List<ListMetadataQuery> queries); @Override @Nonnull synchronized AsyncResult retrieve(@Nonnull RetrieveRequest retrieveRequest); @Override @Nonnull synchronized RetrieveResult getRetrieveResult(@Nonnull Id id); @Override @Nonnull synchronized DescribeMetadataResult describeMetadata(); @Override @Nonnull synchronized DescribeMetadataResult describeMetadata(double apiVersion); }
MetadataConnectionImpl extends AbstractSalesforceConnection implements MetadataConnection { @Override @Nonnull public synchronized List<FileProperties> listMetadata(@Nonnull List<ListMetadataQuery> queries) throws ApiException { List<com.palominolabs.crm.sf.soap.jaxwsstub.metadata.ListMetadataQuery> stubList = new ArrayList<com.palominolabs.crm.sf.soap.jaxwsstub.metadata.ListMetadataQuery>(); for (ListMetadataQuery query : queries) { stubList.add(query.getStubObject()); } List<com.palominolabs.crm.sf.soap.jaxwsstub.metadata.FileProperties> stubResultList = new ListMetadataOp().execute(stubList); List<FileProperties> resultList = new ArrayList<FileProperties>(stubResultList.size()); for (com.palominolabs.crm.sf.soap.jaxwsstub.metadata.FileProperties stub : stubResultList) { resultList.add(new FileProperties(stub)); } return resultList; } MetadataConnectionImpl(@Nonnull CallSemaphore semaphore, @Nonnull ConnectionBundleImpl bundle,
            MetricRegistry metricRegistry); @Override @Nonnull WaitForAsyncResult waitForAsyncResults(@Nonnull List<AsyncResult> results, long maxMillisToWait); @Override @Nonnull synchronized List<AsyncResult> checkStatus(@Nonnull List<Id> idsToCheck); @Override @Nonnull synchronized List<AsyncResult> create(@Nonnull List<Metadata> metadataList); @Override @Nonnull synchronized List<AsyncResult> delete(@Nonnull List<Metadata> metadataList); @Override @Nonnull synchronized List<AsyncResult> update(@Nonnull List<UpdateMetadata> metadataList); @Override @Nonnull synchronized List<FileProperties> listMetadata(@Nonnull List<ListMetadataQuery> queries); @Override @Nonnull synchronized AsyncResult retrieve(@Nonnull RetrieveRequest retrieveRequest); @Override @Nonnull synchronized RetrieveResult getRetrieveResult(@Nonnull Id id); @Override @Nonnull synchronized DescribeMetadataResult describeMetadata(); @Override @Nonnull synchronized DescribeMetadataResult describeMetadata(double apiVersion);  }