Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Nagaraja Chokkavarapu
Liferay 6.1 Add images to folder
6 de marzo de 2012 10:25
Respuesta

Nagaraja Chokkavarapu

Ranking: Junior Member

Mensajes: 39

Fecha de incorporación: 14 de septiembre de 2009

Mensajes recientes

Hi,

In Liferay 6.1 following code is breaking.

1
2IGImageLocalServiceUtil.addImage(userId, groupId, folderId, name, description, file, contentType, new ServiceContext());
3
4IGImageLocalServiceUtil.getImages(groupId, folderId);


Looks like they replaced IGImageLocalServiceUtil with ImageLocalServiceUtil. But there is no method to add image OR get images from/to a specific folder. Does any one know how to do it?

Thanks,
Nagaraja
Mika Koivisto
RE: Liferay 6.1 Add images to folder
6 de marzo de 2012 14:46
Respuesta

Mika Koivisto

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 1498

Fecha de incorporación: 7 de agosto de 2006

Mensajes recientes

Both Image Gallery and Document Library were combined in 6.1 to Documents and Media and as a result of this rewrite all the APIs have changed. Now you should use DLAppServiceUtil.addFileEntry().
Nagaraja Chokkavarapu
RE: Liferay 6.1 Add images to folder
7 de marzo de 2012 6:29
Respuesta

Nagaraja Chokkavarapu

Ranking: Junior Member

Mensajes: 39

Fecha de incorporación: 14 de septiembre de 2009

Mensajes recientes

Thanks a lot Mika.

Nagaraja
Rose Walt
RE: Liferay 6.1 Add images to folder
5 de diciembre de 2012 17:46
Respuesta

Rose Walt

Ranking: New Member

Mensajes: 12

Fecha de incorporación: 8 de noviembre de 2012

Mensajes recientes

Thanks Mika,

But how can we find such kind of information with out asking it in the forum? Could you point us to a documentation that has a list of classes that got replaced/moved/refactored/changed and where the corresponding functionality could be found?

say an old class C has a method foo() in package poo that was replaced class R and the method renamed to bar() in package boo.

How can we know of such migration? where is the central documenatation of the
Note: I'm not asking API - i have both the old and the new API docs, I also have the old and the new code. How can i get what functionality is moved where?

Thanks,
Rose
Henrique Simoes de Andrade
RE: Liferay 6.1 Add images to folder
7 de diciembre de 2012 9:40
Respuesta

Henrique Simoes de Andrade

Ranking: Regular Member

Mensajes: 165

Fecha de incorporación: 30 de abril de 2010

Mensajes recientes

I need that information too.
Anónimo
RE: Liferay 6.1 Add images to folder
7 de diciembre de 2012 9:48
Respuesta

Anónimo

Rose Walt:

But how can we find such kind of information with out asking it in the forum?


this has some api changes
http://www.liferay.com/community/wiki/-/wiki/Main/Upgrade+6.0+plugins+to+6.1
Henrique Simoes de Andrade
RE: Liferay 6.1 Add images to folder
7 de diciembre de 2012 10:39
Respuesta

Henrique Simoes de Andrade

Ranking: Regular Member

Mensajes: 165

Fecha de incorporación: 30 de abril de 2010

Mensajes recientes

Thank you!
A lot of work to do migrating from 6.0.5 to 6.1.1... emoticon
Sergio Romero Zayas
RE: Liferay 6.1 Add images to folder
5 de julio de 2013 3:14
Respuesta

Sergio Romero Zayas

Ranking: Regular Member

Mensajes: 115

Fecha de incorporación: 14 de abril de 2008

Mensajes recientes

Bradley Wood:
Rose Walt:

But how can we find such kind of information with out asking it in the forum?


this has some api changes
http://www.liferay.com/community/wiki/-/wiki/Main/Upgrade+6.0+plugins+to+6.1


This information is insufficient.

For example:

In the past to add an image in Liferay 6.0.x was used ->
IGImage image = IGImageServiceUtil.addImage(groupId, folderId, name, description, file, contentType, serviceContext);

Now Mika says you have to use DLAppServiceUtil.addFileEntry. Apart from not return an object IGImage type, you need diferent parameters that were not previously used.

DLAppServiceUtil.addFileEntry (repositoryId, folderId, sourceFileName, mimeType, title, description, changelog, is, size, ServiceContext)

From where I get "repositoryId"?

Excuse my English is not good. But I believe many people think like me.