Commit e277212d2e17b4f01e906ae1fdb983d17533f0d3
1 parent
4b5516e7
Exists in
master
FWK-203: Exclusão de funcionalidades e classes depreciadas na versão 2.4
Task-Url: https://demoiselle.atlassian.net/browse/FWK-203
Showing
5 changed files
with
0 additions
and
355 deletions
Show diff stats
impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/interceptor/ExceptionHandlerInterceptor.java
| ... | ... | @@ -1,67 +0,0 @@ |
| 1 | -/* | |
| 2 | - * Demoiselle Framework | |
| 3 | - * Copyright (C) 2010 SERPRO | |
| 4 | - * ---------------------------------------------------------------------------- | |
| 5 | - * This file is part of Demoiselle Framework. | |
| 6 | - * | |
| 7 | - * Demoiselle Framework is free software; you can redistribute it and/or | |
| 8 | - * modify it under the terms of the GNU Lesser General Public License version 3 | |
| 9 | - * as published by the Free Software Foundation. | |
| 10 | - * | |
| 11 | - * This program is distributed in the hope that it will be useful, | |
| 12 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | - * GNU General Public License for more details. | |
| 15 | - * | |
| 16 | - * You should have received a copy of the GNU Lesser General Public License version 3 | |
| 17 | - * along with this program; if not, see <http://www.gnu.org/licenses/> | |
| 18 | - * or write to the Free Software Foundation, Inc., 51 Franklin Street, | |
| 19 | - * Fifth Floor, Boston, MA 02110-1301, USA. | |
| 20 | - * ---------------------------------------------------------------------------- | |
| 21 | - * Este arquivo é parte do Framework Demoiselle. | |
| 22 | - * | |
| 23 | - * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou | |
| 24 | - * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação | |
| 25 | - * do Software Livre (FSF). | |
| 26 | - * | |
| 27 | - * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA | |
| 28 | - * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou | |
| 29 | - * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português | |
| 30 | - * para maiores detalhes. | |
| 31 | - * | |
| 32 | - * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título | |
| 33 | - * "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses/> | |
| 34 | - * ou escreva para a Fundação do Software Livre (FSF) Inc., | |
| 35 | - * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. | |
| 36 | - */ | |
| 37 | -package br.gov.frameworkdemoiselle.internal.interceptor; | |
| 38 | - | |
| 39 | -import javax.inject.Inject; | |
| 40 | -import javax.interceptor.AroundInvoke; | |
| 41 | -import javax.interceptor.Interceptor; | |
| 42 | -import javax.interceptor.InvocationContext; | |
| 43 | - | |
| 44 | -import org.slf4j.Logger; | |
| 45 | - | |
| 46 | -import br.gov.frameworkdemoiselle.stereotype.Controller; | |
| 47 | - | |
| 48 | -/** | |
| 49 | - * @author 80342167553 | |
| 50 | - */ | |
| 51 | -@Deprecated | |
| 52 | -@Interceptor | |
| 53 | -@Controller | |
| 54 | -public class ExceptionHandlerInterceptor extends br.gov.frameworkdemoiselle.exception.ExceptionHandlerInterceptor { | |
| 55 | - | |
| 56 | - private static final long serialVersionUID = 1L; | |
| 57 | - | |
| 58 | - @Inject | |
| 59 | - private Logger logger; | |
| 60 | - | |
| 61 | - @Override | |
| 62 | - @AroundInvoke | |
| 63 | - public Object manage(InvocationContext ic) throws Exception { | |
| 64 | - logger.warn("ATENÇÃO! Substitua a entrada \"br.gov.frameworkdemoiselle.internal.interceptor.ExceptionHandlerInterceptor\" no beans.xml por \"br.gov.frameworkdemoiselle.exception.ExceptionHandlerInterceptor\" para garantir a compatibilidade com futuras versões."); | |
| 65 | - return super.manage(ic); | |
| 66 | - } | |
| 67 | -} |
impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/interceptor/RequiredPermissionInterceptor.java
| ... | ... | @@ -1,69 +0,0 @@ |
| 1 | -/* | |
| 2 | - * Demoiselle Framework | |
| 3 | - * Copyright (C) 2010 SERPRO | |
| 4 | - * ---------------------------------------------------------------------------- | |
| 5 | - * This file is part of Demoiselle Framework. | |
| 6 | - * | |
| 7 | - * Demoiselle Framework is free software; you can redistribute it and/or | |
| 8 | - * modify it under the terms of the GNU Lesser General Public License version 3 | |
| 9 | - * as published by the Free Software Foundation. | |
| 10 | - * | |
| 11 | - * This program is distributed in the hope that it will be useful, | |
| 12 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | - * GNU General Public License for more details. | |
| 15 | - * | |
| 16 | - * You should have received a copy of the GNU Lesser General Public License version 3 | |
| 17 | - * along with this program; if not, see <http://www.gnu.org/licenses/> | |
| 18 | - * or write to the Free Software Foundation, Inc., 51 Franklin Street, | |
| 19 | - * Fifth Floor, Boston, MA 02110-1301, USA. | |
| 20 | - * ---------------------------------------------------------------------------- | |
| 21 | - * Este arquivo é parte do Framework Demoiselle. | |
| 22 | - * | |
| 23 | - * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou | |
| 24 | - * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação | |
| 25 | - * do Software Livre (FSF). | |
| 26 | - * | |
| 27 | - * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA | |
| 28 | - * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou | |
| 29 | - * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português | |
| 30 | - * para maiores detalhes. | |
| 31 | - * | |
| 32 | - * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título | |
| 33 | - * "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses/> | |
| 34 | - * ou escreva para a Fundação do Software Livre (FSF) Inc., | |
| 35 | - * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. | |
| 36 | - */ | |
| 37 | -package br.gov.frameworkdemoiselle.internal.interceptor; | |
| 38 | - | |
| 39 | -import javax.inject.Inject; | |
| 40 | -import javax.interceptor.AroundInvoke; | |
| 41 | -import javax.interceptor.Interceptor; | |
| 42 | -import javax.interceptor.InvocationContext; | |
| 43 | - | |
| 44 | -import org.slf4j.Logger; | |
| 45 | - | |
| 46 | -import br.gov.frameworkdemoiselle.security.RequiredPermission; | |
| 47 | - | |
| 48 | -/** | |
| 49 | - * Intercepts calls with {@code @Validate} annotations. | |
| 50 | - * | |
| 51 | - * @author SERPRO | |
| 52 | - */ | |
| 53 | -@Deprecated | |
| 54 | -@Interceptor | |
| 55 | -@RequiredPermission | |
| 56 | -public class RequiredPermissionInterceptor extends br.gov.frameworkdemoiselle.security.RequiredPermissionInterceptor { | |
| 57 | - | |
| 58 | - private static final long serialVersionUID = 1L; | |
| 59 | - | |
| 60 | - @Inject | |
| 61 | - private Logger logger; | |
| 62 | - | |
| 63 | - @Override | |
| 64 | - @AroundInvoke | |
| 65 | - public Object manage(InvocationContext ic) throws Exception { | |
| 66 | - logger.warn("ATENÇÃO! Substitua a entrada \"br.gov.frameworkdemoiselle.internal.interceptor.RequiredPermissionInterceptor\" no beans.xml por \"br.gov.frameworkdemoiselle.security.RequiredPermissionInterceptor\" para garantir a compatibilidade com futuras versões."); | |
| 67 | - return super.manage(ic); | |
| 68 | - } | |
| 69 | -} |
impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/interceptor/RequiredRoleInterceptor.java
| ... | ... | @@ -1,70 +0,0 @@ |
| 1 | -/* | |
| 2 | - * Demoiselle Framework | |
| 3 | - * Copyright (C) 2010 SERPRO | |
| 4 | - * ---------------------------------------------------------------------------- | |
| 5 | - * This file is part of Demoiselle Framework. | |
| 6 | - * | |
| 7 | - * Demoiselle Framework is free software; you can redistribute it and/or | |
| 8 | - * modify it under the terms of the GNU Lesser General Public License version 3 | |
| 9 | - * as published by the Free Software Foundation. | |
| 10 | - * | |
| 11 | - * This program is distributed in the hope that it will be useful, | |
| 12 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | - * GNU General Public License for more details. | |
| 15 | - * | |
| 16 | - * You should have received a copy of the GNU Lesser General Public License version 3 | |
| 17 | - * along with this program; if not, see <http://www.gnu.org/licenses/> | |
| 18 | - * or write to the Free Software Foundation, Inc., 51 Franklin Street, | |
| 19 | - * Fifth Floor, Boston, MA 02110-1301, USA. | |
| 20 | - * ---------------------------------------------------------------------------- | |
| 21 | - * Este arquivo é parte do Framework Demoiselle. | |
| 22 | - * | |
| 23 | - * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou | |
| 24 | - * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação | |
| 25 | - * do Software Livre (FSF). | |
| 26 | - * | |
| 27 | - * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA | |
| 28 | - * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou | |
| 29 | - * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português | |
| 30 | - * para maiores detalhes. | |
| 31 | - * | |
| 32 | - * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título | |
| 33 | - * "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses/> | |
| 34 | - * ou escreva para a Fundação do Software Livre (FSF) Inc., | |
| 35 | - * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. | |
| 36 | - */ | |
| 37 | -package br.gov.frameworkdemoiselle.internal.interceptor; | |
| 38 | - | |
| 39 | -import javax.inject.Inject; | |
| 40 | -import javax.interceptor.AroundInvoke; | |
| 41 | -import javax.interceptor.Interceptor; | |
| 42 | -import javax.interceptor.InvocationContext; | |
| 43 | - | |
| 44 | -import org.slf4j.Logger; | |
| 45 | - | |
| 46 | -import br.gov.frameworkdemoiselle.security.RequiredRole; | |
| 47 | - | |
| 48 | -/** | |
| 49 | - * Intercepts calls with {@code @RequiredRole} annotations. | |
| 50 | - * | |
| 51 | - * @author SERPRO | |
| 52 | - */ | |
| 53 | -@Deprecated | |
| 54 | -@Interceptor | |
| 55 | -@RequiredRole(value = "") | |
| 56 | -public class RequiredRoleInterceptor extends br.gov.frameworkdemoiselle.security.RequiredRoleInterceptor { | |
| 57 | - | |
| 58 | - private static final long serialVersionUID = 1L; | |
| 59 | - | |
| 60 | - @Inject | |
| 61 | - private Logger logger; | |
| 62 | - | |
| 63 | - @Override | |
| 64 | - @AroundInvoke | |
| 65 | - public Object manage(InvocationContext ic) throws Exception { | |
| 66 | - logger.warn("ATENÇÃO! Substitua a entrada \"br.gov.frameworkdemoiselle.internal.interceptor.RequiredRoleInterceptor\" no beans.xml por \"br.gov.frameworkdemoiselle.security.RequiredRoleInterceptor\" para garantir a compatibilidade com futuras versões."); | |
| 67 | - return super.manage(ic); | |
| 68 | - } | |
| 69 | - | |
| 70 | -} |
impl/core/src/main/java/br/gov/frameworkdemoiselle/internal/interceptor/TransactionalInterceptor.java
| ... | ... | @@ -1,67 +0,0 @@ |
| 1 | -/* | |
| 2 | - * Demoiselle Framework | |
| 3 | - * Copyright (C) 2010 SERPRO | |
| 4 | - * ---------------------------------------------------------------------------- | |
| 5 | - * This file is part of Demoiselle Framework. | |
| 6 | - * | |
| 7 | - * Demoiselle Framework is free software; you can redistribute it and/or | |
| 8 | - * modify it under the terms of the GNU Lesser General Public License version 3 | |
| 9 | - * as published by the Free Software Foundation. | |
| 10 | - * | |
| 11 | - * This program is distributed in the hope that it will be useful, | |
| 12 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | - * GNU General Public License for more details. | |
| 15 | - * | |
| 16 | - * You should have received a copy of the GNU Lesser General Public License version 3 | |
| 17 | - * along with this program; if not, see <http://www.gnu.org/licenses/> | |
| 18 | - * or write to the Free Software Foundation, Inc., 51 Franklin Street, | |
| 19 | - * Fifth Floor, Boston, MA 02110-1301, USA. | |
| 20 | - * ---------------------------------------------------------------------------- | |
| 21 | - * Este arquivo é parte do Framework Demoiselle. | |
| 22 | - * | |
| 23 | - * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou | |
| 24 | - * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação | |
| 25 | - * do Software Livre (FSF). | |
| 26 | - * | |
| 27 | - * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA | |
| 28 | - * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou | |
| 29 | - * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português | |
| 30 | - * para maiores detalhes. | |
| 31 | - * | |
| 32 | - * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título | |
| 33 | - * "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses/> | |
| 34 | - * ou escreva para a Fundação do Software Livre (FSF) Inc., | |
| 35 | - * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. | |
| 36 | - */ | |
| 37 | -package br.gov.frameworkdemoiselle.internal.interceptor; | |
| 38 | - | |
| 39 | -import javax.inject.Inject; | |
| 40 | -import javax.interceptor.AroundInvoke; | |
| 41 | -import javax.interceptor.Interceptor; | |
| 42 | -import javax.interceptor.InvocationContext; | |
| 43 | - | |
| 44 | -import org.slf4j.Logger; | |
| 45 | - | |
| 46 | -import br.gov.frameworkdemoiselle.transaction.Transactional; | |
| 47 | - | |
| 48 | -/** | |
| 49 | - * @author 80342167553 | |
| 50 | - */ | |
| 51 | -@Deprecated | |
| 52 | -@Interceptor | |
| 53 | -@Transactional | |
| 54 | -public class TransactionalInterceptor extends br.gov.frameworkdemoiselle.transaction.TransactionalInterceptor { | |
| 55 | - | |
| 56 | - private static final long serialVersionUID = 1L; | |
| 57 | - | |
| 58 | - @Inject | |
| 59 | - private Logger logger; | |
| 60 | - | |
| 61 | - @Override | |
| 62 | - @AroundInvoke | |
| 63 | - public Object manage(InvocationContext ic) throws Exception { | |
| 64 | - logger.warn("ATENÇÃO! Substitua a entrada \"br.gov.frameworkdemoiselle.internal.interceptor.TransactionalInterceptor\" no beans.xml por \"br.gov.frameworkdemoiselle.transaction.TransactionalInterceptor\" para garantir a compatibilidade com futuras versões."); | |
| 65 | - return super.manage(ic); | |
| 66 | - } | |
| 67 | -} |
impl/extension/jsf/src/main/java/br/gov/frameworkdemoiselle/internal/configuration/ExceptionHandlerConfigCompatible.java
| ... | ... | @@ -1,82 +0,0 @@ |
| 1 | -/* | |
| 2 | - * Demoiselle Framework | |
| 3 | - * Copyright (C) 2010 SERPRO | |
| 4 | - * ---------------------------------------------------------------------------- | |
| 5 | - * This file is part of Demoiselle Framework. | |
| 6 | - * | |
| 7 | - * Demoiselle Framework is free software; you can redistribute it and/or | |
| 8 | - * modify it under the terms of the GNU Lesser General Public License version 3 | |
| 9 | - * as published by the Free Software Foundation. | |
| 10 | - * | |
| 11 | - * This program is distributed in the hope that it will be useful, | |
| 12 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | - * GNU General Public License for more details. | |
| 15 | - * | |
| 16 | - * You should have received a copy of the GNU Lesser General Public License version 3 | |
| 17 | - * along with this program; if not, see <http://www.gnu.org/licenses/> | |
| 18 | - * or write to the Free Software Foundation, Inc., 51 Franklin Street, | |
| 19 | - * Fifth Floor, Boston, MA 02110-1301, USA. | |
| 20 | - * ---------------------------------------------------------------------------- | |
| 21 | - * Este arquivo é parte do Framework Demoiselle. | |
| 22 | - * | |
| 23 | - * O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou | |
| 24 | - * modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação | |
| 25 | - * do Software Livre (FSF). | |
| 26 | - * | |
| 27 | - * Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA | |
| 28 | - * GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou | |
| 29 | - * APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português | |
| 30 | - * para maiores detalhes. | |
| 31 | - * | |
| 32 | - * Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título | |
| 33 | - * "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses/> | |
| 34 | - * ou escreva para a Fundação do Software Livre (FSF) Inc., | |
| 35 | - * 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. | |
| 36 | - */ | |
| 37 | -package br.gov.frameworkdemoiselle.internal.configuration; | |
| 38 | - | |
| 39 | -import java.io.Serializable; | |
| 40 | - | |
| 41 | -import org.slf4j.Logger; | |
| 42 | - | |
| 43 | -import br.gov.frameworkdemoiselle.annotation.Name; | |
| 44 | -import br.gov.frameworkdemoiselle.configuration.Configuration; | |
| 45 | -import br.gov.frameworkdemoiselle.util.Beans; | |
| 46 | - | |
| 47 | -@Deprecated | |
| 48 | -@Configuration(prefix = "frameworkdemoiselle.handle") | |
| 49 | -public class ExceptionHandlerConfigCompatible implements Serializable { | |
| 50 | - | |
| 51 | - private static final long serialVersionUID = 1L; | |
| 52 | - | |
| 53 | - @Deprecated | |
| 54 | - @Name("application.exception") | |
| 55 | - private boolean handleApplicationException = true; | |
| 56 | - | |
| 57 | - @Deprecated | |
| 58 | - @Name("application.exception.page") | |
| 59 | - private String exceptionPage = "/application_error"; | |
| 60 | - | |
| 61 | - @Deprecated | |
| 62 | - public boolean isHandleApplicationException() { | |
| 63 | - Logger logger = Beans.getReference(Logger.class); | |
| 64 | - logger.warn("A propriedade frameworkdemoiselle.handle.application.exception=" | |
| 65 | - + handleApplicationException | |
| 66 | - + " não será suportada nas próximas versões do framework. Para evitar futuros problemas atualize a propriedade para frameworkdemoiselle.exception.application.handle=" | |
| 67 | - + handleApplicationException); | |
| 68 | - | |
| 69 | - return handleApplicationException; | |
| 70 | - } | |
| 71 | - | |
| 72 | - @Deprecated | |
| 73 | - public String getExceptionPage() { | |
| 74 | - Logger logger = Beans.getReference(Logger.class); | |
| 75 | - logger.warn("A propriedade frameworkdemoiselle.handle.application.exception.page=" | |
| 76 | - + exceptionPage | |
| 77 | - + " não será suportada nas próximas versões do framework. Para evitar futuros problemas atualize a propriedade para frameworkdemoiselle.exception.default.redirect.page=" | |
| 78 | - + exceptionPage); | |
| 79 | - | |
| 80 | - return exceptionPage; | |
| 81 | - } | |
| 82 | -} |