Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Ken Vida
Importing a large amount of user photos
5 aprile 2012 11.32
Risposta

Ken Vida

Punteggio: New Member

Messaggi: 15

Data di Iscrizione: 14 marzo 2012

Messaggi recenti

Is there a mechanism to import user photos into the user store instead of 1 by 1? We have a requirement to add 1000 users with photos and are trying to determine if there is a fast, reliable way to do this.

Thank you in advance.
Gwowen Fu
RE: Importing a large amount of user photos
5 aprile 2012 13.39
Risposta

Gwowen Fu

Punteggio: Expert

Messaggi: 315

Data di Iscrizione: 27 dicembre 2010

Messaggi recenti

You can try "File System Repository 1.0" plugin at http://www.liferay.com/downloads/liferay-portal/community-plugins/-/software_catalog/products/12692227.

See if this meets your need.
Roshan Qureshi
RE: Importing a large amount of user photos
8 aprile 2012 23.31
Risposta

Roshan Qureshi

Punteggio: Regular Member

Messaggi: 144

Data di Iscrizione: 24 agosto 2010

Messaggi recenti

Hi Ken,

Can you explain in detail what exactly your requirement is.
User photo means portrait photo (one for each user) of the user or photos for user in image galary or document library.

Thanks,
Roshan
Ken Vida
RE: Importing a large amount of user photos
9 aprile 2012 6.00
Risposta

Ken Vida

Punteggio: New Member

Messaggi: 15

Data di Iscrizione: 14 marzo 2012

Messaggi recenti

Roshan,
I am talking about the portrait photo which is part of the User and yes, there is only one per instance. Trying to find a way to upload a large number of photos systematically from a file system rather than one at a time through the console.

Any assistance you can provide would be greatly appreciated.

Thanks,
Ken
Hitoshi Ozawa
RE: Importing a large amount of user photos
9 aprile 2012 6.04
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7949

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

If it's uploading user portraits, it's probably easiest to create a portlet for that purpose because you'll have to associate a photo with userId.
Roshan Qureshi
RE: Importing a large amount of user photos
9 aprile 2012 23.28
Risposta

Roshan Qureshi

Punteggio: Regular Member

Messaggi: 144

Data di Iscrizione: 24 agosto 2010

Messaggi recenti

Hi Ken,

You can use
updatePortrait(long userId,
byte[] bytes)

method of UserLocalServiceUtil.java to update the user portrait.
For this I think you can create a portlet which will fetch all users from liferay and for each userId you can fetch photos from your local and can update the same using above method.

I hope this will be easy way for this.
Hitoshi Ozawa
RE: Importing a large amount of user photos
10 aprile 2012 18.03
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7949

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

This may be easier if you're new to portlet development.

http://www.liferay.com/community/forums/-/message_boards/message/8326730