[opencms-dev] Howto get ResourceBroker instance

Ronald Hötschl ronald.hoetschl at mindmatics.de
Thu Aug 4 12:15:28 CEST 2005


Hi,

am using OpenCMS 6.0. In some older docs there is a method 
"public Vector getResourcesWithProperty(String propertyDefinition) throws
CmsException"
for com.opencms.file.CmsObject.

In the javadocs of version 6.0 there is no method signature of this kind.
So, how can I get a collection of resources with the same property set or 
same property values.
This is obviously the same problem as described below from Jochen Schwoerer.

Regards,
Ronald Hoetschl




> Use the methods on the com.opencms.file.CmsObject:

> public Vector getResourcesWithProperty(String propertyDefinition) throws
> CmsException
> public Vector getResourcesWithProperty(String propertyDefinition, String
> propertyValue, int resourceType)

> Getting a CmsObject is easy. Check out the documentation on how to do this.

> You can't get an instance of the ResourceBroker. 

> Best Regards,
> Alex.

> Alexander Kandzior
> Alkacon Software - The OpenCms Experts
> http://www.alkacon.com



>/ -----Original Message-----
/>/ From: opencms-dev-admin at opencms.org <http://lists.opencms.org/mailman/listinfo/opencms-dev> 
/>/ [mailto:opencms-dev-admin at opencms.org <http://lists.opencms.org/mailman/listinfo/opencms-dev>] On Behalf Of Jochen Schwörer
/>/ Sent: Saturday, July 10, 2004 9:19 AM
/>/ To: opencms-dev at opencms.org <http://lists.opencms.org/mailman/listinfo/opencms-dev>
/>/ Subject: [opencms-dev] Howto get ResourceBroker instance
/>/ 
/>/ 
/>/ Hi,
/>/ 
/>/ I would like to find all resources where a property has a 
/>/ certain value. My current state of research is that I need a 
/>/ ResourceBroker instance. 
/>/ This class has a method "getResourcesWithProperty" which 
/>/ suits my need.
/>/ 
/>/ But how do I get the ResourceBroker instance? The ResourceBroker is 
/>/ created by the CmsRbManager.init(Configurations) method. But 
/>/ this always 
/>/ returns a new ResourceBroker object.
/>/ Is there another way to get the instance currently used by 
/>/ the system? 
/>/ Or is there even another way to retrieve resources for a specific 
/>/ property-value combination?
/>/ 
/>/ regards
/>/ Jochen Schwoerer _______________________________________________
/>/ 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