-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add effectiveOn support * Return access level to private
- Loading branch information
Showing
6 changed files
with
72 additions
and
34 deletions.
There are no files selected for viewing
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
33 changes: 31 additions & 2 deletions
33
src/main/java/com/bullhornsdk/data/model/parameter/EntityParams.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,40 @@ | ||
package com.bullhornsdk.data.model.parameter; | ||
|
||
import java.time.LocalDate; | ||
|
||
/** | ||
* Optional parameters for the "entity" api call. | ||
* | ||
* | ||
* @author magnus.palm | ||
* | ||
*/ | ||
public interface EntityParams extends RequestParameters { | ||
|
||
/** | ||
* Returns whether to show the _editable field in responses. | ||
* | ||
* @return the flag value | ||
*/ | ||
Boolean getShowEditable(); | ||
|
||
/** | ||
* Whether to show the _editable field in responses. The _editable field indicates whether an entity is editable. | ||
* Setting showEditable to true results in slower performance; use this setting sparingly and only when needed. | ||
* | ||
* @param showEditable the flag value | ||
*/ | ||
void setShowEditable(Boolean showEditable); | ||
|
||
/** | ||
* Returns the date limitation query on an effective-dated entity. | ||
* | ||
* @return The date limit | ||
*/ | ||
LocalDate getEffectiveOn(); | ||
|
||
/** | ||
* Limit the request to a specific date. Only works on <a href=https://bullhorn.github.io/rest-api-docs/index.html#effective-dated-entity>Effective-Dated entities</a> | ||
* | ||
* @param effectiveOn The date limitation | ||
*/ | ||
void setEffectiveOn(LocalDate effectiveOn); | ||
} |
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