Skip to content

Commit

Permalink
Merge pull request #1444 from ajordens/add-entitytag-namespace
Browse files Browse the repository at this point in the history
Introduce a new `namespace` attribute to `EntityTag`
  • Loading branch information
anotherchrisberry authored Feb 20, 2017
2 parents 7dfc1f7 + c5c4d0a commit cf505b5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,18 @@ class EntityTags {

static class EntityTag {
String name
String namespace
Object value
EntityTagValueType valueType

String getName() {
return name.toLowerCase()
}

String getNamespace() {
return (namespace ?: "default").toLowerCase()
}

@JsonIgnore
Object getValueForWrite(ObjectMapper objectMapper) {
switch (valueType) {
Expand Down

0 comments on commit cf505b5

Please sign in to comment.