[opencms-dev] Identifying siblings programmatically

Ludwig Hunecke ludwig.hunecke at googlemail.com
Fri Apr 17 18:46:27 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi mailing-list,

I've got a question about how to identify siblings programmatically.

Since there is no method like "isSibling()" in CmsResource, I  
currently identify if a resource R is a sibling with the following  
rules:

1. R.getSiblingCount() > 1 AND
2. R.structureId does _not_ equal R.resourceId

Do you think this is always valid?


Thanks a lot and have a nice weekend,
Ludwig

- --
Ludwig Hunecke
Kramerst. 18
D-38122 Braunschweig
Tel.: +49 (151) 14818950
GnuPG Key-ID: 8CEAB267



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (Darwin)

iEYEARECAAYFAknosmoACgkQ3Nhv0YzqsmclGgCg4qOnsIbkcLksBUfW145YFqI0
NOcAoOv5YwguZOH3LMf6sN0dU+EAA/He
=UNYO
-----END PGP SIGNATURE-----



More information about the opencms-dev mailing list