Esta conversa foi bloqueada devido à inatividade. Crie uma nova publicação.
Nível 1
Nível 2
Faça login na Comunidade
Faça logon para exibir todas as medalhas
Esta conversa foi bloqueada devido à inatividade. Crie uma nova publicação.
We are developing a OSGI module that uses a SlingRequest as input.
We have no issues with the input. These are uploaded documents by authenticated users.
The module will use various document services to generate a new document.
Questions.
Is there any sample document/website on how these documents can be stored in the JCR, to be available for the user for download?
How do we generate a URL that we can return through the SlingResponse for the user to use as a link access the document?
Solucionado! Ir para a Solução.
Hi @Eric_Stricker,
So if I've understood, you want to:
If that's the case, then the simplest solution I can think of is to use the DAM 🙂 You can run your business logic to create a document (a PDF for example) and then store it as a DAM asset using the AssetManager API (javadoc here). Once you have stored the asset, you can simply send a link pointing to its location in the DAM. If you want to share the asset with non-authorized users, you can use the Asset Link Sharing feature.
Does all of that answer your requirements?
Hi @Eric_Stricker,
So if I've understood, you want to:
If that's the case, then the simplest solution I can think of is to use the DAM 🙂 You can run your business logic to create a document (a PDF for example) and then store it as a DAM asset using the AssetManager API (javadoc here). Once you have stored the asset, you can simply send a link pointing to its location in the DAM. If you want to share the asset with non-authorized users, you can use the Asset Link Sharing feature.
Does all of that answer your requirements?
Visualizações
respostas
Total de curtidas
Visualizações
respostas
Total de curtidas
In the end I used:
AssetManager to store the asset in the JCR
Externalizer to get the proper URL for the asset
AccessControlManager to assign read access to the user for the asset
job "ScheduledTask implements Runnable" task to cleanup the JCR after a certain time to make sure the JCR is kept clean
Visualizações
respostas
Total de curtidas
Visualizações
respostas
Total de curtidas
Visualizações
Curtida
respostas
Visualizações
Curtida
respostas
Visualizações
Curtida
respostas
Visualizações
Curtida
respostas