com.arsdigita.acs.generalcomments
Class GeneralComments
java.lang.Object
|
+--com.arsdigita.acs.generalcomments.GeneralComments
- public class GeneralComments
- extends Object
Utility classes and procedural abstractions for general-comments.
Method Summary |
static String |
formatGeneralComment(HttpServletRequest request,
int comment_id,
String client_file_name,
String file_type,
int original_width,
int original_height,
String caption,
String content,
boolean comment_html_p)
Helper procedure (for commentsSummarySorted in particular), to format one comment w/ appropriate attachment link. |
static String |
formatGeneralComment(HttpServletRequest request,
int comment_id,
String client_file_name,
String file_type,
int original_width,
int original_height,
String caption,
String content,
boolean comment_html_p,
String one_line)
Helper procedure (for commentsSummarySorted in particular), to format one comment w/ appropriate attachment link. |
static String |
getOneItemQueryString(int onWhatId,
String onWhichTable)
Given an item id and table name, this will return the SQL query
that returns all comments for that item. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MODIFIED_LONG
public static final int MODIFIED_LONG
MODIFIED_TIME
public static final int MODIFIED_TIME
MODIFIED_DATE
public static final int MODIFIED_DATE
GeneralComments
public GeneralComments()
formatGeneralComment
public static final String formatGeneralComment(HttpServletRequest request,
int comment_id,
String client_file_name,
String file_type,
int original_width,
int original_height,
String caption,
String content,
boolean comment_html_p)
- Helper procedure (for commentsSummarySorted in particular), to format one comment w/ appropriate attachment link.
- Parameters:
file_type
- the MIME typeoriginal_width
- This should be -1 if none was provided.original_height
- This should be -1 if none was provided.comment_html_p
- true if the content is HTML formatted- See Also:
- ,
GeneralComments.commentsSummarySorted
formatGeneralComment
public static final String formatGeneralComment(HttpServletRequest request,
int comment_id,
String client_file_name,
String file_type,
int original_width,
int original_height,
String caption,
String content,
boolean comment_html_p,
String one_line)
- Helper procedure (for commentsSummarySorted in particular), to format one comment w/ appropriate attachment link.
- Parameters:
file_type
- the MIME typeoriginal_width
- This should be -1 if none was provided.original_height
- This should be -1 if none was provided.comment_html_p
- true if the content is HTML formattedone_line
- optional, defaults to null (if other signature is used)- See Also:
- ,
GeneralComments.commentsSummarySorted
getOneItemQueryString
public static final String getOneItemQueryString(int onWhatId,
String onWhichTable)
- Given an item id and table name, this will return the SQL query
that returns all comments for that item. This is to abstract away
the SQL from people wanting to include a list of comments for an item on a page.
- See Also: