Oracle® Fusion Middleware Developer's Guide for Oracle WebCenter 11g Release 1 (11.1.1.5.0) Part Number E10148-13 |
|
|
View PDF |
This chapter provides an overview of People Connections service data controls and Java APIs. It further provides details about each data control and how to add it to your project and a pointer to information about how to use data controls in a WebCenter Portal application.
This chapter includes the following sections:
The People Connections service provides data controls that enables you to create your own visualization of the People Connections functionality. This section provides an overview of the following data controls and lists and describes their supported methods, attributes, and classes:
People Connections Management Data Control
Profile Data Control
This section includes the following subsections:
Add a data control to your project by right-clicking it in the Resource Palette and selecting Add to Project from the resulting context menu. Once added, you can browse the data control's methods and attributes by expanding it in the Data Controls panel in the Application Navigator.
Add a data control to an application page by dragging it onto the page from the Data Controls panel. Once placed, a context menu opens with options for selecting the type of component to which to bind the data, such as a button or a text box.
See Also:
For information about using data controls in a WebCenter Portal application, see Section 7.1.3, "Using WebCenter Data Controls."The People Connections Management Data Control provides methods for adding and managing connections and connections lists. The primary methods exposed include:
getNumberOfConnections(String userid, String connectionListName, String filterPattern)
inviteUserForConnection(String userid, String invitationMessage, Collection connectionListNames)
removeConnection(String userid, boolean fromListOnly, String listName)
searchUsers(String filterPattern, int startIndex, int fetchSize)
updateConnectionListsMembership(String member, Collection addListIds, Collection removeListIds)
The subsections in this section list and describe the methods associated with the People Connections Management Data Control.
A collection of details about connections lists, including the list ID, name, localized name, number of members, whether or not the list is modifiable, and member user IDs. Table 40-1 lists and describes the attributes associated with this method.
Table 40-1 Attributes of the Method connectionLists
Attribute | Description |
---|---|
|
The connections lists IDs |
|
The names of connections lists |
|
The localized names of connections lists |
|
The number of members on each named connections list |
|
Information about whether a named connections list can be modified |
|
The user IDs of members on each named connections list |
The number of connections contained in each connections group.
A collection of details about a received invitation to connect, including when the invitation was sent and received, the invitation's GUID, the invitation message, and the user IDs of the user who sent the invitation and who received it. Table 40-2 lists and describes the attributes associated with this method.
Table 40-2 Attributes of the Method receivedInvitations
Attribute | Description |
---|---|
|
The date the invitation was received according to the recipient's time stamp |
|
The date the inviation was sent according to the sender's time stamp. |
|
The GUID of the received invitation |
|
The invitation message |
|
The user ID of the person who received the invitation |
|
The user ID of the person who sent the invitation |
|
The date the invitation was sent according to the system time stamp |
A collection of details about a sent invitation to connect, including when the invitation was sent and received, the invitation's GUID, the invitation message, and the user IDs of the user who sent the invitation and who received it. lists and describes the attributes associated with this method. Table 40-3 lists and describes the attributes associated with this method.
Table 40-3 Attributes of the Method sentInvitations
Attribute | Description |
---|---|
|
The date the invitation was received according to the recipient's time stamp |
|
The date the inviation was sent according to the sender's time stamp |
|
The unique GUID of the received invitation |
|
The invitation message |
|
The user ID of the person who received the invitation |
|
The user ID of the person who sent the invitation |
|
The date the invitation was sent according to the system time stamp |
A method for accepting invitations to connect. Table 40-4 lists and describes the parameters associated with this method.
A method for adding identified users to a named connections list. Table 40-5 lists and describes the parameters associated with this method.
A method for creating a connections list. Table 40-6 lists and describes the parameters associated with this method.
A method for declining an invitation to connect. Table 40-7 lists and describes the parameters associated with this method.
Method for deleting a connections list. Table 40-8 lists and describes the parameters associated with this method.
Returns an object that represents a Connections List. This object provides details about a connections list acquired for the given connection list name. Table 40-9 lists and describes the parameters associated with this method. Table 40-10 lists and describes the attributes associated with this method.
Table 40-9 Parameters of the Method getConnectionList
Parameter | Description |
---|---|
connectionListName |
The name of the connections list for which to return the following attributes (see Table 40-10):
|
Table 40-10 Attributes of the Method getConnectionList
Attribute | Description |
---|---|
|
The unique GUID of the connections list to return |
|
The name of the connections list to return |
|
The localized name of the connections list to return |
|
The number of members on the connections list to return |
|
An indicator of whether the returned connections list can be modified |
|
The user IDs of the members of a returned connections list |
Returns the Connection
object, which provides details about the connection, including the connection's user ID, the connections lists on which the connection is a member, and details from a connection's profile. Table 40-11 lists and describes the parameters associated with this method. Table 40-12 lists and describes the attributes associated with this method.
Table 40-11 Parameters of the Method getConnections
Parameter | Description |
---|---|
|
The user ID for each returned connection |
|
The name of the connection list from which to obtain connections |
|
A filter to use against returned connections, such as "co," which returns |
|
The order by which to sort connections Enter |
|
The point from which to start fetching results This is used for pagination. For example, the search can return 50 matching records, and only 10 are needed, starting from 1. Set |
|
The number of results to return (see |
Returns the number of users (int
) connected to the identified user. Table 40-13 lists and describes the parameters associated with this method. Table 40-14 lists and describes the attributes associated with this method.
Table 40-13 Parameters of the Method getNumberOfConnections
Parameter | Description |
---|---|
|
The user ID for whom to return the number of connections |
|
The name of the connection list from which to obtain a count |
|
A filter to use against returned connections, such as "co," which returns |
Specifies that the invitation with the specified ID should be ignored. Table 40-15 lists and describes the parameters associated with this method.
A means of inviting the user with the specified user ID to connect. Includes the invitation message, such as, "I would like you to be my connection." Also includes one or more connection list names to which to add the invitee once the invitation is accepted. Table 40-16 lists and describes the parameters associated with this method.
Returns true or false (boolean
) as to whether the named connections list can be modified. Table 40-17 lists and describes the parameters associated with this method. Table 40-18 lists and describes the attributes associated with this method.
Returns true or false (boolean) as to whether the identified user is a member of a connections list that cannot be modified. Table 40-19 lists and describes the parameters associated with this method.
A method for removing the identified connection either as a connection or from a connections list. Table 40-20 lists and describes the parameters associated with this method.
Table 40-20 Parameters of the Method removeConnection
Parameter | Description |
---|---|
|
The user name of the connection to remove from the specified list |
|
A flag (true or false) indicating whether to remove the user as a connection or remove the user only from the specified connections list |
|
The name of the connections list from which to remove the specified user |
Returns the object Users
, which is a collection of details about returned users, including the user's relational attributes, GUID, and profile details. Table 40-21 lists and describes the parameters associated with this method. Table 40-22 lists and describes the attributes associated with this method.
Table 40-21 Parameters of the Method searchUsers
Parameter | Description |
---|---|
|
A filter to use against returned search terms, such as "co," which returns |
|
The point from which to start fetching results This is used for pagination. For example, the search can return 50 matching records, and only 10 are needed, starting from 1. Set |
|
The number of results to return (see |
Provides a means of updating an identified connection's list membership by adding the connection to identified connections lists and removing the connection from identified connections lists. Table 40-23 lists and describes the parameters associated with this method.
Table 40-23 Parameters of the updateConnectionListsMembership Method
Parameter | Description |
---|---|
|
The user name of the member whose connections list membership to manage |
|
The names of the connections lists to which to add the identified user |
|
The names of the connections lists from which to remove the identified user |
The Profile Data Control provides methods for returning and updating Profile details.
The subsections in this section list and describe the methods associated with the Profile Data Control.
A method for returning the WCUserProfile
object, which is a collection of user Profile details. Table 40-24 lists and describes the parameters associated with this method.
Table 40-24 Parameters for the getProfile Method
Parameter | Description |
---|---|
|
The ID of the user for whom to return Profile details |
Tip:
To see the attributes associated with theWCUserProfile
object, expand the WCUserProfile
node under the getProfile
method on the Data Controls panel in the Application Navigator.A method for updating the WCUserProfile
object, which is a collection of user Profile details. Table 40-25 lists and describes the parameters associated with this method.
The People Connections service has associated Java APIs that you can use to work with service features. These include:
oracle.webcenter.peopleconnections.connections
oracle.webcenter.peopleconnections.wall
oracle.webcenter.activitystreaming
Look in Oracle Fusion Middleware Java API Reference for Oracle WebCenter for more information