@Test void convertAttrFilterCompoundAttr() { AttributeFilter attrFilter = new AttributeFilter().add(COMPOUND_ATTR_NAME); assertEquals( new Fetch() .field(COMPOUND_PART_FILE_ATTR_NAME, new Fetch().field(ID).field(FILENAME).field(URL)) .field(COMPOUND_PART_COMPOUND_PART_ATTR_NAME) .field(COMPOUND_PART_COMPOUND_PART_ATTR2_NAME), convert(attrFilter, entityType, "en")); }
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);  }