Class ZenodoItem
- java.lang.Object
-
- org.gcube.portlets.widgets.ckan2zenodopublisher.shared.wrapped.ZenodoItem
-
- All Implemented Interfaces:
Serializable
public class ZenodoItem extends Object implements Serializable
The Class ZenodoItem.- Author:
- Francesco Mangiacrapa at ISTI-CNR Pisa (Italy) Jul 6, 2020
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ZenodoItem()Instantiates a new zenodo item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFiles(List<ZenodoFile> files)Adds the files.DategetCreated()Gets the created.StringgetDoi()Gets the doi.List<ZenodoFile>getFiles()Gets the files.IntegergetId()Gets the id.ZenodoMetadatagetMetadata()Gets the metadata.DategetModified()Gets the modified.StringgetName()Gets the name.IntegergetOwner()Gets the owner.IntegergetRecord_id()Gets the record id.StringgetRecord_url()Gets the record url.StringgetState()Gets the state.BooleangetSubmitted()Gets the submitted.StringgetTitle()Gets the title.ItemTranslateErrorgetTranslateError()Gets the translate error.voidsetCreated(Date created)Sets the created.voidsetDoi(String doi)Sets the doi.voidsetFiles(List<ZenodoFile> files)Sets the files.voidsetId(Integer id)Sets the id.voidsetMetadata(ZenodoMetadata metadata)Sets the metadata.voidsetModified(Date modified)Sets the modified.voidsetName(String name)Sets the name.voidsetOwner(Integer owner)Sets the owner.voidsetRecord_id(Integer record_id)Sets the record id.voidsetRecord_url(String record_url)Sets the record url.voidsetState(String state)Sets the state.voidsetSubmitted(Boolean submitted)Sets the submitted.voidsetTitle(String title)Sets the title.voidsetTranslateError(ItemTranslateError translateError)Sets the translate error.StringtoString()
-
-
-
Method Detail
-
getMetadata
public ZenodoMetadata getMetadata()
Gets the metadata.- Returns:
- the metadata
-
setMetadata
public void setMetadata(ZenodoMetadata metadata)
Sets the metadata.- Parameters:
metadata- the new metadata
-
addFiles
public void addFiles(List<ZenodoFile> files)
Adds the files.- Parameters:
files- the files
-
setFiles
public void setFiles(List<ZenodoFile> files)
Sets the files.- Parameters:
files- the new files
-
getCreated
public Date getCreated()
Gets the created.- Returns:
- the created
-
setCreated
public void setCreated(Date created)
Sets the created.- Parameters:
created- the new created
-
getDoi
public String getDoi()
Gets the doi.- Returns:
- the doi
-
setDoi
public void setDoi(String doi)
Sets the doi.- Parameters:
doi- the new doi
-
getFiles
public List<ZenodoFile> getFiles()
Gets the files.- Returns:
- the files
-
getId
public Integer getId()
Gets the id.- Returns:
- the id
-
setId
public void setId(Integer id)
Sets the id.- Parameters:
id- the new id
-
getModified
public Date getModified()
Gets the modified.- Returns:
- the modified
-
setModified
public void setModified(Date modified)
Sets the modified.- Parameters:
modified- the new modified
-
getOwner
public Integer getOwner()
Gets the owner.- Returns:
- the owner
-
setOwner
public void setOwner(Integer owner)
Sets the owner.- Parameters:
owner- the new owner
-
getRecord_id
public Integer getRecord_id()
Gets the record id.- Returns:
- the record id
-
setRecord_id
public void setRecord_id(Integer record_id)
Sets the record id.- Parameters:
record_id- the new record id
-
getRecord_url
public String getRecord_url()
Gets the record url.- Returns:
- the record url
-
setRecord_url
public void setRecord_url(String record_url)
Sets the record url.- Parameters:
record_url- the new record url
-
getState
public String getState()
Gets the state.- Returns:
- the state
-
setState
public void setState(String state)
Sets the state.- Parameters:
state- the new state
-
getSubmitted
public Boolean getSubmitted()
Gets the submitted.- Returns:
- the submitted
-
setSubmitted
public void setSubmitted(Boolean submitted)
Sets the submitted.- Parameters:
submitted- the new submitted
-
getTitle
public String getTitle()
Gets the title.- Returns:
- the title
-
setTitle
public void setTitle(String title)
Sets the title.- Parameters:
title- the new title
-
getName
public String getName()
Gets the name.- Returns:
- the name
-
setName
public void setName(String name)
Sets the name.- Parameters:
name- the new name
-
getTranslateError
public ItemTranslateError getTranslateError()
Gets the translate error.- Returns:
- the translate error
-
setTranslateError
public void setTranslateError(ItemTranslateError translateError)
Sets the translate error.- Parameters:
translateError- the new translate error
-
-