@Ignore @Test public void querySetQuery01() { String validQuery = "ApplicationService.(services[@name=~\"srp-app.*\"]{*} || updateStrategies{*})"; CMSQuery query = new CMSQuery(RAPTOR_PAAS, null, validQuery); query.setSkip(0); query.setLimit(1000); query.setAllowFullTableScan(true); CMSClientContext context = new CMSClientContext(); CMSQueryResult<ICMSEntity> resultEntities = raptorService.query(query, ICMSEntity.class, context); Assert.assertNotNull(resultEntities); Assert.assertNotNull(resultEntities.getEntities()); Assert.assertTrue(resultEntities.getEntities().size() > 0); Assert.assertTrue(resultEntities.getEntities().size() == 12); for (ICMSEntity entity : resultEntities.getEntities()) { System.out.println("entity type: " + entity.get_type() + ", class name: " + entity.getClass().getSimpleName()); Assert.assertEquals(entity.get_type(), entity.getClass().getSimpleName()); } }
@Deprecated public <T extends ICMSEntity> CMSQueryResult<T> query(CMSQuery query, Class<T> targetClass) { return query(query, targetClass, null); }
CMSClientService { @Deprecated public <T extends ICMSEntity> CMSQueryResult<T> query(CMSQuery query, Class<T> targetClass) { return query(query, targetClass, null); } }
CMSClientService { @Deprecated public <T extends ICMSEntity> CMSQueryResult<T> query(CMSQuery query, Class<T> targetClass) { return query(query, targetClass, null); } private  CMSClientService(CMSClientConfig config); }
CMSClientService { @Deprecated public <T extends ICMSEntity> CMSQueryResult<T> query(CMSQuery query, Class<T> targetClass) { return query(query, targetClass, null); } private  CMSClientService(CMSClientConfig config); static CMSClientService getClientService(CMSClientConfig config); static CMSClientService getClientService(CMSClientConfig config, String user, String password); CMSClientConfig getClientConfig(); String getToken(String user, String password); @Deprecated T get(String id, Class<T> entityClass); T get(String id, Class<T> entityClass, CMSClientContext context, String... includeFieldNames); List<T> getEntitiesByField(Class<T> entityClass, String queryPath, String fieldName,
            Object fieldValue, CMSClientContext context, String... includeFieldNames); T getEntityByField(Class<T> entityClass, String queryPath, String fieldName,
            Object fieldValue, CMSClientContext context, String... includeFieldNames); @Deprecated List<T> get(Class<T> entityClass, int limit); List<T> get(Class<T> entityClass, int limit, CMSClientContext context, String... includeFieldNames); @Deprecated T create(T entity); T create(T entity, CMSClientContext context); @Deprecated CMSQueryResult<T> query(CMSQuery query, Class<T> targetClass); QueryIterator<T> queryIterator(CMSQuery query, Class<T> clz, CMSClientContext context); CMSQueryResult<T> query(CMSQuery query, Class<T> targetClass, CMSClientContext context); @Deprecated void delete(T entity); void delete(T entity, CMSClientContext context); @Deprecated void update(T entity); void update(T entity, CMSClientContext context); void updateWithRetry(T entity, CMSClientContext context); void updateEntityField(T entity, String fieldName, CMSClientContext context); void updateEntityField(T entity, String fieldName, T oldValueEntity,
            CMSClientContext context); @Deprecated void replace(T entity); void replace(T entity, CMSClientContext context); @Deprecated List<String> batchCreate(List<T> entities); List<String> batchCreate(List<T> entities, CMSClientContext context); @Deprecated void batchUpdate(List<T> entities); void batchUpdate(List<T> entities, CMSClientContext context); @Deprecated void batchDelete(List<T> entities); void batchDelete(List<T> entities, CMSClientContext context); @Deprecated GenericCMSEntity get(String id, String metadata); GenericCMSEntity get(String id, String metadata, CMSClientContext context, String... includeFieldNames); @Deprecated List<GenericCMSEntity> get(GenericCMSEntity queryEntity, int limit); List<GenericCMSEntity> get(GenericCMSEntity queryEntity, int limit, CMSClientContext context, String... includeFieldNames); @Deprecated CMSQueryResult<GenericCMSEntity> query(CMSQuery query); CMSQueryResult<GenericCMSEntity> query(CMSQuery query, CMSClientContext context); CMSQueryResult<T> fullQuery(CMSQuery query, Class<T> targetClass, CMSClientContext context); QueryIterator<T> getDanglingReference(Class<T> clz, String attribute, CMSClientContext context); QueryIterator<GenericCMSEntity> getDanglingReference(String metadata, String attribute, String refDataType, CMSClientContext context); QueryIterator<T> getEmptyReference(Class<T> clz, String attribute, CMSClientContext context); QueryIterator<GenericCMSEntity> getEmptyReference(String metadata, String attribute, CMSClientContext context); List<GenericCMSEntity> getEntitiesByField(String queryPath, String fieldName, Object fieldValue,
            CMSClientContext context, String... includeFieldNames); GenericCMSEntity getEntityByField(String queryPath, String fieldName, Object fieldValue,
            CMSClientContext context, String... includeFieldNames); @Deprecated Set<String> getMetadataFields(String metadata); Map<String, MetaClass> getMetadatas(CMSClientContext context); MetaClass getMetadata(String metadata, CMSClientContext context); Set<String> getMetadataFields(String metadata, CMSClientContext context); @Deprecated void appendToArray(T t, String fieldName); void appendToArray(T t, String fieldName, CMSClientContext context); @Deprecated void appendToJson(T t, String fieldName); void appendToJson(T t, String fieldName, CMSClientContext context); @Deprecated void deleteField(T t, String fieldName); void deleteField(T t, String fieldName, CMSClientContext context); void createRelationship(T fromEntity, String refField, K toEntity, CMSClientContext context); @Deprecated void createRelationship(T fromEntity, RelationshipField<T, K> field, K toEntity, CMSClientContext context); void deleteRelationship(T fromEntity, String refField, K toEntity, CMSClientContext context); @Deprecated void deleteRelationship(T fromEntity, RelationshipField<T, K> field, K toEntity, CMSClientContext context); boolean isAlive(); static boolean isAlive(String url); synchronized void close(); }
