|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portlet.forums.helper.ForumsTools
Field Summary | |
private static StandardAnalyzer |
analyzer
|
private static Query |
DUMMY_QUERY
|
private static org.apache.log4j.Logger |
log
|
Constructor Summary | |
ForumsTools()
|
Method Summary | |
static void |
authCan(java.lang.StringBuffer authCan,
JBossRenderRequest req,
java.lang.String[] testArray,
java.util.ResourceBundle bundle)
|
static void |
batchUpdate(java.sql.Connection conn,
java.lang.String updateQuery,
java.lang.String selectQuery,
int size)
Performs a generic batch update. |
static java.lang.String[][] |
collectFields(java.lang.Class clazz,
java.lang.String prefix)
DOCUMENT_ME |
static java.lang.String |
computeCacheKey(boolean format_1_00,
java.lang.String forumId)
DOCUMENT_ME |
static java.lang.String |
createImageLink(java.lang.String url,
java.lang.String image,
java.lang.String title)
DOCUMENT_ME |
static java.lang.String |
createImageLink(java.lang.String url,
java.lang.String image,
java.lang.String title,
java.lang.String alt)
DOCUMENT_ME |
static java.lang.String |
createImageLink(java.lang.String url,
java.lang.String target,
java.lang.String image,
java.lang.String title,
java.lang.String alt)
DOCUMENT_ME |
static java.lang.String |
createLink(java.lang.String url,
java.lang.String text)
DOCUMENT_ME |
static java.lang.String |
createLink(java.lang.String url,
java.lang.String target,
java.lang.String text)
DOCUMENT_ME |
static Query |
createQuery(java.lang.String text,
java.lang.String field,
boolean isOr)
DOCUMENT_ME |
static boolean |
hasPermission(PortletRequest req,
java.lang.String perm)
|
static boolean |
hasPermission(PortletRequest req,
java.lang.String[] test,
java.lang.String permission)
|
static java.lang.Object |
head(java.util.Collection c)
DOCUMENT_ME |
static boolean |
isNullOrBlank(java.lang.String s)
DOCUMENT_ME |
static java.lang.String |
listCategories(java.util.List categories,
int selectedId)
DOCUMENT_ME |
static java.lang.String |
listForums(java.util.List forums,
int selectedId)
DOCUMENT_ME |
static java.lang.String |
listForumsCategories(ForumsModule module)
DOCUMENT_ME |
static java.lang.String |
listTopics(java.util.List forums)
returns html |
static java.lang.String |
pageNumber(int start,
int size,
int per)
DOCUMENT_ME |
static void |
radioButton(java.lang.StringBuffer buffer,
java.lang.String name,
java.lang.String value,
boolean selected)
DOCUMENT_ME |
static java.lang.String |
selectDays(java.lang.String name,
int days)
DOCUMENT_ME |
static java.lang.String |
selectEJBs(javax.ejb.EJBLocalHome home,
java.lang.reflect.Method getter,
java.lang.Object key,
boolean all)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final org.apache.log4j.Logger log
private static final StandardAnalyzer analyzer
private static final Query DUMMY_QUERY
Constructor Detail |
public ForumsTools()
Method Detail |
public static void authCan(java.lang.StringBuffer authCan, JBossRenderRequest req, java.lang.String[] testArray, java.util.ResourceBundle bundle)
public static void radioButton(java.lang.StringBuffer buffer, java.lang.String name, java.lang.String value, boolean selected)
buffer
- DOCUMENT_MEname
- DOCUMENT_MEvalue
- DOCUMENT_MEselected
- DOCUMENT_MEpublic static java.lang.String createImageLink(java.lang.String url, java.lang.String target, java.lang.String image, java.lang.String title, java.lang.String alt)
url
- DOCUMENT_MEtarget
- DOCUMENT_MEimage
- DOCUMENT_MEtitle
- DOCUMENT_MEalt
- DOCUMENT_ME
public static java.lang.String createImageLink(java.lang.String url, java.lang.String image, java.lang.String title, java.lang.String alt)
url
- DOCUMENT_MEimage
- DOCUMENT_MEtitle
- DOCUMENT_MEalt
- DOCUMENT_ME
public static java.lang.String createImageLink(java.lang.String url, java.lang.String image, java.lang.String title)
url
- DOCUMENT_MEimage
- DOCUMENT_MEtitle
- DOCUMENT_ME
public static java.lang.String createLink(java.lang.String url, java.lang.String text)
url
- DOCUMENT_MEtext
- DOCUMENT_ME
public static java.lang.String createLink(java.lang.String url, java.lang.String target, java.lang.String text)
url
- DOCUMENT_MEtarget
- DOCUMENT_MEtext
- DOCUMENT_ME
public static Query createQuery(java.lang.String text, java.lang.String field, boolean isOr)
text
- DOCUMENT_MEfield
- DOCUMENT_MEisOr
- DOCUMENT_ME
public static java.lang.String listTopics(java.util.List forums)
forums
- DOCUMENT_ME
public static java.lang.String listForums(java.util.List forums, int selectedId)
forums
- DOCUMENT_MEselectedId
- DOCUMENT_ME
public static java.lang.String listCategories(java.util.List categories, int selectedId)
categories
- DOCUMENT_MEselectedId
- DOCUMENT_ME
public static java.lang.String listForumsCategories(ForumsModule module)
public static java.lang.String selectDays(java.lang.String name, int days)
name
- DOCUMENT_MEdays
- DOCUMENT_ME
public static void batchUpdate(java.sql.Connection conn, java.lang.String updateQuery, java.lang.String selectQuery, int size) throws java.sql.SQLException
java.sql.SQLException
public static java.lang.String pageNumber(int start, int size, int per)
start
- DOCUMENT_MEsize
- DOCUMENT_MEper
- DOCUMENT_ME
public static java.lang.String selectEJBs(javax.ejb.EJBLocalHome home, java.lang.reflect.Method getter, java.lang.Object key, boolean all)
home
- where the EJBs are takengetter
- how to get some info about the EJBkey
- the key used to set the skip or select the item in the list according the all parameterall
- force all the items to be displayed
public static java.lang.String[][] collectFields(java.lang.Class clazz, java.lang.String prefix)
clazz
- DOCUMENT_MEprefix
- DOCUMENT_ME
public static java.lang.Object head(java.util.Collection c)
c
- DOCUMENT_ME
public static final java.lang.String computeCacheKey(boolean format_1_00, java.lang.String forumId)
format_1_00
- DOCUMENT_MEforumId
- DOCUMENT_ME
public static boolean isNullOrBlank(java.lang.String s)
s
- DOCUMENT_ME
public static boolean hasPermission(PortletRequest req, java.lang.String[] test, java.lang.String permission)
public static boolean hasPermission(PortletRequest req, java.lang.String perm)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |