Commit f0b14f2fdeab82570131d1f224d84d90474b05f0
1 parent
9878e349
Exists in
master
Inserção das configurações dos interceptors.
Showing
4 changed files
with
77 additions
and
0 deletions
Show diff stats
documentation/reference/pt-BR/configuracao.xml
... | ... | @@ -47,6 +47,25 @@ |
47 | 47 | </section> |
48 | 48 | |
49 | 49 | <section> |
50 | + <title>Configurando</title> | |
51 | + <para> | |
52 | + Para um correto funcionamento do Demoiselle é necessário inserir o interceptador de configuração no arquivo <filename>src/main/WEB-INF/beans.xml</filename>. | |
53 | + </para> | |
54 | + <programlisting role="XML"> | |
55 | + <![CDATA[ | |
56 | + <beans xmlns="http://java.sun.com/xml/ns/javaee" | |
57 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
58 | + xsi:schemaLocation="http://java.sun.com/xml/ns/javaee | |
59 | + http://java.sun.com/xml/ns/javaee/beans_1_0.xsd"> | |
60 | + <interceptors> | |
61 | + <class>br.gov.frameworkdemoiselle.internal.interceptor.ConfigurationInterceptor</class> | |
62 | + </interceptors> | |
63 | + </beans> | |
64 | + ]]> | |
65 | + </programlisting> | |
66 | + </section> | |
67 | + | |
68 | + <section> | |
50 | 69 | <title>As classes de configuração</title> |
51 | 70 | <para> |
52 | 71 | A primeira etapa para a utilização do mecanismo de configuração em uma aplicação consiste em criar uma classe específica | ... | ... |
documentation/reference/pt-BR/excecao.xml
... | ... | @@ -11,6 +11,25 @@ |
11 | 11 | Oferecemos à você uma alternativa para resolver estes problemas, mas você estará livre para usá-la: isoladamente, |
12 | 12 | misturando com a forma verbosa ou até mesmo não usá-la. |
13 | 13 | </para> |
14 | + | |
15 | + <section> | |
16 | + <title>Configurando</title> | |
17 | + <para> | |
18 | + Para um correto funcionamento do Demoiselle é necessário inserir o interceptador de exceção no arquivo <filename>src/main/WEB-INF/beans.xml</filename>. | |
19 | + </para> | |
20 | + <programlisting role="XML"> | |
21 | + <![CDATA[ | |
22 | + <beans xmlns="http://java.sun.com/xml/ns/javaee" | |
23 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
24 | + xsi:schemaLocation="http://java.sun.com/xml/ns/javaee | |
25 | + http://java.sun.com/xml/ns/javaee/beans_1_0.xsd"> | |
26 | + <interceptors> | |
27 | + <class>br.gov.frameworkdemoiselle.internal.interceptor.ExceptionHandlerInterceptor</class> | |
28 | + </interceptors> | |
29 | + </beans> | |
30 | + ]]> | |
31 | + </programlisting> | |
32 | + </section> | |
14 | 33 | |
15 | 34 | <section> |
16 | 35 | <title>Tratadores de exceção</title> | ... | ... |
documentation/reference/pt-BR/security.xml
... | ... | @@ -18,6 +18,26 @@ |
18 | 18 | </para> |
19 | 19 | |
20 | 20 | <section> |
21 | + <title>Configurando</title> | |
22 | + <para> | |
23 | + Para um correto funcionamento do Demoiselle é necessário inserir od interceptadores de segurança no arquivo <filename>src/main/WEB-INF/beans.xml</filename>. | |
24 | + </para> | |
25 | + <programlisting role="XML"> | |
26 | + <![CDATA[ | |
27 | + <beans xmlns="http://java.sun.com/xml/ns/javaee" | |
28 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
29 | + xsi:schemaLocation="http://java.sun.com/xml/ns/javaee | |
30 | + http://java.sun.com/xml/ns/javaee/beans_1_0.xsd"> | |
31 | + <interceptors> | |
32 | + <class>br.gov.frameworkdemoiselle.internal.interceptor.RequiredPermissionInterceptor</class> | |
33 | + <class>br.gov.frameworkdemoiselle.internal.interceptor.RequiredRoleInterceptor</class> | |
34 | + </interceptors> | |
35 | + </beans> | |
36 | + ]]> | |
37 | + </programlisting> | |
38 | + </section> | |
39 | + | |
40 | + <section> | |
21 | 41 | <title>Autenticação</title> |
22 | 42 | <para> |
23 | 43 | O mecanismo de autenticação busca verificar a identidade do usuário de um sistema. A forma mais conhecida, e comum, | ... | ... |
documentation/reference/pt-BR/transacao.xml
... | ... | @@ -22,6 +22,25 @@ |
22 | 22 | Neste capítulo apresentaremos para você como usar a nossa solução de controle de transação, as estratégias |
23 | 23 | prontas que oferecemos e a criação de sua própria estratégia. |
24 | 24 | </para> |
25 | + | |
26 | + <section> | |
27 | + <title>Configurando</title> | |
28 | + <para> | |
29 | + Para um correto funcionamento do Demoiselle é necessário inserir o interceptador de transação no arquivo <filename>src/main/WEB-INF/beans.xml</filename>. | |
30 | + </para> | |
31 | + <programlisting role="XML"> | |
32 | + <![CDATA[ | |
33 | + <beans xmlns="http://java.sun.com/xml/ns/javaee" | |
34 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
35 | + xsi:schemaLocation="http://java.sun.com/xml/ns/javaee | |
36 | + http://java.sun.com/xml/ns/javaee/beans_1_0.xsd"> | |
37 | + <interceptors> | |
38 | + <class>br.gov.frameworkdemoiselle.internal.interceptor.TransactionalInterceptor</class> | |
39 | + </interceptors> | |
40 | + </beans> | |
41 | + ]]> | |
42 | + </programlisting> | |
43 | + </section> | |
25 | 44 | |
26 | 45 | <section> |
27 | 46 | <title>Métodos transacionais</title> | ... | ... |