org.exoplatform.forum
Class ForumSessionUtils

java.lang.Object
  extended by org.exoplatform.forum.ForumSessionUtils

public class ForumSessionUtils
extends java.lang.Object

Created by The eXo Platform SAS Author : Vu Duy Tu tu.duy@exoplatform.com


Constructor Summary
ForumSessionUtils()
           
 
Method Summary
static java.lang.String checkValueUser(java.lang.String values)
           
static java.util.List<java.lang.String> getAllGroupAndMembershipOfUser(java.lang.String userId)
           
static java.util.List<org.exoplatform.services.organization.User> getAllUser()
           
static java.lang.String getBreadcumbUrl(java.lang.String link, java.lang.String componentName, java.lang.String actionName, java.lang.String objectId)
           
static java.lang.String getCurrentUser()
           
static java.lang.String getEmailUser(java.lang.String userName)
           
static java.lang.String getFileSource(java.io.InputStream input, java.lang.String fileName, org.exoplatform.download.DownloadService dservice)
           
static org.exoplatform.commons.utils.PageList getPageListUser()
           
static ForumContact getPersonalContact(java.lang.String userId)
           
static java.lang.String getUserAvatarURL(java.lang.String userName, ForumService forumService, org.exoplatform.download.DownloadService dservice)
           
static java.util.List<org.exoplatform.services.organization.User> getUserByGroupId(java.lang.String groupId)
           
static org.exoplatform.services.organization.User getUserByUserId(java.lang.String userId)
           
static java.lang.String[] getUserGroups()
           
static boolean hasGroupIdAndMembershipId(java.lang.String str, org.exoplatform.services.organization.OrganizationService organizationService)
           
static boolean hasUserInGroup(java.lang.String groupId, java.lang.String userId)
           
static boolean isAnonim()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForumSessionUtils

public ForumSessionUtils()
Method Detail

getCurrentUser

public static java.lang.String getCurrentUser()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

getEmailUser

public static java.lang.String getEmailUser(java.lang.String userName)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getAllGroupAndMembershipOfUser

public static java.util.List<java.lang.String> getAllGroupAndMembershipOfUser(java.lang.String userId)
                                                                       throws java.lang.Exception
Throws:
java.lang.Exception

isAnonim

public static boolean isAnonim()
                        throws java.lang.Exception
Throws:
java.lang.Exception

getUserAvatarURL

public static java.lang.String getUserAvatarURL(java.lang.String userName,
                                                ForumService forumService,
                                                org.exoplatform.download.DownloadService dservice)

getFileSource

public static java.lang.String getFileSource(java.io.InputStream input,
                                             java.lang.String fileName,
                                             org.exoplatform.download.DownloadService dservice)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getUserGroups

public static java.lang.String[] getUserGroups()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

getPageListUser

public static org.exoplatform.commons.utils.PageList getPageListUser()
                                                              throws java.lang.Exception
Throws:
java.lang.Exception

getAllUser

public static java.util.List<org.exoplatform.services.organization.User> getAllUser()
                                                                             throws java.lang.Exception
Throws:
java.lang.Exception

getUserByUserId

public static org.exoplatform.services.organization.User getUserByUserId(java.lang.String userId)
                                                                  throws java.lang.Exception
Throws:
java.lang.Exception

getUserByGroupId

public static java.util.List<org.exoplatform.services.organization.User> getUserByGroupId(java.lang.String groupId)
                                                                                   throws java.lang.Exception
Throws:
java.lang.Exception

hasUserInGroup

public static boolean hasUserInGroup(java.lang.String groupId,
                                     java.lang.String userId)
                              throws java.lang.Exception
Throws:
java.lang.Exception

hasGroupIdAndMembershipId

public static boolean hasGroupIdAndMembershipId(java.lang.String str,
                                                org.exoplatform.services.organization.OrganizationService organizationService)
                                         throws java.lang.Exception
Throws:
java.lang.Exception

checkValueUser

public static java.lang.String checkValueUser(java.lang.String values)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

getPersonalContact

public static ForumContact getPersonalContact(java.lang.String userId)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

getBreadcumbUrl

public static java.lang.String getBreadcumbUrl(java.lang.String link,
                                               java.lang.String componentName,
                                               java.lang.String actionName,
                                               java.lang.String objectId)
                                        throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2010 eXo Platform SAS. All Rights Reserved.