[Building Sakai] Whay are these Profile2 settings not the default in Sakai 2.9 and later out of the box?

Steve Swinsburg steve.swinsburg at gmail.com
Mon May 28 16:40:48 PDT 2012


Hi Chuck,

> profile.manager.integration.bean=org.sakaiproject.profile2.legacy.ProfileManager

This has been the default since 2.8:
https://source.sakaiproject.org/svn/config/branches/sakai-2.9.x/configuration/bundles/src/bundle/org/sakaiproject/config/bundle/default.sakai.properties

> profile2.official.image.enabled=true


This one is a bit trickier as there are combinations of settings that you need to look at, which means a bit more work. So if the above setting was true, then:

# If enabled, where should Profile2 look for the officially provided images?
# If 'url', you need to add a URL for each user to the PROFILE_IMAGES_OFFICIAL_T table in the database.
# If 'provider', you need your UserDirectoryProvider implementation to add a BASE64 encoded image to a property
# on the User object. This is already in place for the LDAP provider, just setup the jpegPhoto attribute.
# See http://jira.sakaiproject.org/browse/SAK-17816.
profile2.official.image.source=url (url/provider, default url)

# If enabled and you set the source to 'provider' above you also need to specify the attribute,
# if different to this value.
profile2.official.image.attribute=jpegPhoto (default jpegPhoto)
 
# Note that if you want to use *only* officially provided images you also should set
# profile2.picture.type=official
# If you want to allow a user to choose either the official image or an uploaded/url one of their choice,
# do not set type=official and rather set profile2.picture.type=url/upload. They will then be able to choose
# to use either the official image, or one they select.
# Remember, you can always disable changes altogether via profile2.picture.change.enabled=false

So lots of paths depending on your circumstances.

That said, it could just be turned on and defaulted to URL, then the out of the box functionality would be that user would get the option to choose their official image as well as being able to upload one of their choosing, but they wouldn't have one so it would just show the default.

The full swag of settings are documented here:
https://confluence.sakaiproject.org/display/PROFILE/Profile2-Settings

cheers,
Steve


On 29/05/2012, at 3:14 AM, Charles Severance wrote:

> Just curious
> 
> profile2.official.image.enabled=true
> profile.manager.integration.bean=org.sakaiproject.profile2.legacy.ProfileManager
> 
> These seem like the most reasonable defaults from 2.9 and on.
> 
> /Chuck
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> 
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20120529/fbeecd88/attachment.html 


More information about the sakai-dev mailing list