Fórum
Get structure id by passing structure name in 6.2
Mayur Patel, modificado 7 Anos atrás.
Get structure id by passing structure name in 6.2
Expert Postagens: 358 Data de Entrada: 17/11/10 Postagens Recentes
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 !!
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 !!
Kailash Yadav, modificado 7 Anos atrás.
RE: Get structure id by passing structure name in 6.2 (Resposta)
Regular Member Postagens: 211 Data de Entrada: 18/10/11 Postagens Recentes
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);
Mayur Patel, modificado 7 Anos atrás.
RE: Get structure id by passing structure name in 6.2
Expert Postagens: 358 Data de Entrada: 17/11/10 Postagens Recentes
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 !
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 !