As an end-to-end solution that adds social networking features to existing host applications, the Sun Glassfish SocialSite software provides a library of social widgets that can be added to a web page. A SocialSite widget is an OpenSocial-compliant gadget that calls one or more SocialSite-specific extensions.
This chapter provides the following information for each SocialSite widget:
what the widget does
displayed information
actions
parameters
The All Groups widget shows a listing of all groups in the social graph. The All Groups widget uses the SocialSite REST API to obtain the listing.
List of groups
Link to a group's homepage
profileID |
Person whose groups are to be displayed |
height |
Height setting |
width |
Width setting |
The Dashboard widget provides a common page to access information about users, groups, activities, and message notifications.
Filtered list of activities |
List your activities |
List friend's activities |
Go to previous page |
Go to next page |
List of friends |
Filter search for all SocialSite users |
Filter search for all SocialSite users that are considered friends |
Filter search for all SocialSite users belonging to a specified group |
Specify user has no relationship |
Specify user has a contact relationship |
Specify user has a friend relationship |
Send e-mail to a user |
Invite a user to join a group |
Go to previous page |
Go to next page |
List of your groups |
Search for SocialSite groups |
Filter search by all SocialSite groups |
Filter search by SocialSite groups that you are a member |
Create group |
Go to previous page |
Go to next page |
List of notification messages |
Display received messages |
Display sent messages |
Accept request |
Ignore request |
Go to previous page |
Go to next page |
height |
Height setting |
width |
Width setting |
The Face widget displays a photo of the user.
Photo of user |
Save |
Cancel |
height |
Height setting |
width |
Width setting |
The Group Activities widget shows the most recent activities of a selected group.
Icon associated with subject |
Link to a Person/Group Profile of subject |
Link to Person/Group Profile of object |
Time of activity |
Display activities. |
groupID |
View activities of this group |
height |
Height setting |
width |
Width setting |
The Group Members widget displays the members of a group.
List of group members |
Show which group |
Send e-mail |
handle |
Group ID |
height |
Height setting |
width |
Width setting |
The Group Profile widget displays the profile information of a group. The Group Profile widget uses the SocialSite REST API to obtain the group properties. The Group Profile widget uses the SocialSite REST API to send the Apply to Join request.
Group logo |
Group name |
Group description |
Group properties (as determined by viewer's membership status) |
Apply-to-join group |
Leave group if member and leaving group is allowed |
Mail group |
Invite user to join group |
handle |
Group ID |
height |
Height setting |
width |
Width setting |
The Owner's Activities widget shows the most recent activities of a user. The Owner Activities widget retrieves user activities using the OpenSocial REST API (in JSON format).
Activity content |
Icon associated with subject |
Time of activity |
Display activities |
profileID |
View activities of this user |
height |
Height setting |
width |
Width setting |
The Owner's Friends widget displays the friends of the owner.
List of user's friends |
Invite friend to join a group |
Send e-mail to a friend |
profileID |
View activities of this user |
height |
Height setting |
width |
Width setting |
The Owner's Groups widget displays a listing of the groups that the owner is a member.
List of groups |
Link to a group's homepage (visibility determined by the owner's membership) |
Invite user to join group |
Next/previous links if listing is more than one page |
profileID |
View activities of this user |
height |
Height setting |
width |
Width setting |
The People widget browses all people in the social graph. The People widget uses the OpenSocial REST API to fetch the friend list.
Name of user |
Next page/previous page buttons if more than one page of results |
Display profile (per user) |
Send e-mail message (per user) |
Add As Friend (per user) |
height |
Height setting |
width |
Width setting |
The Profile Editor widget edits the profile of a user. The Displayed Information section displays the default values.
Tab |
Attribute |
Field |
---|---|---|
Identification |
Nickname Display Name Tags |
|
Name |
First Name Last Name Middle Name Subtitle Unstructured |
|
|
Web Sites | |
Contact |
Primary E-mail Additional E-mail Addresses Instant Messenger Accounts |
|
Extended |
Current Location |
Street Address Extended Address City State ZIP code Country Type |
Additional Phone Numbers |
||
Addresses |
||
Personal |
About Me Gender Activities Interests Music Movies Books TV Humor Food Fashion Cars Sports Heroes Quotes Religion Political Views Happiest When Scared Of |
|
Song |
URL Link Title Type |
|
Video |
URL Link Title Type |
|
More Personal |
Age Birthday Relationship Status Children Drinker Smoker Romance Looking For Sexual Orientation Living Arrangement Turn Ons Turn Offs |
|
Body Type |
Build Eye Color Hair Color Height Weight |
|
Experience |
Interests Experiences |
|
Education |
Schools |
|
Privacy |
Save changes to profile settings |
Cancel changes to profile settings |
profileID |
Profile ID to be displayed |
height |
Height setting |
width |
Width setting |
The Profile Viewer widget displays the profile of a user.
Public profile summary |
Edit |
profileID |
Profile ID to be displayed |
height |
Height setting |
width |
Width setting |
The Status widget allows the status of a user to be updated.
Text box for entering current status and an Update Status button |
Update status |
height |
Height setting |
width |
Width setting |
The Viewer and Friends Activities widget shows the most recent activities of a user and associated friends. The Viewer and Friends Activities widget retrieves user and friends activities using the OpenSocial REST API (in JSON format). The Viewer and Friends Activities widget retrieves group activities using the SocialSite REST API (in JSON format.)
Icon associated with subject |
Link to a Person/Group Profile of subject (per activity) |
Link to Person/Group Profile of object (per activity) |
Time of activity |
Display activities. |
profileID |
View activities of this person |
groupID |
View activities of this group |
height |
Height setting |
width |
Width setting |
The Viewer's Friends widget displays the friends of the viewer.
List of viewer's friends |
Invite to join a group |
Send e-mail |
profileID |
View whose friends to display |
height |
Height setting |
width |
Width setting |
The Viewer's Groups widget displays a listing of the groups that the viewer is a member.
List of groups |
Link to a group's homepage (visibility determined by the owner's membership) |
Invite user to join group |
Next Page/Previous Page links if listing is more than one page |
profileID |
Person whose groups to display |
height |
Height setting |
width |
Width setting |