Forums de discussion

Get structure id by passing structure name in 6.2

thumbnail
Mayur Patel, modifié il y a 7 années.

Get structure id by passing structure name in 6.2

Expert Publications: 358 Date d'inscription: 17/11/10 Publications récentes
Hi All,

Do we have any method available to fetch structure id by structure name in Liferay 6.2 version?

Any help would be much appreciated !

Thanks !!
thumbnail
Kailash Yadav, modifié il y a 7 années.

RE: Get structure id by passing structure name in 6.2 (Réponse)

Regular Member Publications: 211 Date d'inscription: 18/10/11 Publications récentes
No, name column in ddmstructure table is not unique and it store data as xml. You can get list of structure by groupId, name and descriptions:

DDMStructureLocalServiceUtil.getStructure( long groupId, java.lang.String name, java.lang.String description);
thumbnail
Mayur Patel, modifié il y a 7 années.

RE: Get structure id by passing structure name in 6.2

Expert Publications: 358 Date d'inscription: 17/11/10 Publications récentes
Thanks Kailash !

Right there is no such method where we can get the structure id directly from structure name. so i need to iterate all structures to get the specific structure id.

Thanks !