[MNT-24555] Set download node name on node creation (#2901)

* [MNT-24555] Set download node name on node creation

* [MNT-24555] PMD scan changes
This commit is contained in:
Tiago Salvado
2024-09-19 09:28:52 +01:00
committed by GitHub
parent b7642b5813
commit 1c1c9704a1
7 changed files with 84 additions and 9 deletions

View File

@@ -238,6 +238,17 @@ public interface CustomModelService
*/
public NodeRef createDownloadNode(String modelName, boolean withAssociatedForm);
/**
* Creates a downloadable archive file containing the custom model file and
* if specified, its associated Share extension module file.
*
* @param modelName the model name to be exported
* @param withAssociatedForm whether Share extension module file should be
* included or not
* @return reference to the node which will contain the archive file
*/
NodeRef createDownloadNode(String modelName, boolean withAssociatedForm, String downloadNodeName);
/**
* Compiles the {@link M2Model}.
*