Last active
August 29, 2015 14:02
-
-
Save CorneAussems/158f6ca53143307622aa to your computer and use it in GitHub Desktop.
Groovy Liferay 6.1 get All Layouts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.liferay.portal.service.*; | |
import com.liferay.portlet.documentlibrary.model.*; | |
import com.liferay.portlet.documentlibrary.service.*; | |
import com.liferay.portlet.documentlibrary.service.persistence.*; | |
try{ | |
companyId = 10154 | |
groupId = 193310 | |
def start = -1 | |
def end = -1 | |
def privateLayout = false; | |
def layouts = LayoutLocalServiceUtil.getLayouts(groupId, privateLayout ) | |
println('layouts found='+layouts.size()) | |
for(i=0;i<layouts.size();i++){ | |
def layout = layouts[i]; | |
println( 'layout uuid='+layout.getUuid()+' url='+layout.getFriendlyURL() + ' name='+layout.getName() ); | |
} | |
} catch (Exception e) { | |
println(e) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment