Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fabrizzio-dotCMS committed Apr 24, 2024
1 parent 0762e3e commit b303600
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1651,7 +1651,7 @@ private JSONArray getAvailableWorkflowActionsListingJson(final User currentUser,

@CloseDB
public ArrayList<String[]> doSearchGlossaryTerm(String valueToComplete, String language) throws Exception {
final int limit = Config.getIntProperty("glossary.term.max.limit",15);
f final int limit = Config.getIntProperty("glossary.term.max.limit",15);
ArrayList<String[]> list = new ArrayList<>(limit);
final User systemUser = APILocator.systemUser();
final long languageId = Long.parseLong(language);
Expand Down Expand Up @@ -1688,6 +1688,7 @@ public ArrayList<String[]> doSearchGlossaryTerm(String valueToComplete, String l
return list;
}

@Deprecated(since = "24.04", forRemoval = true)
private List<LanguageKey> retrieveProperties(long langId) throws Exception {
Language lang = langAPI.getLanguage(langId);
return langAPI.getLanguageKeys(lang);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
/**
* @author alex
*/
@Deprecated(since = "24.04", forRemoval = true)
public class EditLanguageKeysAction extends DotPortletAction {

private LanguageAPI langAPI = APILocator.getLanguageAPI();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

import javax.servlet.http.HttpServletRequest;

@Deprecated(since = "24.04", forRemoval = true)
public class LanguageAjax {

public LanguageAPI langAPI = APILocator.getLanguageAPI();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,15 @@ public interface LanguageAPI {
* @param lang
* @return
*/
@Deprecated(since = "24.04", forRemoval = true)
public List<LanguageKey> getLanguageKeys(Language lang);

/**
* Retrieves the keys for the given language and specific for the given country
* @param langCode
* @return
*/
@Deprecated(since = "24.04", forRemoval = true)
public List<LanguageKey> getLanguageKeys(String langCode);

/**
Expand All @@ -138,12 +140,14 @@ public interface LanguageAPI {
* @param countryCode
* @return
*/
@Deprecated(since = "24.04", forRemoval = true)
public List<LanguageKey> getLanguageKeys(String langCode, String countryCode);

/**
*
* @param lang
*/
@Deprecated(since = "24.04", forRemoval = true)
public void createLanguageFiles(Language lang);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -469,12 +469,14 @@ private String getGlobalVariablesPath () {
return ret+File.separator;
}

@Deprecated(since = "24.04", forRemoval = true)
@Override
protected List<LanguageKey> getLanguageKeys(String langCode) {

return getLanguageKeys(langCode, null);
}

@Deprecated(since = "24.04", forRemoval = true)
@Override
protected List<LanguageKey> getLanguageKeys(String langCode, String countryCode) {

Expand Down Expand Up @@ -572,6 +574,7 @@ protected List<LanguageKey> getLanguageKeys(String langCode, String countryCode)
return list;
}

@Deprecated(since = "24.04", forRemoval = true)
@Override
protected void createLanguageFiles(final Language lang) {
String langCodeAndCountryCode = lang.getLanguageCode() + "_" + lang.getCountryCode();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import com.dotmarketing.portlets.languagesmanager.model.LanguageKey;

@Deprecated(since = "24.04", forRemoval = true)
public class LanguageKeyComparator implements Comparator<LanguageKey> {

public int compare(LanguageKey o1, LanguageKey o2) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.io.Serializable;

@Deprecated(since = "24.04", forRemoval = true)
public class LanguageKey implements Serializable, Comparable<LanguageKey> {

/**
Expand Down

0 comments on commit b303600

Please sign in to comment.