Documentos, relatórios e pesquisas.

Aqui tem conhecimento que transforma.
Documentos, relatórios e
conhecimento que transforma

Consulte nossas publicações

Transparência é abrir nossos documentos para você e o mercado

Para nós, colaborar é essencial. Acreditamos no poder do conhecimento como agente de transformação. Por isso, disponibilizamos aqui nossos principais documentos e estudos técnicos. Um ambiente de pesquisa e referência para você consultar, conhecer e também somar.

Asset Publisher

An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy143.getFileEntry(long)" threw an exception when invoked on com.sun.proxy.$Proxy143 object "com.liferay.document.library.opener.google.drive.web.internal.service.DLOpenerGoogleDriveDLAppServiceWrapper@60d7fa49"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: fileEntry = dlAppService.getFileEntry...  [in template "20097#20123#45777" at line 35, column 50]
----
1<!-- 
2	Name: ADT - Relatórios 
3	Type: Asset Publisher Template 
4	Path: ROOT/assets/Relatório financeiro/ADT-relatorios.ftl 
5--> 
6 
7<#setting time_zone=timeZone.ID> 
8<#setting locale=locale.toString()> 
9<#setting datetime_format="dd/MM/yyyy"> 
10<#assign  
11	dlAppService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService") 
12	AssetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") 
13	 
14/> 
15 
16<#list entries as entry> 
17	<#assign renderer = entry.getAssetRenderer()	 
18						 document = saxReaderUtil.read(renderer.getArticle().getContent()) 
19						 rootElement = document.getRootElement() 
20						 journalArticle = renderer.getArticle() 
21						 viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry)  
22						  
23						 categories = AssetCategoryLocalService.getCategories('com.liferay.journal.model.JournalArticle', journalArticle.getResourcePrimKey()) 
24						  
25						 xPathSelector = saxReaderUtil.createXPath("dynamic-element[@field-reference='descricao']") 
26						 descricao = xPathSelector.selectSingleNode(rootElement).getStringValue()?trim 
27						 xPathSelector = saxReaderUtil.createXPath("dynamic-element[@field-reference='relatorio']") 
28						 relatorio = xPathSelector.selectSingleNode(rootElement).getStringValue()?trim 
29						 url = '' 
30						 size=0 
31					 /> 
32	<#if relatorio??  && relatorio != ""> 
33		<#assign fileJson = jsonFactoryUtil.createJSONObject(relatorio) 
34						 fileEntryId = getterUtil.getInteger(fileJson.get('fileEntryId')) 
35						 fileEntry = dlAppService.getFileEntry(fileEntryId) 
36						 size = fileEntry.getSize()/1024/1024 
37						 /> 
38		<#if fileEntry?? > 
39			<#assign url = '/documents/' + themeDisplay.getScopeGroupId() + '/' + fileEntry.getUuid() /> 
40		</#if> 
41	</#if> 
42	 
43		 
44	<div class="balanco-financeiro" >		 
45		<#if entry?is_first> 
46			<div class="categories"> 
47				<#list categories as category> 
48					<h2>${category.getName()}</h2> 
49				</#list> 
50			</div> 
51		<#else> 
52			<div class="categories"></div> 
53		</#if> 
54		<div class="direita"> 
55			<h1>${journalArticle.getTitle()}</h1> 
56			<div class="descricao"> 
57				${descricao} 
58			</div> 
59			<div class="download"> 
60				<a href="${url}" > 
61					<svg width="40" style="margin-right:10px;" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M19.1427 24.2506L19.1427 5.4285C19.1427 4.79732 19.6544 4.28564 20.2856 4.28564C20.9168 4.28564 21.4285 4.79732 21.4285 5.4285V23.7144L28.1085 17.4468C28.5624 17.0209 29.2738 17.0455 29.6975 17.5018C30.1211 17.9582 30.0966 18.6733 29.6427 19.0992L20.7669 27.4271C20.335 27.8323 19.6647 27.8323 19.2327 27.4271L10.357 19.0992C9.90308 18.6733 9.87855 17.9582 10.3022 17.5018C10.7259 17.0455 11.4373 17.0209 11.8912 17.4468L19.1427 24.2506ZM5.71415 27.4284C6.34533 27.4284 6.857 27.9401 6.857 28.5713V34.2856C6.857 34.4434 6.98492 34.5713 7.14272 34.5713H32.857C33.0148 34.5713 33.1427 34.4434 33.1427 34.2856V28.5713C33.1427 27.9401 33.6544 27.4284 34.2856 27.4284C34.9168 27.4284 35.4284 27.9401 35.4284 28.5713V34.2856C35.4284 35.7057 34.2772 36.857 32.857 36.857H7.14272C5.72256 36.857 4.57129 35.7057 4.57129 34.2856V28.5713C4.57129 27.9401 5.08296 27.4284 5.71415 27.4284Z" fill="#D70064" ></path></svg> 
62					<p>Baixar em PDF</p> 
63				</a> 
64			</div> 
65		</div> 
66	</div> 
67</#list> 
68 
69 
70 
71<style> 
72 
73@media screen and (max-width: 900px) { 
74	.balanco-financeiro { 
75		display: block; 
76		margin-left: 8px; 
77
78
79@media screen and (min-width: 1200px) { 
80	 
81	.balanco-financeiro{ 
82		margin: 0px 170px 48px 200px; 
83
84	.categories { 
85		width: 50%; 
86
87	.direita{ 
88		width: 50%; 
89		padding-bottom: 50px; 
90
91
92 
93.balanco-financeiro { 
94	font-family: Rawline,sans-serif; 
95    color: var(--color-brand-primary-light); 
96    box-sizing: border-box; 
97    font-size: var(--font-size-xl); 
98    line-height: var(--line-height-md); 
99    display: flex; 
100    font-weight: var(--font-weight~~-sm); 
101    border-bottom: 1px solid  rgb(198 199 203); 
102
103 
104.balanco-financeiro h1 { 
105	font-size: var(--font-size-2xl); 
106	padding-bottom: 30px; 
107
108.categories{ 
109  padding-right: var(--spacing-inset-sm); 
110  line-height: var(--font-size-6xl); 
111
112.categories h2{ 
113 	text-align: center; 
114 	font-size: var(--font-size-3xl); 
115 	color: var(--color-neutral-02); 
116
117 
118.descricao { 
119	color: var(--color-neutral-02); 
120	width: 100%; 
121	margin-bottom: var(--spacing-inset-xs); 
122
123.download a:link { 
124	color: var(--color-brand-secondary-light); 
125	display: flex; 
126	font-weight: var(--font-weight-md); 
127
128</style> 

Asset Publisher

An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy143.getFileEntry(long)" threw an exception when invoked on com.sun.proxy.$Proxy143 object "com.liferay.document.library.opener.google.drive.web.internal.service.DLOpenerGoogleDriveDLAppServiceWrapper@60d7fa49"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: fileEntry = dlAppService.getFileEntry...  [in template "20097#20123#45777" at line 35, column 50]
----
1<!-- 
2	Name: ADT - Relatórios 
3	Type: Asset Publisher Template 
4	Path: ROOT/assets/Relatório financeiro/ADT-relatorios.ftl 
5--> 
6 
7<#setting time_zone=timeZone.ID> 
8<#setting locale=locale.toString()> 
9<#setting datetime_format="dd/MM/yyyy"> 
10<#assign  
11	dlAppService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService") 
12	AssetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") 
13	 
14/> 
15 
16<#list entries as entry> 
17	<#assign renderer = entry.getAssetRenderer()	 
18						 document = saxReaderUtil.read(renderer.getArticle().getContent()) 
19						 rootElement = document.getRootElement() 
20						 journalArticle = renderer.getArticle() 
21						 viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry)  
22						  
23						 categories = AssetCategoryLocalService.getCategories('com.liferay.journal.model.JournalArticle', journalArticle.getResourcePrimKey()) 
24						  
25						 xPathSelector = saxReaderUtil.createXPath("dynamic-element[@field-reference='descricao']") 
26						 descricao = xPathSelector.selectSingleNode(rootElement).getStringValue()?trim 
27						 xPathSelector = saxReaderUtil.createXPath("dynamic-element[@field-reference='relatorio']") 
28						 relatorio = xPathSelector.selectSingleNode(rootElement).getStringValue()?trim 
29						 url = '' 
30						 size=0 
31					 /> 
32	<#if relatorio??  && relatorio != ""> 
33		<#assign fileJson = jsonFactoryUtil.createJSONObject(relatorio) 
34						 fileEntryId = getterUtil.getInteger(fileJson.get('fileEntryId')) 
35						 fileEntry = dlAppService.getFileEntry(fileEntryId) 
36						 size = fileEntry.getSize()/1024/1024 
37						 /> 
38		<#if fileEntry?? > 
39			<#assign url = '/documents/' + themeDisplay.getScopeGroupId() + '/' + fileEntry.getUuid() /> 
40		</#if> 
41	</#if> 
42	 
43		 
44	<div class="balanco-financeiro" >		 
45		<#if entry?is_first> 
46			<div class="categories"> 
47				<#list categories as category> 
48					<h2>${category.getName()}</h2> 
49				</#list> 
50			</div> 
51		<#else> 
52			<div class="categories"></div> 
53		</#if> 
54		<div class="direita"> 
55			<h1>${journalArticle.getTitle()}</h1> 
56			<div class="descricao"> 
57				${descricao} 
58			</div> 
59			<div class="download"> 
60				<a href="${url}" > 
61					<svg width="40" style="margin-right:10px;" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M19.1427 24.2506L19.1427 5.4285C19.1427 4.79732 19.6544 4.28564 20.2856 4.28564C20.9168 4.28564 21.4285 4.79732 21.4285 5.4285V23.7144L28.1085 17.4468C28.5624 17.0209 29.2738 17.0455 29.6975 17.5018C30.1211 17.9582 30.0966 18.6733 29.6427 19.0992L20.7669 27.4271C20.335 27.8323 19.6647 27.8323 19.2327 27.4271L10.357 19.0992C9.90308 18.6733 9.87855 17.9582 10.3022 17.5018C10.7259 17.0455 11.4373 17.0209 11.8912 17.4468L19.1427 24.2506ZM5.71415 27.4284C6.34533 27.4284 6.857 27.9401 6.857 28.5713V34.2856C6.857 34.4434 6.98492 34.5713 7.14272 34.5713H32.857C33.0148 34.5713 33.1427 34.4434 33.1427 34.2856V28.5713C33.1427 27.9401 33.6544 27.4284 34.2856 27.4284C34.9168 27.4284 35.4284 27.9401 35.4284 28.5713V34.2856C35.4284 35.7057 34.2772 36.857 32.857 36.857H7.14272C5.72256 36.857 4.57129 35.7057 4.57129 34.2856V28.5713C4.57129 27.9401 5.08296 27.4284 5.71415 27.4284Z" fill="#D70064" ></path></svg> 
62					<p>Baixar em PDF</p> 
63				</a> 
64			</div> 
65		</div> 
66	</div> 
67</#list> 
68 
69 
70 
71<style> 
72 
73@media screen and (max-width: 900px) { 
74	.balanco-financeiro { 
75		display: block; 
76		margin-left: 8px; 
77
78
79@media screen and (min-width: 1200px) { 
80	 
81	.balanco-financeiro{ 
82		margin: 0px 170px 48px 200px; 
83
84	.categories { 
85		width: 50%; 
86
87	.direita{ 
88		width: 50%; 
89		padding-bottom: 50px; 
90
91
92 
93.balanco-financeiro { 
94	font-family: Rawline,sans-serif; 
95    color: var(--color-brand-primary-light); 
96    box-sizing: border-box; 
97    font-size: var(--font-size-xl); 
98    line-height: var(--line-height-md); 
99    display: flex; 
100    font-weight: var(--font-weight~~-sm); 
101    border-bottom: 1px solid  rgb(198 199 203); 
102
103 
104.balanco-financeiro h1 { 
105	font-size: var(--font-size-2xl); 
106	padding-bottom: 30px; 
107
108.categories{ 
109  padding-right: var(--spacing-inset-sm); 
110  line-height: var(--font-size-6xl); 
111
112.categories h2{ 
113 	text-align: center; 
114 	font-size: var(--font-size-3xl); 
115 	color: var(--color-neutral-02); 
116
117 
118.descricao { 
119	color: var(--color-neutral-02); 
120	width: 100%; 
121	margin-bottom: var(--spacing-inset-xs); 
122
123.download a:link { 
124	color: var(--color-brand-secondary-light); 
125	display: flex; 
126	font-weight: var(--font-weight-md); 
127
128</style> 

Asset Publisher

An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy143.getFileEntry(long)" threw an exception when invoked on com.sun.proxy.$Proxy143 object "com.liferay.document.library.opener.google.drive.web.internal.service.DLOpenerGoogleDriveDLAppServiceWrapper@60d7fa49"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: fileEntry = dlAppService.getFileEntry...  [in template "20097#20123#45777" at line 35, column 50]
----
1<!-- 
2	Name: ADT - Relatórios 
3	Type: Asset Publisher Template 
4	Path: ROOT/assets/Relatório financeiro/ADT-relatorios.ftl 
5--> 
6 
7<#setting time_zone=timeZone.ID> 
8<#setting locale=locale.toString()> 
9<#setting datetime_format="dd/MM/yyyy"> 
10<#assign  
11	dlAppService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService") 
12	AssetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") 
13	 
14/> 
15 
16<#list entries as entry> 
17	<#assign renderer = entry.getAssetRenderer()	 
18						 document = saxReaderUtil.read(renderer.getArticle().getContent()) 
19						 rootElement = document.getRootElement() 
20						 journalArticle = renderer.getArticle() 
21						 viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry)  
22						  
23						 categories = AssetCategoryLocalService.getCategories('com.liferay.journal.model.JournalArticle', journalArticle.getResourcePrimKey()) 
24						  
25						 xPathSelector = saxReaderUtil.createXPath("dynamic-element[@field-reference='descricao']") 
26						 descricao = xPathSelector.selectSingleNode(rootElement).getStringValue()?trim 
27						 xPathSelector = saxReaderUtil.createXPath("dynamic-element[@field-reference='relatorio']") 
28						 relatorio = xPathSelector.selectSingleNode(rootElement).getStringValue()?trim 
29						 url = '' 
30						 size=0 
31					 /> 
32	<#if relatorio??  && relatorio != ""> 
33		<#assign fileJson = jsonFactoryUtil.createJSONObject(relatorio) 
34						 fileEntryId = getterUtil.getInteger(fileJson.get('fileEntryId')) 
35						 fileEntry = dlAppService.getFileEntry(fileEntryId) 
36						 size = fileEntry.getSize()/1024/1024 
37						 /> 
38		<#if fileEntry?? > 
39			<#assign url = '/documents/' + themeDisplay.getScopeGroupId() + '/' + fileEntry.getUuid() /> 
40		</#if> 
41	</#if> 
42	 
43		 
44	<div class="balanco-financeiro" >		 
45		<#if entry?is_first> 
46			<div class="categories"> 
47				<#list categories as category> 
48					<h2>${category.getName()}</h2> 
49				</#list> 
50			</div> 
51		<#else> 
52			<div class="categories"></div> 
53		</#if> 
54		<div class="direita"> 
55			<h1>${journalArticle.getTitle()}</h1> 
56			<div class="descricao"> 
57				${descricao} 
58			</div> 
59			<div class="download"> 
60				<a href="${url}" > 
61					<svg width="40" style="margin-right:10px;" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M19.1427 24.2506L19.1427 5.4285C19.1427 4.79732 19.6544 4.28564 20.2856 4.28564C20.9168 4.28564 21.4285 4.79732 21.4285 5.4285V23.7144L28.1085 17.4468C28.5624 17.0209 29.2738 17.0455 29.6975 17.5018C30.1211 17.9582 30.0966 18.6733 29.6427 19.0992L20.7669 27.4271C20.335 27.8323 19.6647 27.8323 19.2327 27.4271L10.357 19.0992C9.90308 18.6733 9.87855 17.9582 10.3022 17.5018C10.7259 17.0455 11.4373 17.0209 11.8912 17.4468L19.1427 24.2506ZM5.71415 27.4284C6.34533 27.4284 6.857 27.9401 6.857 28.5713V34.2856C6.857 34.4434 6.98492 34.5713 7.14272 34.5713H32.857C33.0148 34.5713 33.1427 34.4434 33.1427 34.2856V28.5713C33.1427 27.9401 33.6544 27.4284 34.2856 27.4284C34.9168 27.4284 35.4284 27.9401 35.4284 28.5713V34.2856C35.4284 35.7057 34.2772 36.857 32.857 36.857H7.14272C5.72256 36.857 4.57129 35.7057 4.57129 34.2856V28.5713C4.57129 27.9401 5.08296 27.4284 5.71415 27.4284Z" fill="#D70064" ></path></svg> 
62					<p>Baixar em PDF</p> 
63				</a> 
64			</div> 
65		</div> 
66	</div> 
67</#list> 
68 
69 
70 
71<style> 
72 
73@media screen and (max-width: 900px) { 
74	.balanco-financeiro { 
75		display: block; 
76		margin-left: 8px; 
77
78
79@media screen and (min-width: 1200px) { 
80	 
81	.balanco-financeiro{ 
82		margin: 0px 170px 48px 200px; 
83
84	.categories { 
85		width: 50%; 
86
87	.direita{ 
88		width: 50%; 
89		padding-bottom: 50px; 
90
91
92 
93.balanco-financeiro { 
94	font-family: Rawline,sans-serif; 
95    color: var(--color-brand-primary-light); 
96    box-sizing: border-box; 
97    font-size: var(--font-size-xl); 
98    line-height: var(--line-height-md); 
99    display: flex; 
100    font-weight: var(--font-weight~~-sm); 
101    border-bottom: 1px solid  rgb(198 199 203); 
102
103 
104.balanco-financeiro h1 { 
105	font-size: var(--font-size-2xl); 
106	padding-bottom: 30px; 
107
108.categories{ 
109  padding-right: var(--spacing-inset-sm); 
110  line-height: var(--font-size-6xl); 
111
112.categories h2{ 
113 	text-align: center; 
114 	font-size: var(--font-size-3xl); 
115 	color: var(--color-neutral-02); 
116
117 
118.descricao { 
119	color: var(--color-neutral-02); 
120	width: 100%; 
121	margin-bottom: var(--spacing-inset-xs); 
122
123.download a:link { 
124	color: var(--color-brand-secondary-light); 
125	display: flex; 
126	font-weight: var(--font-weight-md); 
127
128</style> 

Agora que você ja sabe toda teoria da CNP, vem pra prática. Conheça nossos produtos que farão diferença na sua vida.

Cada produto que desenvolvemos é reflexo de estudo e comportamento para você ter a melhor experiência.