Skip to content

Commit

Permalink
sonar cloud fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SrdjanStevanetic committed Sep 11, 2024
1 parent c5084b5 commit 47a6454
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
*/
public enum UserSetTypes implements JsonKeyword {

COLLECTION("Collection"), DYNAMICCOLLECTION("DynamicCollection"), BOOKMARKSFOLDER("BookmarkFolder"), ENTITYBESTITEMSSET("EntityBestItemsSet"), GALLERY("Gallery");
COLLECTION("Collection"), DYNAMICCOLLECTION("DynamicCollection"), BOOKMARKSFOLDER("BookmarkFolder"), ENTITYBESTITEMSSET("EntityBestItemsSet"),
GALLERY("Gallery");

private String jsonValue;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
*/
public class WebUserSetModelFields {

WebUserSetModelFields() {

}

//common fields constants
public static final String ID = "id";
public static final String TYPE = "type";
Expand Down Expand Up @@ -47,4 +43,8 @@ public class WebUserSetModelFields {


public static final String VALUE_CONTEXT_EUROPEANA_COLLECTION = "http://www.europeana.eu/schemas/context/collection.jsonld";

WebUserSetModelFields() {
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@

@JsonPropertyOrder({ WebUserSetModelFields.ID, WebUserSetModelFields.TYPE, WebUserSetModelFields.COLLECTION_TYPE, WebUserSetModelFields.TITLE,
WebUserSetModelFields.SUBJECT, WebUserSetFields.DESCRIPTION, WebUserSetModelFields.VISIBILITY, WebUserSetModelFields.IS_DEFINED_BY,
WebUserSetModelFields.PINNED, WebUserSetModelFields.ITEMS, WebUserSetModelFields.CREATOR, WebUserSetModelFields.CONTRIBUTOR, WebUserSetModelFields.PROVIDER,
WebUserSetModelFields.CREATED, WebUserSetModelFields.MODIFIED, WebUserSetModelFields.TOTAL, WebUserSetFields.NEXT, WebUserSetFields.PREV })
WebUserSetModelFields.PINNED, WebUserSetModelFields.ITEMS, WebUserSetModelFields.CREATOR, WebUserSetModelFields.CONTRIBUTOR,
WebUserSetModelFields.PROVIDER, WebUserSetModelFields.CREATED, WebUserSetModelFields.MODIFIED, WebUserSetModelFields.TOTAL,
WebUserSetFields.NEXT, WebUserSetFields.PREV })
@JsonInclude(value = JsonInclude.Include.NON_DEFAULT)
@JsonIgnoreProperties(ignoreUnknown = true)
public class WebUserSetImpl extends PersistentUserSetImpl {
Expand Down Expand Up @@ -63,12 +64,14 @@ public String getIdentifier() {
return super.getIdentifier();
}

@JsonProperty(WebUserSetFields.TYPE)
@Override
@JsonProperty(WebUserSetModelFields.TYPE)
public void setType(String type) {
super.setType(type);
}

@JsonProperty(WebUserSetFields.COLLECTION_TYPE)
@Override
@JsonProperty(WebUserSetModelFields.COLLECTION_TYPE)
public void setCollectionType(String collType) {
super.setCollectionType(collType);
}
Expand Down

0 comments on commit 47a6454

Please sign in to comment.