Project

General

Profile

« Previous | Next » 

Revision 3c845507

Added by Andreas Kohlbecker over 5 years ago

ref #7995 set and unset registrationDate when registration status changes - doc

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/Registration.java
179 179
    public void setSpecificIdentifier(String specificIdentifier) {this.specificIdentifier = specificIdentifier;}
180 180

  
181 181
    public RegistrationStatus getStatus() {return status;}
182
    /**
183
     * Sets the RegistrationStatus. Also manages the registrationDate by setting it to <code>now</code> when the
184
     * registration is set to {@link RegistrationStatus#PUBLISHED}. Removal of the
185
     * published state will also cause the the registrationDate to be reset to <code>null</code>.
186
     *
187
     * @param status
188
     */
182 189
    public void setStatus(RegistrationStatus status) {
183 190
        if(status != this.status){
184 191
            if(status == RegistrationStatus.PUBLISHED){

Also available in: Unified diff