Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ public class MetacardTypeMethods implements MethodSet {

private static final String ISINJECTED_KEY = "isInjected";

private static final String INDEXED_KEY = "indexed";

private static final String STORED_KEY = "stored";

private static final String TOKENIZED_KEY = "tokenized";

private final Map<String, RpcMethod> methods;

private final RpcFactory rpc = new RpcFactoryImpl();
Expand Down Expand Up @@ -106,6 +112,9 @@ public Map<String, Object> getMetacardTypeMap(List<MetacardType> metacardTypeLis
Map<String, Object> attributeProperties = new HashMap<>();
attributeProperties.put(TYPE_KEY, descriptor.getType().getAttributeFormat().name());
attributeProperties.put(MULTIVALUED_KEY, descriptor.isMultiValued());
attributeProperties.put(INDEXED_KEY, descriptor.isIndexed());
attributeProperties.put(STORED_KEY, descriptor.isStored());
attributeProperties.put(TOKENIZED_KEY, descriptor.isTokenized());
attributeProperties.put(ID_KEY, descriptor.getName());
attributeProperties.put(ISINJECTED_KEY, false);
attributes.put(descriptor.getName(), attributeProperties);
Expand All @@ -122,6 +131,9 @@ public Map<String, Object> getMetacardTypeMap(List<MetacardType> metacardTypeLis
Map<String, Object> attributeProperties = new HashMap<>();
attributeProperties.put(TYPE_KEY, descriptor.getType().getAttributeFormat().name());
attributeProperties.put(MULTIVALUED_KEY, descriptor.isMultiValued());
attributeProperties.put(INDEXED_KEY, descriptor.isIndexed());
attributeProperties.put(STORED_KEY, descriptor.isStored());
attributeProperties.put(TOKENIZED_KEY, descriptor.isTokenized());
attributeProperties.put(ID_KEY, descriptor.getName());
attributeProperties.put(ISINJECTED_KEY, true);
Set<String> types =
Expand Down
Loading