Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed the lost key issue #2890

Merged
merged 3 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/*
* Copyright 2019-2022 VMware, Inc.
* Copyright 2019-2023 VMware, Inc.
* SPDX-License-Identifier: EPL-2.0
*/
package com.vmware.l10n.source.dao;

import java.io.IOException;
import java.util.List;

import com.fasterxml.jackson.core.JsonProcessingException;
Expand All @@ -20,28 +21,22 @@
public interface SourceDao {
/**
* Get a component's source strings by reading from english resource file.
*
*
* @param singleComponentDTO
* the object which wraps the base information of a component
* @param filePath
* the location where the resource file is placed, can be
* configed in spring config file
* @return the content of the resource file
*/
public String getFromBundle(SingleComponentDTO singleComponentDTO);

/**
* Write source strings to local resource file.
*
* @param singleComponentDTO
*
* @param componentMessagesDTO
* the object which wraps the content of a component
* @param basepath
* the location where the resource file is placed, can be
* configed in spring config file
* @return update result, true represents success, false represents failure.
* @throws JsonProcessingException
* @throws JsonProcessingException
*/
public boolean updateToBundle(ComponentMessagesDTO componentMessagesDTO) throws JsonProcessingException;
public boolean updateToBundle(ComponentMessagesDTO componentMessagesDTO) throws IOException;

/**
* get the update records from bundle
Expand Down
Loading
Loading