4PointSolutions / 4PointSolutions/FluentFormsAPI

Allow XCIs to be provided "by reference" (i.e. by providing a crx or file path)

オープン
#41 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Java
スター
7
フォーク
8
PR マージ指標
30日以内にマージされた PR はありません

説明

The Adobe APIs (FormsService and OutputService) only allow custom XCIs to be provided as Document objects. It would be more flexible if a client could provide a crx or file path instead. That would allow them to store the XCI on the AEM server instead of on the client and would prevent having to repeatedly send the XCI with each request (although the XCI would likely still be re-read on each request).

This would mean changing the `setXci()` method on each of the 4 ArgumentBuilders in the OutputService and the ArgumentBuilder on the FormsService. It would also mean adding code to the `rest-services.client`, `rest-services.server` and `fluentforms` libraries to handle this.

The `setXci()` method would likely have to be overloaded to also accept a `PathOrUrl` object. On the server side, the `PathOrUrl` would be checked for being either a CRX Url or a file path. If it's something else, then an exception would be thrown (unless the implementer wants to implement code to read from any URL). If the `PathOrUrl` validation passes, then the code would read from the specified location.

Implementing the file reading code would be pretty trivial. The CRX reading code may require more work.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。