Search in sources :

Example 11 with CreatedDate

use of org.orcid.jaxb.model.v3.dev1.common.CreatedDate in project ORCID-Source by ORCID.

the class WorksPaginatorTest method getPublicWorkGroup.

private WorkGroup getPublicWorkGroup(int i) {
    WorkGroup workGroup = new WorkGroup();
    workGroup.setLastModifiedDate(new LastModifiedDate(DateUtils.convertToXMLGregorianCalendar(System.currentTimeMillis())));
    for (int x = 0; x < 10; x++) {
        WorkSummary workSummary = new WorkSummary();
        workSummary.setCreatedDate(new CreatedDate(DateUtils.convertToXMLGregorianCalendar(System.currentTimeMillis())));
        workSummary.setPublicationDate(new PublicationDate(new FuzzyDate(new Year(2017), new Month(x), new Day(x))));
        workSummary.setTitle(getTitle(i));
        workSummary.setVisibility(Visibility.PUBLIC);
        workSummary.setDisplayIndex(Integer.toString(x));
        workSummary.setPutCode(Long.valueOf(new StringBuilder(i).append(x).toString()));
        workSummary.setSource(getSource());
        workSummary.setType(WorkType.EDITED_BOOK);
        workGroup.getWorkSummary().add(workSummary);
    }
    return workGroup;
}
Also used : WorkGroup(org.orcid.jaxb.model.v3.dev1.record.summary.WorkGroup) LastModifiedDate(org.orcid.jaxb.model.v3.dev1.common.LastModifiedDate) Month(org.orcid.jaxb.model.v3.dev1.common.Month) WorkSummary(org.orcid.jaxb.model.v3.dev1.record.summary.WorkSummary) PublicationDate(org.orcid.jaxb.model.v3.dev1.common.PublicationDate) Year(org.orcid.jaxb.model.v3.dev1.common.Year) CreatedDate(org.orcid.jaxb.model.v3.dev1.common.CreatedDate) FuzzyDate(org.orcid.jaxb.model.v3.dev1.common.FuzzyDate) Day(org.orcid.jaxb.model.v3.dev1.common.Day)

Aggregations

CreatedDate (org.orcid.jaxb.model.v3.dev1.common.CreatedDate)11 LastModifiedDate (org.orcid.jaxb.model.v3.dev1.common.LastModifiedDate)8 PublicationDate (org.orcid.jaxb.model.v3.dev1.common.PublicationDate)4 Day (org.orcid.jaxb.model.v3.dev1.common.Day)3 FuzzyDate (org.orcid.jaxb.model.v3.dev1.common.FuzzyDate)3 Month (org.orcid.jaxb.model.v3.dev1.common.Month)3 Url (org.orcid.jaxb.model.v3.dev1.common.Url)3 Year (org.orcid.jaxb.model.v3.dev1.common.Year)3 Work (org.orcid.jaxb.model.v3.dev1.record.Work)3 WorkGroup (org.orcid.jaxb.model.v3.dev1.record.summary.WorkGroup)3 WorkSummary (org.orcid.jaxb.model.v3.dev1.record.summary.WorkSummary)3 ContributorOrcid (org.orcid.jaxb.model.v3.dev1.common.ContributorOrcid)2 Country (org.orcid.jaxb.model.v3.dev1.common.Country)2 CreditName (org.orcid.jaxb.model.v3.dev1.common.CreditName)2 Iso3166Country (org.orcid.jaxb.model.v3.dev1.common.Iso3166Country)2 Subtitle (org.orcid.jaxb.model.v3.dev1.common.Subtitle)2 Title (org.orcid.jaxb.model.v3.dev1.common.Title)2 ExternalID (org.orcid.jaxb.model.v3.dev1.record.ExternalID)2 ExternalIDs (org.orcid.jaxb.model.v3.dev1.record.ExternalIDs)2 WorkTitle (org.orcid.jaxb.model.v3.dev1.record.WorkTitle)2