|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.SimpleTagSupport
nl.gx.webmanager.taglib.DocumentLinkTag
public class DocumentLinkTag
Implements the wm:documentlink tag. Returns an HTML link to a document in the Meetings & Papers
component and checks for webuser authorization.
Example of usage:
<wm:documentLink var="docLink" contentId="${productInfo.document}" dataSource="jdbc/internaldb" />
${docLink}
| Constructor Summary | |
|---|---|
DocumentLinkTag()
|
|
| Method Summary | |
|---|---|
void |
doTag()
|
protected java.lang.String |
getClassName()
Rreturn the class name to be used in the 'class=�...�' attribute of the resulting HTML link. |
protected int |
getContentId()
Return the content id of the document to which a link should be returned. |
protected javax.sql.DataSource |
getDataSource()
Return the data source name which can be queried to retrieve more information about the document. |
protected java.lang.String |
getLinkText()
Return the text to be used in building the link. |
protected java.lang.String |
getMouseOverText()
Return the text to be used in the 'title=�...�' attribute of the resulting HTML link. |
protected java.lang.String |
getOutputFormat()
Returns the selected output format for the link code. |
protected boolean |
getShowDocumentTypeIcon()
Return whether the documenttype icon should be shown left of the link. |
protected boolean |
getShowTitleOnly()
Return whether the linkText should be shown as an HTML link, or as normal text. |
protected java.lang.String |
getTarget()
Return the name of the HTML frame to be used in the 'target=�...�' attribute of the resulting link. |
protected java.lang.String |
getVar()
Return the variable to which the text will be assigned or null. |
protected java.lang.String |
getWebUserGroups()
Return the webuser groups who are granted access to the document. |
boolean |
isMimeTypeOnly()
Returns whether the mime type of the document should be returned ("true") or an HTML link to the document itself ("false"). |
void |
setClassName(java.lang.String className)
Specifies the class name to be used in the 'class=�...�' attribute of the resulting HTML link. |
void |
setContentId(int contentId)
Sets the content id of the document to which a link should be returned. |
void |
setDataSource(javax.sql.DataSource dataSource)
Sets the data source name which can be queried to retrieve more information about the document. |
void |
setLinkText(java.lang.String linkText)
Sets the text to be used in building the link. |
void |
setMimeTypeOnly(boolean mimeTypeOnly)
Sets whether the mime type of the document should be returned (set to "true") or an HTML link to the document itself (set to "false"). |
void |
setMouseOverText(java.lang.String mouseOverText)
Specifies the text to be used in the 'title=�...�' attribute of the resulting HTML link. |
void |
setOutputFormat(java.lang.String outputFormat)
Sets the output format of the link code produced. |
void |
setShowDocumentTypeIcon(boolean showDocumentTypeIcon)
Sets whether the documenttype icon should be shown left of the link. |
void |
setShowTitleOnly(boolean showTitleOnly)
Sets whether the linkText should be shown as an HTML link, or as normal text. |
void |
setTarget(java.lang.String target)
Specifies the name of the HTML frame to be used in the 'target=�...�' attribute of the resulting link. |
void |
setVar(java.lang.String var)
Specifies the JSP variable to store the result in. |
void |
setWebUserGroups(java.lang.String webUserGroups)
Sets the webuser groups who are granted access to the document. |
| Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
|---|
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentLinkTag()
| Method Detail |
|---|
public void setContentId(int contentId)
contentId - protected int getContentId()
public void setLinkText(java.lang.String linkText)
linkText - protected java.lang.String getLinkText()
public void setWebUserGroups(java.lang.String webUserGroups)
webUserGroups - protected java.lang.String getWebUserGroups()
public void setClassName(java.lang.String className)
className - protected java.lang.String getClassName()
public void setTarget(java.lang.String target)
target - protected java.lang.String getTarget()
public void setShowTitleOnly(boolean showTitleOnly)
showTitleOnly - protected boolean getShowTitleOnly()
public void setShowDocumentTypeIcon(boolean showDocumentTypeIcon)
showDocumentTypeIcon - protected boolean getShowDocumentTypeIcon()
public void setDataSource(javax.sql.DataSource dataSource)
dataSource - protected javax.sql.DataSource getDataSource()
public void setVar(java.lang.String var)
var - specifies the JSP variable to store the result in.protected java.lang.String getVar()
public void setMouseOverText(java.lang.String mouseOverText)
the - text to be used in the 'title=�...�' attribute of the resulting HTML linkprotected java.lang.String getMouseOverText()
public void setOutputFormat(java.lang.String outputFormat)
outputFormat - "HTML" or "XHTML". Default is "HTML".protected java.lang.String getOutputFormat()
public void doTag()
throws javax.servlet.jsp.JspException
doTag in interface javax.servlet.jsp.tagext.SimpleTagdoTag in class javax.servlet.jsp.tagext.SimpleTagSupportjavax.servlet.jsp.JspExceptionpublic boolean isMimeTypeOnly()
public void setMimeTypeOnly(boolean mimeTypeOnly)
mimeTypeOnly -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||