Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] Overriding email templates used by UserEmailUtil

Javier,
email templates where not planned to be overwritten, they are kept in the
server bundles. You can of cause override them there
(org.eclipse.orion.server.useradmin/emails), however it would be better if
you open a bug, and we would add a server preference where you would choose
a location of files containing email templates.

best regards,
Malgorzata Janczarska
Software Developer
IBM SWG Lab. Cracow. Poland

IBM Polska Sp. z o.o. oddział w Krakowie
ul. Armii Krajowej 18,
30-150 Kraków

NIP: 526-030-07-24
Sąd Rejonowy dla m.st. Warszawy, XII Wydział Gospodarczy KRS
KRS 0000012941, Kapitał Zakładowy: 33.000.000 PLN



From:	Javier H Pedemonte <pedemont@xxxxxxxxxx>
To:	"Orion-dev mailing list" <orion-dev@xxxxxxxxxxx>,
Date:	2013-02-26 22:04
Subject:	[orion-dev] Overriding email templates used by UserEmailUtil
Sent by:	orion-dev-bounces@xxxxxxxxxxx



Is there any way to override which text templates are loaded by
UserEmailUtil.java?

I'm building an app [1] on top of Orion 1.0/2.0 and in an attempt to avoid
code duplication, I'm trying to make use of as much of the Orion server
code as I can.

In the past (for example), we've easily overridden the LoginWindow.*
resources: since they are loaded by URLs, we could add
"org.eclipse.equinox.http.registry.resources" extension points for those
URLs pointing to resources in our plugins instead.

However, the email templates are loaded thusly:

     UserAdminActivator.getDefault().getBundleContext().getBundle
().getEntry(fileName)

Looks like those are pulled directly from the
org.eclipse.orion.server.useradmin bundle and doesn't allow other plugins
to override those.  Is that correct?  Is there some OSGi/servlet magic that
might allow me to load different template files?


[1] maqetta.org


Javier Pedemonte_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/orion-dev




Back to the top