blob: 5e599948e2c501e08676aadcb3fbbbb9921440dc [file] [log] [blame]
/**
*
* Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation
*/
package org.eclipse.osbp.ui.api.customfields;
public interface IBlobEvent {
final String STARTED_BLOB_UPLOAD = "startedblobupload"; //$NON-NLS-1$
final String STOPPED_BLOB_UPLOAD = "stoppedblobupload"; //$NON-NLS-1$
/**
* Provides a boolean that indicates if a blob was successfully uploaded and
* persisted into the database.
*
* @return boolean indicating a successfully uploaded and persisted blob
* into the database
*/
boolean isUploadSuccessful();
/**
* Provides the uuid of the successfully uploaded and persisted blob into
* the database or {@code null} otherwise.
*
* @return uuid of the successfully uploaded and persisted blob into the
* database or {@code null} otherwise.
*/
String getUploadedBlobId();
/**
* Provides the error message that indicates the reason of an unsuccessfully
* attempt of uploading and persisting a blob into the database.
*
* @return error message indicating why an uploading and persisting of a
* blob into the database was unsuccessfully.
*/
String getErrorMessage();
/**
* @return the just uploaded filename to check for the right component when showing image
*/
String getUploadedFile();
}