Package edu.ucsf.vitro.opensocial
Class OpenSocialManager
- java.lang.Object
-
- edu.ucsf.vitro.opensocial.OpenSocialManager
-
public class OpenSocialManager extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PERSONID_CHANNELstatic StringJSON_PMID_CHANNELstatic StringOPENSOCIAL_DEBUGstatic StringOPENSOCIAL_GADGETSstatic StringOPENSOCIAL_NOCACHEstatic StringSHINDIG_URL_PROPstatic StringTAG_NAME
-
Constructor Summary
Constructors Constructor Description OpenSocialManager(VitroRequest vreq, String pageName)OpenSocialManager(VitroRequest vreq, String pageName, boolean editMode)
-
Method Summary
-
-
-
Field Detail
-
SHINDIG_URL_PROP
public static final String SHINDIG_URL_PROP
- See Also:
- Constant Field Values
-
OPENSOCIAL_DEBUG
public static final String OPENSOCIAL_DEBUG
- See Also:
- Constant Field Values
-
OPENSOCIAL_NOCACHE
public static final String OPENSOCIAL_NOCACHE
- See Also:
- Constant Field Values
-
OPENSOCIAL_GADGETS
public static final String OPENSOCIAL_GADGETS
- See Also:
- Constant Field Values
-
JSON_PERSONID_CHANNEL
public static final String JSON_PERSONID_CHANNEL
- See Also:
- Constant Field Values
-
JSON_PMID_CHANNEL
public static final String JSON_PMID_CHANNEL
- See Also:
- Constant Field Values
-
TAG_NAME
public static final String TAG_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OpenSocialManager
public OpenSocialManager(VitroRequest vreq, String pageName) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
OpenSocialManager
public OpenSocialManager(VitroRequest vreq, String pageName, boolean editMode) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
-
Method Detail
-
clearCache
public static void clearCache()
-
isDebug
public boolean isDebug()
-
noCache
public boolean noCache()
-
getOwnerId
public String getOwnerId()
-
hasGadgetListeningTo
public boolean hasGadgetListeningTo(String channel)
-
getOpenSocialId
public static List<String> getOpenSocialId(List<Individual> individuals)
-
buildJSONPersonIds
public static String buildJSONPersonIds(Individual ind, String message)
-
removePubsubGadgetsWithoutData
public void removePubsubGadgetsWithoutData()
-
removeGadget
public void removeGadget(String name)
-
getPageName
public String getPageName()
-
getIdToUrlMapJavascript
public String getIdToUrlMapJavascript()
-
isVisible
public boolean isVisible()
-
getVisibleGadgets
public List<PreparedGadget> getVisibleGadgets()
-
postActivity
public void postActivity(int userId, String title) throws SQLException- Throws:
SQLException
-
postActivity
public void postActivity(int userId, String title, String body) throws SQLException- Throws:
SQLException
-
postActivity
public void postActivity(int userId, String title, String body, String xtraId1Type, String xtraId1Value) throws SQLException- Throws:
SQLException
-
getContainerJavascriptSrc
public String getContainerJavascriptSrc()
-
getGadgetJavascript
public String getGadgetJavascript()
-
-