pageSecurity.setParent(parentFolder);
newPageSecurity = true;
}
// enable permissions/constraints
PageSecurityImpl pageSecurityImpl = (PageSecurityImpl)pageSecurity;
pageSecurityImpl.setPermissionsEnabled(handlerFactory.getPermissionsEnabled());
pageSecurityImpl.setConstraintsEnabled(handlerFactory.getConstraintsEnabled());
// check for edit access
pageSecurity.checkAccess(JetspeedActions.EDIT);
// update pageSecurity