Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ExportInformation to PortabilityJob
- Loading branch information
Showing
8 changed files
with
69 additions
and
16 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
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
14 changes: 14 additions & 0 deletions
14
...s-common/src/main/java/org/datatransferproject/types/common/models/ContainerResource.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,9 +1,23 @@ | ||
package org.datatransferproject.types.common.models; | ||
|
||
import com.fasterxml.jackson.annotation.JsonSubTypes; | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo; | ||
import org.datatransferproject.types.common.models.calendar.CalendarContainerResource; | ||
import org.datatransferproject.types.common.models.mail.MailContainerResource; | ||
import org.datatransferproject.types.common.models.photos.PhotosContainerResource; | ||
import org.datatransferproject.types.common.models.tasks.TaskContainerResource; | ||
|
||
/** | ||
* A resource that contains data items such as a photo album or song list. | ||
* | ||
* <p>Concrete subtypes must use {@link com.fasterxml.jackson.annotation.JsonTypeName} to specify a | ||
* type discriminator used for deserialization. | ||
*/ | ||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME) | ||
@JsonSubTypes({ | ||
@JsonSubTypes.Type(PhotosContainerResource.class), | ||
@JsonSubTypes.Type(MailContainerResource.class), | ||
@JsonSubTypes.Type(CalendarContainerResource.class), | ||
@JsonSubTypes.Type(TaskContainerResource.class) | ||
}) | ||
public abstract class ContainerResource extends DataModel {} |