Package no.unit.nva.api
Class PublicationResponse
java.lang.Object
no.unit.nva.api.PublicationResponse
- All Implemented Interfaces:
PublicationBase,WithAdditionalIdentifiers,WithAssociatedArtifact,WithContext,WithId,WithIdentifier,WithInternal,WithMetadata
- Direct Known Subclasses:
PublicationResponseElevatedUser
public class PublicationResponse
extends Object
implements WithIdentifier, WithInternal, WithMetadata, WithAssociatedArtifact, WithId, WithContext, WithAdditionalIdentifiers
-
Field Summary
Fields inherited from interface no.unit.nva.WithId
LINKED_DATA_ID_FIELD, NAMESPACE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PublicationResponsefromPublication(Publication publication) com.fasterxml.jackson.databind.JsonNodegetDoi()no.unit.nva.identifiers.SortableIdentifiergetLink()inthashCode()voidsetAdditionalIdentifiers(Set<AdditionalIdentifier> additionalIdentifiers) voidsetAssociatedArtifacts(AssociatedArtifactList associatedArtifacts) voidsetContext(com.fasterxml.jackson.databind.JsonNode context) voidsetCreatedDate(Instant createdDate) voidvoidsetEntityDescription(EntityDescription entityDescription) voidsetFundings(List<Funding> fundings) voidvoidsetIdentifier(no.unit.nva.identifiers.SortableIdentifier identifier) voidsetIndexedDate(Instant indexedDate) voidvoidsetModifiedDate(Instant modifiedDate) voidsetProjects(List<ResearchProject> projects) voidsetPublishedDate(Instant publishedDate) voidsetPublisher(Organization publisher) voidsetResourceOwner(ResourceOwner resourceOwner) voidsetRightsHolder(String rightsHolder) voidsetStatus(PublicationStatus status) voidsetSubjects(List<URI> subjects)
-
Constructor Details
-
PublicationResponse
public PublicationResponse()
-
-
Method Details
-
fromPublication
-
getIdentifier
public no.unit.nva.identifiers.SortableIdentifier getIdentifier()- Specified by:
getIdentifierin interfaceWithId- 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
-
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
-
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
-
getContext
public com.fasterxml.jackson.databind.JsonNode getContext()- Specified by:
getContextin interfaceWithContext
-
setContext
public void setContext(com.fasterxml.jackson.databind.JsonNode context) - Specified by:
setContextin interfaceWithContext
-
getAssociatedArtifacts
- Specified by:
getAssociatedArtifactsin interfaceWithAssociatedArtifact
-
setAssociatedArtifacts
- Specified by:
setAssociatedArtifactsin interfaceWithAssociatedArtifact
-
getAdditionalIdentifiers
- Specified by:
getAdditionalIdentifiersin interfaceWithAdditionalIdentifiers
-
setAdditionalIdentifiers
- Specified by:
setAdditionalIdentifiersin interfaceWithAdditionalIdentifiers
-
hashCode
public int hashCode() -
equals
-