Package org.alfresco.repo.node.archive
Enum Class RestoreNodeReport.RestoreStatus
java.lang.Object
java.lang.Enum<RestoreNodeReport.RestoreStatus>
org.alfresco.repo.node.archive.RestoreNodeReport.RestoreStatus
- All Implemented Interfaces:
Serializable,Comparable<RestoreNodeReport.RestoreStatus>,Constable
- Enclosing class:
- RestoreNodeReport
Represents the state of a restore process.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionduplicate child name not allowedthere was an integrity failure after the node was restoredthe node to restore was missingthe destination parent of the restore operation was missingthe problem was not well-recognizedthe permissions required for either reading or writing were invalidthe operation was a success -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the enum constant of this class with the specified name.static RestoreNodeReport.RestoreStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
the operation was a success -
FAILURE_INVALID_ARCHIVE_NODE
the node to restore was missing -
FAILURE_INVALID_PARENT
the destination parent of the restore operation was missing -
FAILURE_PERMISSION
the permissions required for either reading or writing were invalid -
FAILURE_INTEGRITY
there was an integrity failure after the node was restored -
FAILURE_DUPLICATE_CHILD_NODE_NAME
duplicate child name not allowed -
FAILURE_OTHER
the problem was not well-recognized
-
-
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
-
isSuccess
public boolean isSuccess()- Returns:
- Returns true if the status represents a successful state
-