Package no.unit.nva.model
Class Publication
java.lang.Object
no.unit.nva.model.Publication
- All Implemented Interfaces:
WithCopy<Publication.Builder>,PublicationBase,WithAssociatedArtifact,WithIdentifier,WithInternal,WithMetadata
public class Publication
extends Object
implements WithIdentifier, WithInternal, WithAssociatedArtifact, WithMetadata, WithCopy<Publication.Builder>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Returns a Builder filled in with a copy of the data of the original object.booleangetDoi()no.unit.nva.identifiers.SortableIdentifierDeprecated.static StringgetJsonLdContext(URI baseUri) getLink()static StringgetOntology(URI baseUri) inthashCode()booleanbooleanvoidsetAdditionalIdentifiers(Set<AdditionalIdentifier> additionalIdentifiers) voidsetAssociatedArtifacts(AssociatedArtifactList associatedArtifacts) voidsetCreatedDate(Instant createdDate) voidvoidsetDuplicateOf(URI duplicateOf) voidsetEntityDescription(EntityDescription entityDescription) voidsetFundings(List<Funding> fundings) voidvoidsetIdentifier(no.unit.nva.identifiers.SortableIdentifier identifier) voidsetIndexedDate(Instant indexedDate) voidvoidvoidsetModifiedDate(Instant modifiedDate) voidsetProjects(List<ResearchProject> projects) voidsetPublicationNotes(List<PublicationNoteBase> publicationNotes) voidsetPublishedDate(Instant publishedDate) voidsetPublisher(Organization publisher) voidsetResourceOwner(ResourceOwner resourceOwner) voidsetRightsHolder(String rightsHolder) voidsetStatus(PublicationStatus status) voidsetSubjects(List<URI> subjects) toString()voidupdateStatus(PublicationStatus nextStatus) Updates the status of the publication using rules for valid status transitions.
-
Field Details
-
validStatusTransitionsMap
-
-
Constructor Details
-
Publication
public Publication()
-
-
Method Details
-
getDuplicateOf
-
setDuplicateOf
-
getAdditionalIdentifiers
-
setAdditionalIdentifiers
-
getCreatedDate
- Specified by:
getCreatedDatein interfaceWithInternal
-
setCreatedDate
- Specified by:
setCreatedDatein interfaceWithInternal
-
getStatus
- Specified by:
getStatusin interfaceWithInternal
-
setStatus
- Specified by:
setStatusin interfaceWithInternal
-
getHandle
- Specified by:
getHandlein interfaceWithInternal
-
setHandle
- Specified by:
setHandlein interfaceWithInternal
-
getPublishedDate
- Specified by:
getPublishedDatein interfaceWithInternal
-
setPublishedDate
- Specified by:
setPublishedDatein interfaceWithInternal
-
getModifiedDate
- Specified by:
getModifiedDatein interfaceWithInternal
-
setModifiedDate
- Specified by:
setModifiedDatein interfaceWithInternal
-
getResourceOwner
- Specified by:
getResourceOwnerin interfaceWithInternal
-
setResourceOwner
- Specified by:
setResourceOwnerin interfaceWithInternal
-
getIndexedDate
- Specified by:
getIndexedDatein interfaceWithInternal
-
setIndexedDate
- Specified by:
setIndexedDatein interfaceWithInternal
-
getLink
- Specified by:
getLinkin interfaceWithInternal
-
setLink
- Specified by:
setLinkin interfaceWithInternal
-
getPublisher
- Specified by:
getPublisherin interfaceWithInternal
-
setPublisher
- Specified by:
setPublisherin interfaceWithInternal
-
getDoi
- Specified by:
getDoiin interfaceWithInternal
-
setDoi
- Specified by:
setDoiin interfaceWithInternal
-
getIdentifier
public no.unit.nva.identifiers.SortableIdentifier getIdentifier()- Specified by:
getIdentifierin interfaceWithIdentifier- Specified by:
getIdentifierin interfaceWithInternal
-
setIdentifier
public void setIdentifier(no.unit.nva.identifiers.SortableIdentifier identifier) - Specified by:
setIdentifierin interfaceWithIdentifier- Specified by:
setIdentifierin interfaceWithInternal
-
getEntityDescription
- Specified by:
getEntityDescriptionin interfaceWithMetadata
-
setEntityDescription
- Specified by:
setEntityDescriptionin interfaceWithMetadata
-
getProjects
- Specified by:
getProjectsin interfaceWithMetadata
-
setProjects
- Specified by:
setProjectsin interfaceWithMetadata
-
getSubjects
- Specified by:
getSubjectsin interfaceWithMetadata
-
setSubjects
- Specified by:
setSubjectsin interfaceWithMetadata
-
getFundings
- Specified by:
getFundingsin interfaceWithMetadata
-
setFundings
- Specified by:
setFundingsin interfaceWithMetadata
-
getRightsHolder
- Specified by:
getRightsHolderin interfaceWithMetadata
-
setRightsHolder
- Specified by:
setRightsHolderin interfaceWithMetadata
-
getModelVersion
-
setModelVersion
public void setModelVersion() -
getPublicationNotes
-
setPublicationNotes
-
getAssociatedArtifacts
- Specified by:
getAssociatedArtifactsin interfaceWithAssociatedArtifact
-
setAssociatedArtifacts
- Specified by:
setAssociatedArtifactsin interfaceWithAssociatedArtifact
-
copy
Description copied from interface:WithCopyReturns a Builder filled in with a copy of the data of the original object.- Specified by:
copyin interfaceWithCopy<Publication.Builder>- Returns:
- a builder instance with filled in data.
-
updateStatus
public void updateStatus(PublicationStatus nextStatus) throws InvalidPublicationStatusTransitionException Updates the status of the publication using rules for valid status transitions.- Parameters:
nextStatus- the status to update to- Throws:
InvalidPublicationStatusTransitionException- if the status transition is not allowed
-
hashCode
public int hashCode() -
equals
-
toString
-
getJsonLdContext
Deprecated. -
getJsonLdContext
-
getOntology
-
isPublishable
public boolean isPublishable() -
satisfiesFindableDoiRequirements
public boolean satisfiesFindableDoiRequirements()
-