<commit_before>/*
 * JBoss, Home of Professional Open Source
 * Copyright 2012 Red Hat Inc. and/or its affiliates and other contributors
 * as indicated by the @authors tag. All rights reserved.
 */
package org.searchisko.api.rest;

import javax.annotation.PostConstruct;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.ws.rs.Path;

import org.searchisko.api.annotations.security.ProviderAllowed;
import org.searchisko.api.service.ConfigService;

/**
 * Config REST API
 *
 * @author <NAME> (velias at redhat dot com)
 *
 */
@RequestScoped
@Path("/config")
@ProviderAllowed(superProviderOnly = true)
public class ConfigRestService extends RestEntityServiceBase {

	@Inject
	protected ConfigService configService;

	@PostConstruct
	public void init() {
		setEntityService(configService);
	}

}<commit_msg>ConfigRestService refactored to use @RoleAllowed, #76<commit_after>/*
 * JBoss, Home of Professional Open Source
 * Copyright 2012 Red Hat Inc. and/or its affiliates and other contributors
 * as indicated by the @authors tag. All rights reserved.
 */
package org.searchisko.api.rest;

import org.searchisko.api.security.Role;
import org.searchisko.api.service.ConfigService;

import javax.annotation.PostConstruct;
import javax.annotation.security.RolesAllowed;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.ws.rs.Path;

/**
 * Config REST API
 *
 * @author <NAME> (velias at redhat dot com)
 *
 */
@RequestScoped
@Path("/config")
@RolesAllowed(Role.ADMIN)
public class ConfigRestService extends RestEntityServiceBase {

	@Inject
	protected ConfigService configService;

	@PostConstruct
	public void init() {
		setEntityService(configService);
	}

}
{'fraction_non_alphanumeric': 0.09798270893371758, 'fraction_numerical': 0.005763688760806916, 'mean_word_length': 5.177935943060498, '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': '1217868', 'n_tokens_mistral': 524, 'n_tokens_neox': 512, 'n_words': 144}