<commit_before>package org.orienteer.core.component;

import com.orientechnologies.orient.core.record.impl.ODocument;
import org.apache.wicket.Component;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.event.IEvent;
import org.apache.wicket.markup.html.panel.GenericPanel;
import org.apache.wicket.markup.repeater.RepeatingView;
import org.orienteer.core.component.property.DisplayMode;
import org.orienteer.core.event.SwitchDashboardTabEvent;
import org.orienteer.core.method.MethodPlace;
import org.orienteer.core.method.MethodsView;
import org.orienteer.core.widget.IDashboardContainer;
import org.orienteer.core.widget.command.ConfigureDashboardCommand;
import org.orienteer.core.widget.command.KeepUnsavedDashboardCommand;
import ru.ydn.wicket.wicketorientdb.model.ODocumentModel;

import java.util.Optional;

/**
 * 
 * Default breadcrumb menu
 *
 */
public class DefaultPageHeaderMenu extends GenericPanel<ODocument> {
	private static final long serialVersionUID = 1L;
	private Component configure;
	private Component close;
	private RepeatingView commands;
	private MethodsView methods;
<commit_msg>Adjusted permissions for show dashboard configure actions<commit_after>package org.orienteer.core.component;

import com.orientechnologies.orient.core.record.impl.ODocument;
import org.apache.wicket.Component;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.event.IEvent;
import org.apache.wicket.markup.html.panel.GenericPanel;
import org.apache.wicket.markup.repeater.RepeatingView;
import org.orienteer.core.component.property.DisplayMode;
import org.orienteer.core.event.SwitchDashboardTabEvent;
import org.orienteer.core.method.MethodPlace;
import org.orienteer.core.method.MethodsView;
import org.orienteer.core.module.OWidgetsModule;
import org.orienteer.core.widget.IDashboardContainer;
import org.orienteer.core.widget.command.ConfigureDashboardCommand;
import org.orienteer.core.widget.command.KeepUnsavedDashboardCommand;
import ru.ydn.wicket.wicketorientdb.model.ODocumentModel;
import ru.ydn.wicket.wicketorientdb.security.OSecurityHelper;
import ru.ydn.wicket.wicketorientdb.security.OrientPermission;
import ru.ydn.wicket.wicketorientdb.security.RequiredOrientResource;

import java.util.Optional;

/**
 * 
 * Default breadcrumb menu
 *
 */
@RequiredOrientResource(value = OSecurityHelper.CLASS, specific = OWidgetsModule.OCLASS_DASHBOARD, permissions = OrientPermission.UPDATE)
public class DefaultPageHeaderMenu extends GenericPanel<ODocument> {
	private static final long serialVersionUID = 1L;
	private Component configure;
	private Component close;
	private RepeatingView commands;
	private MethodsView methods;

{'fraction_non_alphanumeric': 0.09067261241174285, 'fraction_numerical': 0.0007432181345224824, 'mean_word_length': 6.825581395348837, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6016298', 'n_tokens_mistral': 824, 'n_tokens_neox': 809, 'n_words': 136}