001
014
015 package com.liferay.portal.verify;
016
017 import com.liferay.portal.kernel.util.StringPool;
018 import com.liferay.portal.model.Layout;
019 import com.liferay.portal.service.LayoutLocalServiceUtil;
020
021 import java.util.List;
022
023
026 public class VerifyLayout extends VerifyProcess {
027
028 @Override
029 protected void doVerify() throws Exception {
030 List<Layout> layouts =
031 LayoutLocalServiceUtil.getNullFriendlyURLLayouts();
032
033 for (Layout layout : layouts) {
034 String friendlyURL = StringPool.SLASH + layout.getLayoutId();
035
036 LayoutLocalServiceUtil.updateFriendlyURL(
037 layout.getPlid(), friendlyURL);
038 }
039 }
040
041 }