[opencms-dev] Want to start a action class when installing a new module

Hartmann, Waehrisch & Feykes GmbH hartmann at waehrisch-feykes.de
Tue Dec 2 12:47:01 CET 2003


Unfortunately there is no interface that specifies and describes the methods
for the maintenance class. But all you have to do is to implement this three
methods in a class and specify it in your module's administration with its
full qualified name and wait for their calls. OpenCms calls this methods by
reflection. Again, calling by casting to an interface type would be more
convenient.
I also have to mention that the moduleWasUploaded method was never called in
versions before 5.0 and i didn't test it with 5.0 yet. If you encounter that
it won't work i can tell you what i did as workaround.

Bye,
Stephan

----- Original Message ----- 
From: "Joachim Arrasz" <info at arrasz.de>
To: <opencms-dev at opencms.org>
Sent: Tuesday, December 02, 2003 12:38 PM
Subject: Re: [opencms-dev] Want to start a action class when installing a
new module


> Hi Stephan,
>
> > when you create a module with advanced functionality you can sprecify a
> > maintenance class that can implement 3 methods:
> > public static void moduleWasUploaded(CmsObject cms);
> > public static void moduleParameterWasUpdated(CmsObject cms);
> > public static void moduleWasDeleted(CmsObject cms);The first one is
> > what you are looking for i think.
>
> that`s exactly what i`m looking for. Great!
>
> so i tried to find a abstract superclass in the API, but found anything.
> Is there a Interface or something for usages like this. When not, how can
> i get the CmsObject in this case?
> Bye Achim
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list