Removed another final modifier
parent
0d00794ffb
commit
c3e90a27e1
|
|
@ -67,8 +67,24 @@ public abstract class AbstractAssetImExporter<T extends Asset>
|
||||||
assetRepo.save(asset);
|
assetRepo.save(asset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Implementation of
|
||||||
|
* {@link AbstractEntityImExporter#updateExistingEntity(org.libreccm.imexport.Exportable, org.libreccm.imexport.Exportable)}
|
||||||
|
* for {@link Asset}s.
|
||||||
|
*
|
||||||
|
* !!!Warning: ImExporters for assets MUST never override this method.
|
||||||
|
* Instead, they MUST implement
|
||||||
|
* {@link #updateExistingAsset(org.librecms.contentsection.Asset, org.librecms.contentsection.Asset)}.
|
||||||
|
*
|
||||||
|
* Unfortunetly, CDI does not support final methods, therefore we can't make
|
||||||
|
* this method final.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @param existingEntity The existing entity.
|
||||||
|
* @param importedEntity The imported entity.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected final void updateExistingEntity(
|
protected void updateExistingEntity(
|
||||||
final T existingEntity, final T importedEntity
|
final T existingEntity, final T importedEntity
|
||||||
) {
|
) {
|
||||||
if (!Objects.equals(
|
if (!Objects.equals(
|
||||||
|
|
|
||||||
|
|
@ -100,6 +100,21 @@ public abstract class AbstractContentItemImExporter<T extends ContentItem>
|
||||||
itemRepository.save(entity);
|
itemRepository.save(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Implementation of
|
||||||
|
* {@link AbstractEntityImExporter#updateExistingEntity(org.libreccm.imexport.Exportable, org.libreccm.imexport.Exportable)}
|
||||||
|
* for {@link ContentItem}s.
|
||||||
|
*
|
||||||
|
* !!!Warning: Implementations of this abstract class MUST NEVER override
|
||||||
|
* this method. Instead they MUST override
|
||||||
|
* {@link #updateExistingContentItem(org.librecms.contentsection.ContentItem, org.librecms.contentsection.ContentItem)}.
|
||||||
|
*
|
||||||
|
* Unfortunetly, CDI does not support final methods, therefore we can't make
|
||||||
|
* this method final.
|
||||||
|
*
|
||||||
|
* @param existingEntity
|
||||||
|
* @param importedEntity
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void updateExistingEntity(
|
protected void updateExistingEntity(
|
||||||
final T existingEntity,
|
final T existingEntity,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue