Foros de discusión

Get structure id by passing structure name in 6.2

thumbnail
Mayur Patel, modificado hace 7 años.

Get structure id by passing structure name in 6.2

Expert Mensajes: 358 Fecha de incorporación: 17/11/10 Mensajes recientes
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, modificado hace 7 años.

RE: Get structure id by passing structure name in 6.2 (Respuesta)

Regular Member Mensajes: 211 Fecha de incorporación: 18/10/11 Mensajes recientes
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, modificado hace 7 años.

RE: Get structure id by passing structure name in 6.2

Expert Mensajes: 358 Fecha de incorporación: 17/11/10 Mensajes recientes
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 !