1 package de.dlr.shepard.auth.users.endpoints;
2
3 import de.dlr.shepard.common.neo4j.endpoints.OrderByAttribute;
4 import java.util.List;
5
6 public enum UserGroupAttributes implements OrderByAttribute {
7 createdAt,
8 updatedAt,
9 name;
10
11 private static List<UserGroupAttributes> stringList = List.of(UserGroupAttributes.name);
12
13 private boolean isString(UserGroupAttributes userGroupAttributes) {
14 return stringList.contains(userGroupAttributes);
15 }
16
17 @Override
18 public boolean isString() {
19 return isString(this);
20 }
21 }