link.setParent(parentFolder);
newLink = true;
}
// enable permissions/constraints
LinkImpl linkImpl = (LinkImpl)link;
linkImpl.setPermissionsEnabled(handlerFactory.getPermissionsEnabled());
linkImpl.setConstraintsEnabled(handlerFactory.getConstraintsEnabled());
// check for edit access
link.checkAccess(SecuredResource.EDIT_ACTION);
// update link