Fórumok
Liferay 6.1 Add images to folder
Nagaraja Chokkavarapu, módosítva 12 év-val korábban
Liferay 6.1 Add images to folder
Junior Member Bejegyzések: 39 Csatlakozás dátuma: 2009.09.14. Legújabb bejegyzések
Hi,
In Liferay 6.1 following code is breaking.
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
In Liferay 6.1 following code is breaking.
IGImageLocalServiceUtil.addImage(userId, groupId, folderId, name, description, file, contentType, new ServiceContext());
IGImageLocalServiceUtil.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, módosítva 12 év-val korábban
RE: Liferay 6.1 Add images to folder
Liferay Legend Bejegyzések: 1519 Csatlakozás dátuma: 2006.08.07. Legújabb bejegyzések
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, módosítva 12 év-val korábban
RE: Liferay 6.1 Add images to folder
Junior Member Bejegyzések: 39 Csatlakozás dátuma: 2009.09.14. Legújabb bejegyzések
Thanks a lot Mika.
Nagaraja
Nagaraja
Rose Walt, módosítva 11 év-val korábban
RE: Liferay 6.1 Add images to folder
New Member Bejegyzések: 12 Csatlakozás dátuma: 2012.11.08. Legújabb bejegyzések
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 [mapping]
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
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 [mapping]
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, módosítva 11 év-val korábban
RE: Liferay 6.1 Add images to folder
Regular Member Bejegyzések: 165 Csatlakozás dátuma: 2010.04.30. Legújabb bejegyzések
I need that information too.
Bradley Wood, módosítva 11 év-val korábban
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.
RE: Liferay 6.1 Add images to folder
Henrique Simoes de Andrade, módosítva 11 év-val korábban
RE: Liferay 6.1 Add images to folder
Regular Member Bejegyzések: 165 Csatlakozás dátuma: 2010.04.30. Legújabb bejegyzések
Thank you!
A lot of work to do migrating from 6.0.5 to 6.1.1...
A lot of work to do migrating from 6.0.5 to 6.1.1...
Sergio Romero Zayas, módosítva 10 év-val korábban
RE: Liferay 6.1 Add images to folder
Regular Member Bejegyzések: 151 Csatlakozás dátuma: 2008.04.14. Legújabb bejegyzésekBradley 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.