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

Aperta
#41 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Ambito
api, backend

Direzione di ricerca

La issue menziona la modifica del metodo setXci() in ArgumentBuilders tra OutputService e FormsService e l’aggiornamento delle librerie rest-services.client, rest-services.server e fluentforms. Inizia individuando queste classi ArgumentBuilder per comprendere l’implementazione attuale. Esamina come gli oggetti PathOrUrl vengono gestiti altrove nella codebase per la lettura da CRX o da percorsi di file. L’obiettivo è consentire l’input XCI tramite riferimento, quindi controlla la logica esistente di convalida e lettura alla ricerca di pattern simili.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

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.

Lingua principale
Java
Stelle
7
Fork
8
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di 4PointSolutions/FluentFormsAPI

Tutte le issue di 4PointSolutions/FluentFormsAPI

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.