|
|
|
@ -35,6 +35,7 @@ import org.apache.commons.lang.StringUtils;
|
|
|
|
|
import org.apache.commons.logging.Log;
|
|
|
|
|
import org.apache.commons.logging.LogFactory;
|
|
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
|
import java.io.InputStream;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
@ -136,4 +137,11 @@ public class AppmDataHandlerImpl implements AppmDataHandler {
|
|
|
|
|
throw new ApplicationManagementException(msg, e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean isArtifactExists(String hashVal, String folderName, String fileName, int tenantId) throws BadRequestException {
|
|
|
|
|
validateArtifactDownloadRequest(tenantId, hashVal, folderName, fileName);
|
|
|
|
|
return new File(APIUtil.
|
|
|
|
|
getApplicationStorageManager().getAbsolutePathOfFile(hashVal, folderName, fileName, tenantId)).exists();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|