Project

General

Profile

« Previous | Next » 

Revision 9384

Added by Jing Tao about 9 years ago

The archived field can't be reset to false if it is true in the systemMetadataChanged method.

View differences:

src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
1532 1532
                                    throw new InvalidRequest("1334", "Can't find the pid "+pid.getValue()+" for archive.");
1533 1533
                                }
1534 1534
                                
1535
                            } else if((newSysMeta.getArchived() == null || newSysMeta.getArchived() == false) && (currentLocalSysMeta.getArchived() != null && currentLocalSysMeta.getArchived() == true )) {
1536
                                throw new InvalidRequest("1334", "The pid "+pid.getValue()+" has been archived and it can't be reset to false.");
1535 1537
                            }
1536 1538
                        }
1537 1539
                    }

Also available in: Unified diff