Package org.dspace.orcid
Class OrcidQueue
- java.lang.Object
-
- org.dspace.orcid.OrcidQueue
-
- All Implemented Interfaces:
ReloadableEntity<Integer>
@Entity public class OrcidQueue extends Object implements ReloadableEntity<Integer>
Entity that model a record on the ORCID synchronization queue. Each record in this table is associated with an profile item and the entity to be synchronized (which can be the profile itself, a publication or a project/funding). If the entity is the profile itself then the metadata field contains the signature of the information to be synchronized.- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
-
Field Summary
Fields Modifier and Type Field Description protected ItemprofileItemThe profile item.
-
Constructor Summary
Constructors Constructor Description OrcidQueue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)IntegergetAttempts()StringgetDescription()ItemgetEntity()IntegergetID()The unique identifier of this entity instance.StringgetMetadata()OrcidOperationgetOperation()ItemgetProfileItem()StringgetPutCode()StringgetRecordType()inthashCode()booleanisDeleteAction()booleanisInsertAction()booleanisUpdateAction()voidsetAttempts(Integer attempts)voidsetDescription(String description)voidsetEntity(Item entity)voidsetID(Integer id)voidsetMetadata(String metadata)voidsetOperation(OrcidOperation operation)voidsetProfileItem(Item profileItem)voidsetPutCode(String putCode)voidsetRecordType(String recordType)StringtoString()
-
-
-
Field Detail
-
profileItem
protected Item profileItem
The profile item.
-
-
Method Detail
-
isInsertAction
public boolean isInsertAction()
-
isUpdateAction
public boolean isUpdateAction()
-
isDeleteAction
public boolean isDeleteAction()
-
setID
public void setID(Integer id)
-
getID
public Integer getID()
Description copied from interface:ReloadableEntityThe unique identifier of this entity instance.- Specified by:
getIDin interfaceReloadableEntity<Integer>- Returns:
- the value of the primary key for this instance.
-
getProfileItem
public Item getProfileItem()
-
setProfileItem
public void setProfileItem(Item profileItem)
-
getEntity
public Item getEntity()
-
setEntity
public void setEntity(Item entity)
-
getPutCode
public String getPutCode()
-
setPutCode
public void setPutCode(String putCode)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getRecordType
public String getRecordType()
-
setRecordType
public void setRecordType(String recordType)
-
getMetadata
public String getMetadata()
-
setMetadata
public void setMetadata(String metadata)
-
getOperation
public OrcidOperation getOperation()
-
setOperation
public void setOperation(OrcidOperation operation)
-
getAttempts
public Integer getAttempts()
-
setAttempts
public void setAttempts(Integer attempts)
-
-