CMSClientService { @Deprecated public <T extends ICMSEntity> CMSQueryResult<T> query(CMSQuery query, Class<T> targetClass) { return query(query, targetClass, null); } private  CMSClientService(CMSClientConfig config); static CMSClientService getClientService(CMSClientConfig config); static CMSClientService getClientService(CMSClientConfig config, String user, String password); CMSClientConfig getClientConfig(); String getToken(String user, String password); @Deprecated T get(String id, Class<T> entityClass); T get(String id, Class<T> entityClass, CMSClientContext context, String... includeFieldNames); List<T> getEntitiesByField(Class<T> entityClass, String queryPath, String fieldName,
            Object fieldValue, CMSClientContext context, String... includeFieldNames); T getEntityByField(Class<T> entityClass, String queryPath, String fieldName,
            Object fieldValue, CMSClientContext context, String... includeFieldNames); @Deprecated List<T> get(Class<T> entityClass, int limit); List<T> get(Class<T> entityClass, int limit, CMSClientContext context, String... includeFieldNames); @Deprecated T create(T entity); T create(T entity, CMSClientContext context); @Deprecated CMSQueryResult<T> query(CMSQuery query, Class<T> targetClass); QueryIterator<T> queryIterator(CMSQuery query, Class<T> clz, CMSClientContext context); CMSQueryResult<T> query(CMSQuery query, Class<T> targetClass, CMSClientContext context); @Deprecated void delete(T entity); void delete(T entity, CMSClientContext context); @Deprecated void update(T entity); void update(T entity, CMSClientContext context); void updateWithRetry(T entity, CMSClientContext context); void updateEntityField(T entity, String fieldName, CMSClientContext context); void updateEntityField(T entity, String fieldName, T oldValueEntity,
            CMSClientContext context); @Deprecated void replace(T entity); void replace(T entity, CMSClientContext context); @Deprecated List<String> batchCreate(List<T> entities); List<String> batchCreate(List<T> entities, CMSClientContext context); @Deprecated void batchUpdate(List<T> entities); void batchUpdate(List<T> entities, CMSClientContext context); @Deprecated void batchDelete(List<T> entities); void batchDelete(List<T> entities, CMSClientContext context); @Deprecated GenericCMSEntity get(String id, String metadata); GenericCMSEntity get(String id, String metadata, CMSClientContext context, String... includeFieldNames); @Deprecated List<GenericCMSEntity> get(GenericCMSEntity queryEntity, int limit); List<GenericCMSEntity> get(GenericCMSEntity queryEntity, int limit, CMSClientContext context, String... includeFieldNames); @Deprecated CMSQueryResult<GenericCMSEntity> query(CMSQuery query); CMSQueryResult<GenericCMSEntity> query(CMSQuery query, CMSClientContext context); CMSQueryResult<T> fullQuery(CMSQuery query, Class<T> targetClass, CMSClientContext context); QueryIterator<T> getDanglingReference(Class<T> clz, String attribute, CMSClientContext context); QueryIterator<GenericCMSEntity> getDanglingReference(String metadata, String attribute, String refDataType, CMSClientContext context); QueryIterator<T> getEmptyReference(Class<T> clz, String attribute, CMSClientContext context); QueryIterator<GenericCMSEntity> getEmptyReference(String metadata, String attribute, CMSClientContext context); List<GenericCMSEntity> getEntitiesByField(String queryPath, String fieldName, Object fieldValue,
            CMSClientContext context, String... includeFieldNames); GenericCMSEntity getEntityByField(String queryPath, String fieldName, Object fieldValue,
            CMSClientContext context, String... includeFieldNames); @Deprecated Set<String> getMetadataFields(String metadata); Map<String, MetaClass> getMetadatas(CMSClientContext context); MetaClass getMetadata(String metadata, CMSClientContext context); Set<String> getMetadataFields(String metadata, CMSClientContext context); @Deprecated void appendToArray(T t, String fieldName); void appendToArray(T t, String fieldName, CMSClientContext context); @Deprecated void appendToJson(T t, String fieldName); void appendToJson(T t, String fieldName, CMSClientContext context); @Deprecated void deleteField(T t, String fieldName); void deleteField(T t, String fieldName, CMSClientContext context); void createRelationship(T fromEntity, String refField, K toEntity, CMSClientContext context); @Deprecated void createRelationship(T fromEntity, RelationshipField<T, K> field, K toEntity, CMSClientContext context); void deleteRelationship(T fromEntity, String refField, K toEntity, CMSClientContext context); @Deprecated void deleteRelationship(T fromEntity, RelationshipField<T, K> field, K toEntity, CMSClientContext context); boolean isAlive(); static boolean isAlive(String url); synchronized void close();  }