public class ForumUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CATEGORY
The Constant CATEGORY.
|
static String |
COMMA
The Constant COMMA.
|
static String |
EMPTY_STR
The Constant EMPTY_STR.
|
static String |
FORUM
The Constant FORUM.
|
protected static org.exoplatform.services.log.Log |
LOG
The Constant LOG.
|
static long |
MAXMESSAGE
The Constant MAXMESSAGE.
|
static int |
MAXSIGNATURE
The Constant MAXSIGNATURE.
|
static int |
MAXTITLE
The Constant MAXTITLE.
|
static String |
POST
The Constant POST.
|
static String |
SLASH
The Constant SLASH.
|
static String |
SPACE_GROUP_ID
The Constant SPACE_GROUP_ID.
|
static String |
TAG
The Constant TAG.
|
static String |
TOPIC
The Constant TOPIC.
|
| Modifier and Type | Method and Description |
|---|---|
static String[] |
arraysMerge(String[] strs1,
String[] strs2)
Arrays merge.
|
static String |
buildLink(String portalURI,
String containerName,
String selectedNode,
String type,
String id,
boolean isPrivate)
Builds the link.
|
static String |
createdForumLink(String type,
String id,
boolean isPrivate)
Created forum link.
|
static String |
createdSubForumLink(String type,
String id,
boolean isPrivate)
Created sub forum link.
|
static String[] |
getCensoredKeyword(String stringKey)
Gets the censored keyword.
|
static org.exoplatform.forum.service.MessageBuilder |
getDefaultMail()
Gets the default mail.
|
static boolean |
isArrayEmpty(String[] strs)
Checks if is array empty.
|
static boolean |
isEmpty(String str)
Checks if is empty.
|
static String[] |
splitForForum(String str)
Split for forum.
|
public static final String CATEGORY
public static final String FORUM
public static final String TOPIC
public static final String POST
public static final String TAG
public static final String COMMA
public static final String SLASH
public static final String EMPTY_STR
public static final String SPACE_GROUP_ID
public static final int MAXSIGNATURE
public static final int MAXTITLE
public static final long MAXMESSAGE
protected static final org.exoplatform.services.log.Log LOG
public static String[] getCensoredKeyword(String stringKey)
stringKey - the string keypublic static boolean isEmpty(String str)
str - the strpublic static String createdForumLink(String type, String id, boolean isPrivate)
type - the typeid - the idisPrivate - the is privatepublic static String createdSubForumLink(String type, String id, boolean isPrivate)
type - the typeid - the idisPrivate - the is privatepublic static String buildLink(String portalURI, String containerName, String selectedNode, String type, String id, boolean isPrivate)
portalURI - the portal URIcontainerName - the container nameselectedNode - the selected nodetype - the typeid - the idisPrivate - the is privatepublic static String[] splitForForum(String str)
str - the strpublic static boolean isArrayEmpty(String[] strs)
strs - the strspublic static String[] arraysMerge(String[] strs1, String[] strs2)
strs1 - the strs 1strs2 - the strs 2public static org.exoplatform.forum.service.MessageBuilder getDefaultMail()
Copyright © 2003–2017 eXo Platform SAS. All rights reserved.