All Downloads are FREE. Search and download functionalities are using the official Maven repository.

es.prodevelop.pui9.services.messages.PuiServiceResourceBundle Maven / Gradle / Ivy

There is a newer version: 1.18.0
Show newest version
package es.prodevelop.pui9.services.messages;

import java.util.LinkedHashMap;
import java.util.Map;

import es.prodevelop.pui9.exceptions.PuiServiceCopyRegistryException;
import es.prodevelop.pui9.exceptions.PuiServiceDeleteException;
import es.prodevelop.pui9.exceptions.PuiServiceExistsException;
import es.prodevelop.pui9.exceptions.PuiServiceGetException;
import es.prodevelop.pui9.exceptions.PuiServiceInsertException;
import es.prodevelop.pui9.exceptions.PuiServiceNewException;
import es.prodevelop.pui9.exceptions.PuiServiceUpdateException;
import es.prodevelop.pui9.messages.AbstractPuiListResourceBundle;
import es.prodevelop.pui9.services.exceptions.PuiServiceConcurrencyException;
import es.prodevelop.pui9.services.exceptions.PuiServiceFromJsonException;
import es.prodevelop.pui9.services.exceptions.PuiServiceNotAllowedException;
import es.prodevelop.pui9.services.exceptions.PuiServiceSendMailException;
import es.prodevelop.pui9.services.exceptions.PuiServiceTimeoutException;
import es.prodevelop.pui9.services.exceptions.PuiServiceToJsonException;
import es.prodevelop.pui9.services.exceptions.PuiServiceWrongMailException;

/**
 * More specific implementation of {@link AbstractPuiListResourceBundle} for PUI
 * Common component
 * 
 * @author Marc Gil - [email protected]
 */
public abstract class PuiServiceResourceBundle extends AbstractPuiListResourceBundle {

	@Override
	protected Map getMessages() {
		Map messages = new LinkedHashMap<>();

		// Exceptions
		messages.put(PuiServiceFromJsonException.CODE, getFromJsonExceptionMessage_801());
		messages.put(PuiServiceToJsonException.CODE, getToJsonExceptionMessage_802());
		messages.put(PuiServiceSendMailException.CODE, getSendMailExceptionMessage_803());
		messages.put(PuiServiceWrongMailException.CODE, getWrongMailExceptionMessage_804());
		messages.put(PuiServiceTimeoutException.CODE, getTimeoutExceptionMessage_805());
		messages.put(PuiServiceNotAllowedException.CODE, getNotAllowedExceptionMessage_806());
		messages.put(PuiServiceConcurrencyException.CODE, getConcurrencyExceptionMessage_807());
		messages.put(PuiServiceNewException.CODE, getNewExceptionMessage_808());
		messages.put(PuiServiceGetException.CODE, getGetExceptionMessage_809());
		messages.put(PuiServiceExistsException.CODE, getExistsExceptionMessage_810());
		messages.put(PuiServiceInsertException.CODE, getInsertExceptionMessage_811());
		messages.put(PuiServiceUpdateException.CODE, getUpdateExceptionMessage_812());
		messages.put(PuiServiceDeleteException.CODE, getDeleteExceptionMessage_813());
		messages.put(PuiServiceCopyRegistryException.CODE, getCopyRegistryExceptionMessage_814());

		return messages;
	}

	protected abstract String getFromJsonExceptionMessage_801();

	protected abstract String getToJsonExceptionMessage_802();

	protected abstract String getSendMailExceptionMessage_803();

	protected abstract String getWrongMailExceptionMessage_804();

	protected abstract String getTimeoutExceptionMessage_805();

	protected abstract String getNotAllowedExceptionMessage_806();

	protected abstract String getConcurrencyExceptionMessage_807();

	protected abstract String getNewExceptionMessage_808();

	protected abstract String getGetExceptionMessage_809();

	protected abstract String getExistsExceptionMessage_810();

	protected abstract String getInsertExceptionMessage_811();

	protected abstract String getUpdateExceptionMessage_812();

	protected abstract String getDeleteExceptionMessage_813();

	protected abstract String getCopyRegistryExceptionMessage_814();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy