How know if a group belongs to specific LayoutSetPrototype

thumbnail
Joaquin Cabal, modified 5 Years ago. Regular Member Posts: 106 Join Date: 9/7/09 Recent Posts
Hi! I need to know if a group belongs to specific LayoutSetPrototype.  I saw a relation first from a group with a LayoutSet. But after that I can not find a specific relation between LayoutSetPrototype and LayoutSet. I saw that use uuid, but this field is only used in group site type, not in layoutSetPrototype group type. In resume I need to find is a specific group belongs to a LayoutSetPrototype. Thanks! 
thumbnail
Mohammed Yasin, modified 5 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts
Hi ,You can get the LayoutSetProtype  from group by 
      LayoutSet layoutSet =  group.getPrivateLayoutSet() or  group.getPublicLayoutSet();
      boolean  hasLayoutSetPrototype =    layoutSet.getLayoutSetPrototypeLinkEnabled();
       long layoutSetPrototypId =   layoutSet.getLayoutSetPrototypeId();
thumbnail
Joaquin Cabal, modified 5 Years ago. Regular Member Posts: 106 Join Date: 9/7/09 Recent Posts
Thanks Mohammed! I will try it.