Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.6.0)
E15995-05


oracle.webcenter.activitystreaming
Interface ActorDetailsManager


public interface ActorDetailsManager

This interface represents a data manager for actor details table. It contains various methods to insert actor information, getting total actors, marking actors outdated etc. All the operations happen under transaction. One can start the updated with beginTransaction() and he can make changes an commit the changes. There is a call to rollback the transaction as well


Method Summary
 void beginTransaction()
          Start the resource transaction.
 void commitTransaction()
          Commit the current transaction, writing any unflushed changes to the database.
 java.util.List<java.lang.String> getActorIds(int startIndex, int size, java.util.Date lastCrawlTime)
          This API gets the ActorIds [i.e.
 int getTotalNumRows(java.util.Date updationDate)
          This method returns total no.
 void insertActorBasicInfo(java.lang.String guid, java.lang.String name)
          This method updates the actor details table with the basic details.
 ActorDetails lookup(java.lang.String actorGUID)
           
 void markAllActorsAsOutdated()
          This method marks all the actors as obsolate or outdated
 void rollBackTransaction()
          Roll back the current transaction
 void updateActorDetails(java.lang.String guid, java.lang.String username, java.util.Map<java.lang.String,java.lang.String> displayNamesByLocale, java.lang.String email, java.lang.String department, java.lang.String jobTitle, java.lang.String manager)
          Updates the Actor details table with the information provided.
 void updateActorDetails(java.lang.String guid, java.lang.String userId, java.lang.String displayName, java.lang.String email, java.lang.String department, java.lang.String job_title, java.lang.String manager)
          Deprecated. Use updateActorDetails(String, String, Map, String, String, String, String).

 

Method Detail

getTotalNumRows

int getTotalNumRows(java.util.Date updationDate)
This method returns total no. of rows that exist in Actor details table. It does not return the details of those actors who have become obsolate. If the date is provided, then it will get the count of those users who are updated after given date
Parameters:
updationDate -

insertActorBasicInfo

void insertActorBasicInfo(java.lang.String guid,
                          java.lang.String name)
This method updates the actor details table with the basic details. for e.g. user name, user GUID etc. if it does not exist
Parameters:
guid - GUID of the user
name - Name of the user

markAllActorsAsOutdated

void markAllActorsAsOutdated()
This method marks all the actors as obsolate or outdated

getActorIds

java.util.List<java.lang.String> getActorIds(int startIndex,
                                             int size,
                                             java.util.Date lastCrawlTime)
This API gets the ActorIds [i.e. names] from the startIndex. The returned data is of a fixed size. Depending upon the last updated date, it will return all the actors which got updated after that. If last update date is null, it will return all the Actors in the details table. after This API does not return obsolete Actors
Parameters:
startIndex - Starting Index
size - Size of the result set
lastCrawlTime - The Date onwards

updateActorDetails

void updateActorDetails(java.lang.String guid,
                        java.lang.String username,
                        java.util.Map<java.lang.String,java.lang.String> displayNamesByLocale,
                        java.lang.String email,
                        java.lang.String department,
                        java.lang.String jobTitle,
                        java.lang.String manager)
Updates the Actor details table with the information provided.

If actor is not found in the table, it will create a new entry for this actor and set the last updated date for the new row to current system date.

Parameters:
guid - GUID of the user
username - User name
displayNamesByLocale - Map of display names of the user keyed by locale (and with key "*" pointing to the default, non-locale-specific, display name of the user).
email - Business Email
department - Department
jobTitle - Expertise or Job title
manager - manager

updateActorDetails

@Deprecated
void updateActorDetails(java.lang.String guid,
                                   java.lang.String userId,
                                   java.lang.String displayName,
                                   java.lang.String email,
                                   java.lang.String department,
                                   java.lang.String job_title,
                                   java.lang.String manager)
Deprecated. Use updateActorDetails(String, String, Map, String, String, String, String).

lookup

ActorDetails lookup(java.lang.String actorGUID)

beginTransaction

void beginTransaction()
Start the resource transaction.

commitTransaction

void commitTransaction()
Commit the current transaction, writing any unflushed changes to the database.

rollBackTransaction

void rollBackTransaction()
Roll back the current transaction

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.6.0)
E15995-05


Copyright © 2009, 2012, Oracle and/or its affiliates. All rights reserved.