View Javadoc
1   package de.dlr.shepard.common.search.endpoints;
2   
3   import de.dlr.shepard.common.neo4j.endpoints.OrderByAttribute;
4   import java.util.List;
5   
6   public enum BasicCollectionAttributes implements OrderByAttribute {
7     updatedAt,
8     createdAt,
9     createdBy,
10    id,
11    name;
12  
13    private static List<BasicCollectionAttributes> stringList = List.of(
14      BasicCollectionAttributes.name,
15      BasicCollectionAttributes.createdBy
16    );
17  
18    private boolean isString(BasicCollectionAttributes dataObjectAttribute) {
19      return stringList.contains(dataObjectAttribute);
20    }
21  
22    @Override
23    public boolean isString() {
24      return isString(this);
25    }
26  }