@Managed("{page-name}")
@ManagedRole("administrators")
@ManagedOperation(name = OperationNames.UPDATE_RESOURCE, description = "Updates a page of the portal")
public ModelObject updatePage(@MappedPath("page-name") String name, @ManagedContext ModelObject pageModel) {
// Retrieve page from api, ensuring it exists
PageId pageId = new PageId(siteId, name);
Page page = portal.getPage(pageId);
if (page == null) {
throw notFound("Could not update page", pageId);
}
boolean changed = false;