@Entity public class Registration extends AnnotatableEntity
taxon name
registration or a type
registration.
The name and all type designations associated with the Registration must share the same citation and citation detail.
annotations, markers
CLOB_LENGTH, uuid
Modifier and Type | Method and Description |
---|---|
void |
addBlockedBy(Registration blockingRegistration) |
void |
addTypeDesignation(TypeDesignationBase designation) |
java.util.Set<Registration> |
getBlockedBy() |
java.lang.String |
getIdentifier() |
Institution |
getInstitution() |
TaxonName |
getName() |
org.joda.time.DateTime |
getRegistrationDate() |
java.lang.String |
getSpecificIdentifier() |
RegistrationStatus |
getStatus() |
User |
getSubmitter() |
java.util.Set<TypeDesignationBase> |
getTypeDesignations() |
static Registration |
NewInstance() |
static Registration |
NewInstance(java.lang.String identifier,
java.lang.String specificIdentifier,
TaxonName name,
java.util.Set<TypeDesignationBase> typeDesignations) |
void |
removeBlockedBy(Registration blockingRegistration) |
void |
removeTypeDesignation(TypeDesignationBase designation) |
void |
setIdentifier(java.lang.String identifier) |
void |
setInstitution(Institution institution) |
void |
setName(TaxonName name) |
void |
setRegistrationDate(org.joda.time.DateTime registrationDate) |
void |
setSpecificIdentifier(java.lang.String specificIdentifier) |
void |
setStatus(RegistrationStatus status)
Sets the status to the passed value.
|
void |
setSubmitter(User submitter) |
void |
setTypeDesignations(java.util.Set<TypeDesignationBase> typeDesignations) |
void |
updateStatusAndDate(RegistrationStatus status)
Sets the
RegistrationStatus of the registration and manages the registrationDate
at the same time:
It will be set to now when the
status is set to RegistrationStatus.PUBLISHED .
Removal of the
PUBLISHED state will cause the the registrationDate to be reset to null .
|
addAnnotation, addMarker, addMarker, clone, getAnnotations, getAnnotations, getMarkers, getMarkers, hasMarker, hasMarker, markerValue, removeAnnotation, removeMarker, removeMarker, setAnnotations
cloneLanguageString, equals, getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
addPropertyChangeListener, addPropertyChangeListener, addToSetWithChangeEvent, deproxy, deproxy, fireOnCreateEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUserFriendlyDescription, getUserFriendlyFieldName, getUserFriendlyTypeName, getUuid, hashCode, hasListeners, initListener, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isBlank, isInstanceOf, isNotBlank, isPersited, removeFromSetWithChangeEvent, removePropertyChangeListener, removePropertyChangeListener, replaceInList, setCreated, setCreatedBy, setId, setNewEntityListener, setUuid, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
getCreated, getCreatedBy, getId, getUuid, isInstanceOf, isPersited, setCreated, setCreatedBy, setId, setUuid
public static Registration NewInstance()
public static Registration NewInstance(java.lang.String identifier, java.lang.String specificIdentifier, TaxonName name, java.util.Set<TypeDesignationBase> typeDesignations)
identifier
- specificIdentifier
- name
- can be null
typeDesignations
- can be null
public java.lang.String getIdentifier()
public void setIdentifier(java.lang.String identifier)
public java.lang.String getSpecificIdentifier()
public void setSpecificIdentifier(java.lang.String specificIdentifier)
public RegistrationStatus getStatus()
public void setStatus(RegistrationStatus status)
In most situations where the registration is controlled in a strict
workflow you may want to use updateStatusAndDate(RegistrationStatus)
instead.
status
- public void updateStatusAndDate(RegistrationStatus status)
RegistrationStatus
of the registration and manages the registrationDate
at the same time:
now
when the
status
is set to RegistrationStatus.PUBLISHED
.PUBLISHED
state will cause the the registrationDate to be reset to null
.status
- public org.joda.time.DateTime getRegistrationDate()
public void setRegistrationDate(org.joda.time.DateTime registrationDate)
public Institution getInstitution()
public void setInstitution(Institution institution)
public TaxonName getName()
public void setName(TaxonName name)
public User getSubmitter()
public void setSubmitter(User submitter)
public java.util.Set<Registration> getBlockedBy()
public void addBlockedBy(Registration blockingRegistration)
public void removeBlockedBy(Registration blockingRegistration)
public java.util.Set<TypeDesignationBase> getTypeDesignations()
public void setTypeDesignations(java.util.Set<TypeDesignationBase> typeDesignations)
public void addTypeDesignation(TypeDesignationBase designation)
public void removeTypeDesignation(TypeDesignationBase designation)
Copyright © 2007-2020 EDIT. All Rights Reserved.