org.exoplatform.forum.create
Class CreateUtils

java.lang.Object
  extended by org.exoplatform.forum.create.CreateUtils

public class CreateUtils
extends Object


Field Summary
static String CATEGORY
           
static String SPACES_GROUP
           
 
Constructor Summary
CreateUtils()
           
 
Method Summary
static String buildLink(String categoryId, String forumId, String topicId)
           
static String buildLink(String categoryId, String forumId, String topicId, String siteName)
           
static String buildSpaceLink(String spaceGroupId, String objectType, String objectId)
           
static List<String> getAllPortalNames()
           
static String getCurrentPortalName()
           
static String getSiteHomeURL(String portalName, String nodeURI)
           
static String getSiteName(org.exoplatform.portal.mop.SiteKey siteKey)
           
static String getSpaceHomeURL(String spaceGroupId)
          Gets the space home url of a space.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPACES_GROUP

public static final String SPACES_GROUP
See Also:
Constant Field Values

CATEGORY

public static final String CATEGORY
See Also:
Constant Field Values
Constructor Detail

CreateUtils

public CreateUtils()
Method Detail

getAllPortalNames

public static List<String> getAllPortalNames()

getCurrentPortalName

public static String getCurrentPortalName()

buildLink

public static String buildLink(String categoryId,
                               String forumId,
                               String topicId)
Parameters:
categoryId -
forumId -
topicId -
Returns:

buildLink

public static String buildLink(String categoryId,
                               String forumId,
                               String topicId,
                               String siteName)
Parameters:
categoryId -
forumId -
topicId -
Returns:

buildSpaceLink

public static String buildSpaceLink(String spaceGroupId,
                                    String objectType,
                                    String objectId)
                             throws Exception
Parameters:
spaceGroupId -
objectType -
objectId -
Returns:
Throws:
Exception

getSiteName

public static String getSiteName(org.exoplatform.portal.mop.SiteKey siteKey)

getSiteHomeURL

public static String getSiteHomeURL(String portalName,
                                    String nodeURI)
Parameters:
portalName -
nodeURI -
Returns:

getSpaceHomeURL

public static String getSpaceHomeURL(String spaceGroupId)
Gets the space home url of a space.

Parameters:
spaceGroupId -
Returns:
Since:
4.0


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.