return;
}
}
}
UserACL userACL = uiForm.getApplicationComponent(UserACL.class);
String ownerId = uiForm.getOwner();
String[] accessPermission = new String[1];
accessPermission[0] = "*:" + ownerId;
String editPermission = userACL.getMakableMT() + ":" + ownerId;
if (PortalConfig.PORTAL_TYPE.equals(uiForm.getOwnerType()))
{
UIPortal uiPortal = Util.getUIPortal();
accessPermission = uiPortal.getAccessPermissions();
editPermission = uiPortal.getEditPermission();
}
UIFormStringInput uiPageName = uiInputSet.getChildById("pageName");
UIFormStringInput uiPageTitle = uiInputSet.getChildById("pageTitle");
Page page = new Page();
page.setOwnerType(uiForm.getOwnerType());
page.setOwnerId(ownerId);
page.setName(uiPageName.getValue());
String title = uiPageTitle.getValue();;
if (title == null || title.trim().length() < 1)
title = page.getName();
page.setTitle(title);
page.setShowMaxWindow(false);
page.setAccessPermissions(accessPermission);
page.setEditPermission(editPermission);
userACL.hasPermission(page);
page.setModifiable(true);
if (page.getChildren() == null)
page.setChildren(new ArrayList<ModelObject>());