-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
239c14b
commit 66fef5f
Showing
17 changed files
with
956 additions
and
144 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.folio.model; | ||
|
||
import lombok.Value; | ||
|
||
@Value | ||
public class EntityLink { | ||
|
||
private String domain; | ||
private String type; | ||
private String id; | ||
|
||
} |
8 changes: 4 additions & 4 deletions
8
...ain/java/org/folio/db/model/NoteView.java → src/main/java/org/folio/model/NoteView.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package org.folio.model; | ||
|
||
import static org.apache.commons.lang3.StringUtils.defaultString; | ||
|
||
import org.apache.commons.lang3.EnumUtils; | ||
|
||
public enum Order { | ||
|
||
ASC("asc"), DESC("desc"); | ||
|
||
private String value; | ||
|
||
|
||
Order(String value) { | ||
this.value = value; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return value; | ||
} | ||
|
||
public static boolean contains(String value) { | ||
return EnumUtils.isValidEnum(Order.class, defaultString(value).toUpperCase()); | ||
} | ||
|
||
public static Order enumOf(String value) { | ||
return valueOf(defaultString(value).toUpperCase()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package org.folio.model; | ||
|
||
import static org.apache.commons.lang3.StringUtils.defaultString; | ||
|
||
import org.apache.commons.lang3.EnumUtils; | ||
|
||
public enum OrderBy { | ||
|
||
STATUS("status"), TITLE("title"); | ||
|
||
private String value; | ||
|
||
OrderBy(String value) { | ||
this.value = value; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return value; | ||
} | ||
|
||
public static boolean contains(String value) { | ||
return EnumUtils.isValidEnum(OrderBy.class, defaultString(value).toUpperCase()); | ||
} | ||
|
||
public static OrderBy enumOf(String value) { | ||
return valueOf(defaultString(value).toUpperCase()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.folio.model; | ||
|
||
import lombok.Value; | ||
|
||
@Value | ||
public class RowPortion { | ||
|
||
private int offset; | ||
private int limit; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.folio.model; | ||
|
||
|
||
import static org.apache.commons.lang3.StringUtils.defaultString; | ||
|
||
import org.apache.commons.lang3.EnumUtils; | ||
|
||
public enum Status { | ||
|
||
ASSIGNED, | ||
UNASSIGNED, | ||
ALL; | ||
|
||
public static boolean contains(String value) { | ||
return EnumUtils.isValidEnum(Status.class, defaultString(value).toUpperCase()); | ||
} | ||
|
||
public static Status enumOf(String value) { | ||
return valueOf(defaultString(value).toUpperCase()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.