[opencms-dev] Retrieve data from CmsEvent
Uhlig, Roman Knuepfer Verlag
roman.uhlig at knve.de
Thu Oct 12 15:18:33 CEST 2006
Hi,
what would be the right way to retrieve the data related to a CmsEvent,
let's say the resource name of a deleted resource in case of a
EVENT_RESOURCE_DELETED event?
CmsEvent.getData() returns a map, but it has only one key ("resources"):
resources = [[org.opencms.file.CmsResource, path:
/sites/default/test/bla, structure id
86ff16fb-59ec-11db-bc78-000c29e71d53, resource id:
86ff16fc-59ec-11db-bc78-000c29e71d53, type id: 1, folder: false, flags:
0, project: 4, state: 2, date created: Thu Oct 12 12:23:54 GMT 2006,
user created: d12bc550-4199-11db-a4a5-000c29e71d53, date lastmodified:
Thu Oct 12 12:23:54 GMT 2006, user lastmodified:
d12bc550-4199-11db-a4a5-000c29e71d53, date released: Thu Jan 01 00:00:00
GMT 1970, date expired: Sun Aug 17 07:12:55 GMT 292278994, size: 0
sibling count: 1]]
I also can't find the I_CmsEventListener.KEY_* values in this list. Am I
doing something wrong? Any help would be very appreciated.
Thanks,
Roman
More information about the opencms-dev
mailing list