<commit_before>/*
 * Copyright 2016 EPAM Systems
 * 
 * 
 * This file is part of EPAM Report Portal.
 * https://github.com/reportportal/commons-dao
 * 
 * Report Portal is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Report Portal is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Report Portal.  If not, see <http://www.gnu.org/licenses/>.
 */ 
 
package com.epam.ta.reportportal.database.entity.sharing;

import java.io.Serializable;
import java.security.Principal;
import java.security.acl.NotOwnerException;

import org.springframework.data.domain.Sort;
import org.springframework.data.domain.Sort.Direction;
import org.springframework.data.domain.Sort.Order;

import com.epam.ta.reportportal.database.entity.sharing.AclEntry;
import com.epam.ta.reportportal.database.entity.sharing.Acl;


/**
 * Define base functionality for entries which can be shared.
 * 
 * @author Aliaksei_Makayed
 *
 */
public class Shareable implements Serializable {
	
	public static final String ID = "_id";
	public static final String ACL = "acl";
	public static final String OWNER = "acl.ownerUserId";
	public static final String DESCRIPTION = "description";

	public static final Sort NAME_OWNER_SORT = new Sort(new Order(Direction.ASC, "name"), new Order(Direction.ASC, Shareable.OWNER));

	private Acl acl;

	private String description;

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
<commit_msg>Add acl entires field<commit_after>/*
 * Copyright 2016 EPAM Systems
 * 
 * 
 * This file is part of EPAM Report Portal.
 * https://github.com/reportportal/commons-dao
 * 
 * Report Portal is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Report Portal is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Report Portal.  If not, see <http://www.gnu.org/licenses/>.
 */ 
 
package com.epam.ta.reportportal.database.entity.sharing;

import org.springframework.data.domain.Sort;
import org.springframework.data.domain.Sort.Direction;
import org.springframework.data.domain.Sort.Order;

import java.io.Serializable;
import java.security.Principal;
import java.security.acl.NotOwnerException;


/**
 * Define base functionality for entries which can be shared.
 * 
 * @author Aliaksei_Makayed
 *
 */
public class Shareable implements Serializable {
	
	public static final String ID = "_id";
	public static final String ACL = "acl";
	public static final String OWNER = "acl.ownerUserId";
	public static final String ENTRIES = "acl.entries";
	public static final String DESCRIPTION = "description";

	public static final Sort NAME_OWNER_SORT = new Sort(new Order(Direction.ASC, "name"), new Order(Direction.ASC, Shareable.OWNER));

	private Acl acl;

	private String description;

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

{'fraction_non_alphanumeric': 0.08339869281045752, 'fraction_numerical': 0.00261437908496732, 'mean_word_length': 4.241095890410959, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '536339', 'n_tokens_mistral': 1081, 'n_tokens_neox': 1020, 'n_words': 405}