-
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.
Fix/add CreateRepositoryAttributeRequest (#17)
- Loading branch information
1 parent
65d12be
commit 869266d
Showing
3 changed files
with
47 additions
and
3 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
23 changes: 23 additions & 0 deletions
23
src/main/java/eu/enmeshed/requests/attributes/CreateRepositoryAttributeRequest.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package eu.enmeshed.requests.attributes; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
import lombok.experimental.SuperBuilder; | ||
|
||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Getter | ||
@Setter | ||
@SuperBuilder | ||
public class CreateRepositoryAttributeRequest { | ||
|
||
private CreateRepositoryAttributeRequestContent content; | ||
|
||
public static CreateRepositoryAttributeRequest containing(CreateRepositoryAttributeRequestContent content) { | ||
|
||
return new CreateRepositoryAttributeRequest(content); | ||
} | ||
} | ||
|
22 changes: 22 additions & 0 deletions
22
src/main/java/eu/enmeshed/requests/attributes/CreateRepositoryAttributeRequestContent.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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package eu.enmeshed.requests.attributes; | ||
|
||
import eu.enmeshed.model.attributes.values.AttributeValue; | ||
import java.util.List; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
|
||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Getter | ||
@Setter | ||
@Builder | ||
public class CreateRepositoryAttributeRequestContent { | ||
|
||
private AttributeValue value; | ||
private List<String> tags; | ||
private String validFrom; | ||
private String validTo; | ||
} |