Package org.alfresco.repo.node.archive
Enum RestoreNodeReport.RestoreStatus
- java.lang.Object
-
- java.lang.Enum<RestoreNodeReport.RestoreStatus>
-
- org.alfresco.repo.node.archive.RestoreNodeReport.RestoreStatus
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RestoreNodeReport.RestoreStatus>
- Enclosing class:
- RestoreNodeReport
public static enum RestoreNodeReport.RestoreStatus extends java.lang.Enum<RestoreNodeReport.RestoreStatus>
Represents the state of a restore process.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILURE_DUPLICATE_CHILD_NODE_NAMEduplicate child name not allowedFAILURE_INTEGRITYthere was an integrity failure after the node was restoredFAILURE_INVALID_ARCHIVE_NODEthe node to restore was missingFAILURE_INVALID_PARENTthe destination parent of the restore operation was missingFAILURE_OTHERthe problem was not well-recognizedFAILURE_PERMISSIONthe permissions required for either reading or writing were invalidSUCCESSthe operation was a success
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSuccess()static RestoreNodeReport.RestoreStatusvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RestoreNodeReport.RestoreStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final RestoreNodeReport.RestoreStatus SUCCESS
the operation was a success
-
FAILURE_INVALID_ARCHIVE_NODE
public static final RestoreNodeReport.RestoreStatus FAILURE_INVALID_ARCHIVE_NODE
the node to restore was missing
-
FAILURE_INVALID_PARENT
public static final RestoreNodeReport.RestoreStatus FAILURE_INVALID_PARENT
the destination parent of the restore operation was missing
-
FAILURE_PERMISSION
public static final RestoreNodeReport.RestoreStatus FAILURE_PERMISSION
the permissions required for either reading or writing were invalid
-
FAILURE_INTEGRITY
public static final RestoreNodeReport.RestoreStatus FAILURE_INTEGRITY
there was an integrity failure after the node was restored
-
FAILURE_DUPLICATE_CHILD_NODE_NAME
public static final RestoreNodeReport.RestoreStatus FAILURE_DUPLICATE_CHILD_NODE_NAME
duplicate child name not allowed
-
FAILURE_OTHER
public static final RestoreNodeReport.RestoreStatus FAILURE_OTHER
the problem was not well-recognized
-
-
Method Detail
-
values
public static RestoreNodeReport.RestoreStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RestoreNodeReport.RestoreStatus c : RestoreNodeReport.RestoreStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RestoreNodeReport.RestoreStatus valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
isSuccess
public boolean isSuccess()
- Returns:
- Returns true if the status represents a successful state
-
-