]> git.argeo.org Git - lgpl/argeo-commons.git/blob - java/org/argeo/security/UserNature.java
Prepare next development cycle
[lgpl/argeo-commons.git] / java / org / argeo / security / UserNature.java
1 package org.argeo.security;
2
3 import java.io.Serializable;
4 import java.util.UUID;
5
6 //@JsonAutoDetect(value = { JsonMethod.GETTER, JsonMethod.SETTER })
7 public class UserNature implements Serializable {
8 private static final long serialVersionUID = 1L;
9
10 // private final static Log log = LogFactory.getLog(UserNature.class);
11
12 private String uuid = UUID.randomUUID().toString();
13 private String type;
14
15 public String getUuid() {
16 return uuid;
17 }
18
19 public void setUuid(String uuid) {
20 this.uuid = uuid;
21 }
22
23 public String getType() {
24 if (type != null)
25 return type;
26 else
27 return getClass().getName();
28 }
29
30 public void setType(String type) {
31 this.type = type;
32 }
33
34 // @JsonAnySetter
35 // public void anySetter(String key, Object obj) {
36 // if (obj != null)
37 // log.info("anySetter: " + key + "=" + obj + " (" + obj.getClass()
38 // + "), natureType=" + type);
39 // }
40 }