Removal of final modifier from a method since that prevents CDI from
proxying the bean.deploy_packages_to_gitea
parent
be6abc17cb
commit
0d00794ffb
|
|
@ -246,7 +246,7 @@ public abstract class AbstractEntityImExporter<T extends Exportable> {
|
|||
/**
|
||||
* Reloads the entity to export. Entities become detacted for several
|
||||
* reasons before they are passed to the null null null null null null null
|
||||
* null null null null null null {@link #exportEntity(org.libreccm.imexport.Exportable) method. The
|
||||
* null null null null null null null {@link #exportEntity(org.libreccm.imexport.Exportable) method. The
|
||||
* implementation of this should reload the passed entity.
|
||||
*
|
||||
* @param entity The entity to reload.
|
||||
|
|
@ -255,8 +255,17 @@ public abstract class AbstractEntityImExporter<T extends Exportable> {
|
|||
*/
|
||||
protected abstract T reloadEntity(final T entity);
|
||||
|
||||
|
||||
protected final void syncLocalizedStrings(
|
||||
/**
|
||||
* A helper method to sync a localized string property.
|
||||
*
|
||||
* !!!Warning: CDI does not allow final methods to forbid overriding a
|
||||
* method. Nevertheless this method should <strong>never</strong> be
|
||||
* overriden by a child class!!!
|
||||
*
|
||||
* @param source The source property.
|
||||
* @param target The target property.
|
||||
*/
|
||||
protected void syncLocalizedStrings(
|
||||
final LocalizedString source,
|
||||
final LocalizedString target
|
||||
) {
|
||||
|
|
@ -274,11 +283,11 @@ public abstract class AbstractEntityImExporter<T extends Exportable> {
|
|||
.filter(locale -> !source.getAvailableLocales().contains(locale))
|
||||
.collect(Collectors.toSet());
|
||||
|
||||
for(final Locale toRemove : localesToRemove) {
|
||||
for (final Locale toRemove : localesToRemove) {
|
||||
target.removeValue(toRemove);
|
||||
}
|
||||
|
||||
for(final Locale toAdd : localesToAdd) {
|
||||
for (final Locale toAdd : localesToAdd) {
|
||||
target.putValue(toAdd, source.getValue(toAdd));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue