Enum Class CurationCommitConflictException.Reason
java.lang.Object
java.lang.Enum<CurationCommitConflictException.Reason>
ubic.gemma.rest.util.CurationCommitConflictException.Reason
- All Implemented Interfaces:
Serializable, Comparable<CurationCommitConflictException.Reason>, Constable
- Enclosing class:
CurationCommitConflictException
public static enum CurationCommitConflictException.Reason
extends Enum<CurationCommitConflictException.Reason>
What the client should do about it. The names are the wire contract: they appear verbatim as
errors[0].reason.- Author:
- gemma
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA write was attempted while someone else holds the curation lock.A paper the commit attaches stands rejected for this dataset by a source the commit does not outrank.The change would delete differential-expression analyses or strand a subset.The dataset moved since the draft's baseline.The write refused this as a conflict without saying which kind — e.g. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STALE_BASELINE
The dataset moved since the draft's baseline. Re-read it, rebuild the diff, commit again. -
REQUIRES_FORCE
The change would delete differential-expression analyses or strand a subset. Route it throughPOST /datasets/{id}/curation/sign, which is where a change with consequences belongs, or — for a caller that is not signing — consent with?force=true(admin). -
LOCK_REQUIRED
A write was attempted while someone else holds the curation lock.Two strengths share this code. Sign-off requires the caller to HOLD the lock, so it is refused when nobody holds it too. Every other write — commit, restore — is refused only when a DIFFERENT identity holds it; an unheld dataset writes as it always did. The message names the holder either way.
-
PUBLICATION_REJECTED
A paper the commit attaches stands rejected for this dataset by a source the commit does not outrank. -
UNSPECIFIED
The write refused this as a conflict without saying which kind — e.g. a short name already in use.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-