Class AddOrUpdateResourceHelper.ResourceOperationResult
java.lang.Object
org.ametys.plugins.explorer.resources.actions.AddOrUpdateResourceHelper.ResourceOperationResult
- Enclosing class:
- AddOrUpdateResourceHelper
Class representing the result of a resource operation.
-
Constructor Summary
ModifierConstructorDescriptionprotected
ResourceOperationResult
(String errorMessage) constructor in case of an errorprotected
ResourceOperationResult
(List<Resource> resources) constructor in case of a successful unzip operationprotected
ResourceOperationResult
(Resource resource) constructor in case of a successful operation -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the errorMessageRetrieves the resource Note thatgetResources()
should be used in case of an unzip.Retrieves the list of resources, in case of an unzip.boolean
Retrieves the successboolean
isUnzip()
Retrieves the unzip
-
Constructor Details
-
ResourceOperationResult
constructor in case of a successful operation- Parameters:
resource
- The resource of this operation
-
ResourceOperationResult
constructor in case of a successful unzip operation- Parameters:
resources
- The list of resource for this operation
-
ResourceOperationResult
constructor in case of an error- Parameters:
errorMessage
- The error message.
-
-
Method Details
-
getResource
Retrieves the resource Note thatgetResources()
should be used in case of an unzip.- Returns:
- the resource
-
getResources
Retrieves the list of resources, in case of an unzip.- Returns:
- the resource
-
isUnzip
Retrieves the unzip- Returns:
- the unzip
-
isSuccess
Retrieves the success- Returns:
- the success
-
getErrorMessage
Retrieves the errorMessage- Returns:
- the errorMessage
-