|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.wcm.ext.component.activity.listener.Utils
public class Utils
Created by The eXo Platform SAS Author : eXoPlatform exo@exoplatform.com Mar 18, 2011
| Constructor Summary | |
|---|---|
Utils()
|
|
| Method Summary | |
|---|---|
static org.exoplatform.social.core.activity.model.ExoSocialActivity |
createActivity(org.exoplatform.social.core.manager.IdentityManager identityManager,
java.lang.String activityOwnerId,
javax.jcr.Node node,
java.lang.String activityMsgBundleKey)
Create ExoSocialActivity |
static java.lang.String |
generateThumbnailImageURI(javax.jcr.Node file)
Generate the Thumbnail Image URI. |
static java.lang.String |
getContentLink(javax.jcr.Node node)
Generate the viewer link to site explorer by node |
static java.lang.String |
getIllustrativeImage(javax.jcr.Node node)
Gets the illustrative image. |
static java.lang.String |
getMimeType(javax.jcr.Node node)
Get the MimeType |
static java.util.Map<java.lang.String,java.lang.String> |
populateActivityData(javax.jcr.Node node,
java.lang.String activityOwnerId,
java.lang.String activityMsgBundleKey)
Populate activity data with the data from Node |
static void |
postActivity(javax.jcr.Node node,
java.lang.String activityMsgBundleKey)
post activity to the activity stream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Utils()
| Method Detail |
|---|
public static java.util.Map<java.lang.String,java.lang.String> populateActivityData(javax.jcr.Node node,
java.lang.String activityOwnerId,
java.lang.String activityMsgBundleKey)
throws java.lang.Exception
Node - the nodeString - the message of the activity
java.lang.Exception
public static void postActivity(javax.jcr.Node node,
java.lang.String activityMsgBundleKey)
throws java.lang.Exception
String - the activity invokernode - the node
java.lang.Exception
public static java.lang.String getContentLink(javax.jcr.Node node)
throws javax.jcr.RepositoryException
Node - the node
javax.jcr.RepositoryException
public static org.exoplatform.social.core.activity.model.ExoSocialActivity createActivity(org.exoplatform.social.core.manager.IdentityManager identityManager,
java.lang.String activityOwnerId,
javax.jcr.Node node,
java.lang.String activityMsgBundleKey)
throws java.lang.Exception
IdentityManager - the identity ManagerString - the remote user name
java.lang.Exception - the activity storage exceptionpublic static java.lang.String getIllustrativeImage(javax.jcr.Node node)
node - the node
public static java.lang.String generateThumbnailImageURI(javax.jcr.Node file)
throws java.lang.Exception
node - the node
java.lang.Exception - the exceptionpublic static java.lang.String getMimeType(javax.jcr.Node node)
node - the node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||