public final class SocialCollectionHandler
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
initializeSocialCollection(java.lang.String gsaHost,
int gsaPort,
java.lang.String gsaAdmin,
java.lang.String gsaAdminPassword,
java.lang.String collectionName)
Initialize user profile collection.
|
static boolean |
validateCollectionName(java.lang.String collectionName)
Validates name of collection to consist of [a-z][A-Z][0-9]-_
|
public static boolean initializeSocialCollection(java.lang.String gsaHost, int gsaPort, java.lang.String gsaAdmin, java.lang.String gsaAdminPassword, java.lang.String collectionName)
_google_social_userprofile_collection
is used.gsaHost
- host address of GSAgsaPort
- port of GSA for gdata callgsaAdmin
- userId for making gdata call to GSAgsaAdminPassword
- password for making gdata call to GSAcollectionName
- name of the collection where user profiles will go.true
if social collection has been initialized successfullypublic static boolean validateCollectionName(java.lang.String collectionName)
collectionName
- name of collection