@Test void testConvertSelfRefIncludeId() { AttributeFilter filter = new AttributeFilter().setIncludeIdAttr(true).add("selfRef"); Fetch fetch = AttributeFilterToFetchConverter.convert(filter, selfRefEntityType, "en"); assertEquals( new Fetch().field("id").field("selfRef", new Fetch().field("id").field("label")), fetch); }
public static Fetch convert( AttributeFilter attrFilter, EntityType entityType, String languageCode) { if (attrFilter == null || attrFilter.isStar()) { return createDefaultEntityFetch(entityType, languageCode); } Fetch fetch = new Fetch(); createFetchContentRec(attrFilter, entityType, fetch, languageCode); return fetch; }
AttributeFilterToFetchConverter { public static Fetch convert( AttributeFilter attrFilter, EntityType entityType, String languageCode) { if (attrFilter == null || attrFilter.isStar()) { return createDefaultEntityFetch(entityType, languageCode); } Fetch fetch = new Fetch(); createFetchContentRec(attrFilter, entityType, fetch, languageCode); return fetch; } }
AttributeFilterToFetchConverter { public static Fetch convert( AttributeFilter attrFilter, EntityType entityType, String languageCode) { if (attrFilter == null || attrFilter.isStar()) { return createDefaultEntityFetch(entityType, languageCode); } Fetch fetch = new Fetch(); createFetchContentRec(attrFilter, entityType, fetch, languageCode); return fetch; } private  AttributeFilterToFetchConverter(); }
AttributeFilterToFetchConverter { public static Fetch convert( AttributeFilter attrFilter, EntityType entityType, String languageCode) { if (attrFilter == null || attrFilter.isStar()) { return createDefaultEntityFetch(entityType, languageCode); } Fetch fetch = new Fetch(); createFetchContentRec(attrFilter, entityType, fetch, languageCode); return fetch; } private  AttributeFilterToFetchConverter(); static Fetch convert(
      AttributeFilter attrFilter, EntityType entityType, String languageCode); static Fetch createDefaultEntityFetch(EntityType entityType, String languageCode); static Fetch createDefaultAttributeFetch(Attribute attr, String languageCode); }
AttributeFilterToFetchConverter { public static Fetch convert( AttributeFilter attrFilter, EntityType entityType, String languageCode) { if (attrFilter == null || attrFilter.isStar()) { return createDefaultEntityFetch(entityType, languageCode); } Fetch fetch = new Fetch(); createFetchContentRec(attrFilter, entityType, fetch, languageCode); return fetch; } private  AttributeFilterToFetchConverter(); static Fetch convert(
      AttributeFilter attrFilter, EntityType entityType, String languageCode); static Fetch createDefaultEntityFetch(EntityType entityType, String languageCode); static Fetch createDefaultAttributeFetch(Attribute attr, String languageCode);  }