[opencms-dev] why are the default collectors protected access?
Mario Jäger
m.jaeger at alkacon.com
Mon Jun 22 14:58:46 CEST 2009
Hello Tim,
if you want to use the default resource collector org.opencms.file.collectors.CmsDefaultResourceCollector.getAllInFolder
you have to use the following code in your Jsp:
<cms:contentload collector="allInFolder" param="{VFS URI}|{Resource type}|{Count}">
...
</cms:contentload>
The param attributes you still have to complete with your required values.
Analog thereto you can use all the default resource collectors in OpenCms. Only if
these default resource collectors are not sufficient for your requirements it is
necessary to write your own resource collector. To write your own resource
collector you have to implement the interface org.opencms.file.collectors.I_CmsResourceCollector.
--
Kind Regards,
Mario.
-------------------
Mario Jäger
Alkacon Software GmbH - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
Visit OpenCms Days 2009 Conference and Expo
June 15 to June 16 2009 in Cologne, Germany
http://www.opencms-days.org
Tim Daschner schrieb:
>
> Hello Everyone,
>
> I just learnt and noticed (the very hard way) that the default
> recource collectors such as
> org.opencms.file.collectors.CmsDefaultResourceCollector.
> getAllInFolder are all protected access… why? Why were they made
> protected and not public so that everyone can use it? Is it a
> mechanism to force developers to write their own collectors?
>
> --
>
> Tim
>
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list