<commit_before>/*
 * OpenWMS, the open Warehouse Management System
 * 
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package org.openwms.common.service.management;

import java.io.Serializable;

import org.openwms.common.service.EntityService;

/**
 * 
 * A UserService.
 * 
 * @author <a href="mailto:<EMAIL>"><NAME></a>
 * @version $Revision: 877 $
 */
public interface UserService<T extends Serializable> extends EntityService<T> {

	boolean uploadImageFile(String username, byte[] image);

	T getTemplate(String username);

	T save(T user);

	void remove(T user);

}<commit_msg>Minor changes<commit_after>/*
 * OpenWMS, the open Warehouse Management System
 * 
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package org.openwms.common.service.management;

import java.io.Serializable;

import org.openwms.common.service.EntityService;

/**
 * 
 * A UserService.
 * 
 * @author <a href="mailto:<EMAIL>"><NAME></a>
 * @version $Revision: 877 $
 */
public interface UserService<T extends Serializable> extends EntityService<T> {

	boolean uploadImageFile(String username, byte[] image);

	/**
	 * 
	 * Return an transient user entity class, serving as a template
	 * 
	 * @param username
	 * @return
	 */
	T getTemplate(String username);

	/**
	 * 
	 * Save the given user entity class in the database, persist the user when it is transient.
	 * 
	 * @param user
	 * @return
	 */
	T save(T user);

	/**
	 * 
	 * Delete the user entity class from the database.
	 * 
	 * @param user
	 */
	void remove(T user);

}
{'fraction_non_alphanumeric': 0.12340966921119594, 'fraction_numerical': 0.003816793893129771, 'mean_word_length': 3.6676557863501484, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '2021047', 'n_tokens_mistral': 529, 'n_tokens_neox': 479, 'n_words': 147}