syncbase/src/main/java/io/v/syncbase/Syncbase.java
/**
     * Advertises the logged in user's presence to a limited set of users who must be around them.
     *
     * @param usersWhoCanSee The set of users who are allowed to find this user.
     */
Advertises the logged in user's presence to a limited set of users who must be around them.
@param usersWhoCanSee The set of users who are allowed to find this user.
Advertises the logged in user ' s presence to a limited set of users who must be around them . @param usersWhoCanSee The set of users who are allowed to find this user .
public static void advertiseLoggedInUserInNeighborhood(Iterable<User> usersWhoCanSee) throws SyncbaseException {
        List<String> visibility = new ArrayList<String>();
        for (User user : usersWhoCanSee) {
            visibility.add(Syncbase.getBlessingStringFromAlias(user.getAlias()));
        }
        try {
            Neighborhood.StartAdvertising(visibility);
        } catch(VError e) {
            chainThrow("advertising user in neighborhood", e);
            throw new AssertionError("never happens");
        }
    }
public static void advertiseLoggedInUserInNeighborhood ( Iterable < User > usersWhoCanSee ) throws SyncbaseException { List < String > visibility = new ArrayList < String > ( ) ; for ( User user : usersWhoCanSee ) { visibility . add ( Syncbase . getBlessingStringFromAlias ( user . getAlias ( ) ) ) ; } try { Neighborhood . StartAdvertising ( visibility ) ; } catch ( VError e ) { chainThrow ( "advertising user in neighborhood" , e ) ; throw new AssertionError ( "never happens" ) ; } }
Advertises the logged in user's presence to a limited set of users who must be around them.
Advertises the logged in user ' s presence to a limited set of users who must be around them .