Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Aryan sahu
repository id
10 de Outubro de 2012 23:53
Resposta

Aryan sahu

Ranking: Junior Member

Mensagens: 73

Data de entrada: 23 de Julho de 2012

Mensagens recentes

hi i am using the dlfile entry webservices to add a file. I dnt have any clue how to get the repository id ? Any idea
sandip niyogi
RE: repository id
11 de Outubro de 2012 00:27
Resposta

sandip niyogi

Ranking: New Member

Mensagens: 12

Data de entrada: 11 de Janeiro de 2012

Mensagens recentes

hi Ganesh you can try the this
List<DLFileEntryType> dlFolder = DLFileEntryTypeLocalServiceUtil.getFolderFileEntryTypes(DLUtil.getGroupIds(themeDisplay), folderId, true);
u will get the entire data in this list
Mika Koivisto
RE: repository id
11 de Outubro de 2012 16:36
Resposta

Mika Koivisto

Ranking: Liferay Legend

Mensagens: 1518

Data de entrada: 7 de Agosto de 2006

Mensagens recentes

For the default Liferay repository it's the same as scopeGroupId.
Arthur Grohe
RE: repository id
11 de Dezembro de 2012 07:14
Resposta

Arthur Grohe

Ranking: Junior Member

Mensagens: 49

Data de entrada: 5 de Novembro de 2012

Mensagens recentes

Aha, and why do you try to keep this as secret as possible??
Please upate your API and Documentation, so we can actually use your api.
I searched three days through the whole internet to find that little answer.
shame on you
Um erro ocorreu enquanto processava o modelo.
Unable to find resource '1#8431626#83611157'
1<style> 
2#closeButton { 
3    background-color: #fff; 
4    color: #bbb; 
5
6 
7#closeButton, #sendButton { 
8	font-weight: 600; 
9
10 
11#sendButton { 
12	background-color: #1C75B9; 
13	color: #fff; 
14	margin-right: .25em; 
15
16 
17#verifyUserPopUp .aui-buttonitem-label { 
18    font-family: source-sans-pro,Arial,Helvetica,sans-serif; 
19
20 
21#verifyUserPopUp aui-buttonitem-content { 
22    padding: 4px 8px 
23
24 
25#verifyUserPopUp .aui-dialog-content { 
26    border: none; 
27    box-shadow: 0px 2px 16px rgba(0,0,0,0.2); 
28    padding: 16px; 
29
30 
31#verifyUserPopUp .aui-dialog-bd { 
32    overflow-y: inherit; 
33
34 
35#verifyUserPopUp .aui-panel-hd { 
36    background: #fff; 
37    height: 0; 
38    padding: 0; 
39
40 
41#verifyUserPopUp .aui-panel-ft { 
42    background-color: #fff; 
43    border: 0; 
44    padding: .5em 0 .25em 0; 
45    text-align: left; 
46
47 
48#verifyUserPopUp .aui-toolbar-first, #verifyUserPopUp .aui-toolbar-last { 
49    -moz-border-radius: 3px; 
50    -webkit-border-radius: 3px; 
51    border-radius: 3px; 
52
53</style> 
54 
55<script> 
56function positionOnPage() { 
57	AUI().ready( 
58		'aui-base', 
59		'node', 
60		function(A) { 
61			var node = A.one('#verifyUserPopUp'); 
62 
63			var winHeight = window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0; 
64			var winWidth = window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth; 
65 
66			var nodeHeight = node.get('clientHeight'); 
67 
68			var x = winWidth - 360; 
69			var y = winHeight - (nodeHeight + 88); 
70 
71			node.setStyle('left', x); 
72			node.setStyle('top', y); 
73
74	); 
75}; 
76 
77AUI().ready( 
78    'aui-base', 
79    'aui-dialog', 
80    'aui-io-plugin', 
81    'aui-io-request', 
82	function(A) { 
83		#set ($role_verified_user_id = 81492058) 
84		#set ($guest_user_id = 5) 
85		#set ($cur_user_id = $getterUtil.getLong($request.get("theme-display").get("user-id"))) 
86 
87		#set ($role_local_service = $serviceLocator.findService("com.liferay.portal.service.RoleLocalService")) 
88		#set ($user_local_service = $serviceLocator.findService("com.liferay.portal.service.UserLocalService")) 
89 
90		#set ($cur_user = $user_local_service.getUserById($cur_user_id)) 
91 
92		#set ($close_button_label = $htmlUtil.escapeJS($close_button_text.data)) 
93		#set ($send_button_label = $htmlUtil.escapeJS($send_button_text.data)) 
94		#set ($delay_button_label = $htmlUtil.escapeJS($delay_button_text.data)) 
95 
96		#set ($is_verified_user = $role_local_service.hasUserRole($cur_user_id, $role_verified_user_id)) 
97 
98		#set ($days = $getterUtil.getInteger($dateUtil.getDaysBetween($cur_user.getCreateDate(), $dateUtil.newDate(), $timeZoneUtil.getTimeZone("UTC")))) 
99 
100		#set ($body_content = $htmlUtil.escape($getterUtil.getString($verify_message.data))) 
101		#set ($success_message = $getterUtil.getString($sent_message.data)) 
102 
103        var buttons = [ 
104
105				handler: function() { 
106					A.io.request( 
107						'/delegate/user_email_verification', 
108
109							on: { 
110								error: function(event) { 
111									A.one('#verifyUserPopUp .aui-dialog-bd').set('innerHTML', '<liferay-ui:message key="an-error-occurred-while-sending-the-verification-email-please-try-again-in-a-few-minutes" unicode="<%= true %>" />'); 
112								}, 
113								success: function(event) { 
114									A.one('#verifyUserPopUp .aui-dialog-bd').set('innerHTML', '${htmlUtil.escape($success_message)}'); 
115 
116									document.getElementById("sendButton").classList.add('aui-helper-hidden'); 
117									document.getElementById("closeButton").textContent = '${close_button_label}'; 
118
119
120
121					); 
122				}, 
123				id: 'sendButton', 
124				label: '${send_button_label}' 
125			}, 
126
127				handler: function() { 
128					this.close(); 
129				}, 
130				id: 'closeButton', 
131				label: '${delay_button_label}' 
132
133        ]; 
134 
135        if ('${cur_user_id}' == '${guest_user_id}') { 
136            return; 
137
138 
139        if ('${is_verified_user}' == 'true') { 
140            return; 
141
142 
143        if (parseInt('${days}') < 90) { 
144			new A.Dialog( 
145
146	            	bodyContent: '${body_content}', 
147					buttons: buttons, 
148					centered: false, 
149					draggable: false, 
150					id: 'verifyUserPopUp', 
151					resizable: false, 
152					width: 328 
153
154			).render(); 
155 
156			positionOnPage(); 
157 
158			A.getWin().on( 
159				'resize', 
160				function() { 
161					positionOnPage(); 
162
163			); 
164
165
166); 
167</script>