public class PermissionsURLTag
extends javax.servlet.jsp.tagext.TagSupport
| Constructor and Description |
|---|
PermissionsURLTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag() |
static java.lang.String |
doTag(java.lang.String redirect,
java.lang.String modelResource,
java.lang.String modelResourceDescription,
java.lang.Object resourceGroupId,
java.lang.String resourcePrimKey,
java.lang.String windowState,
int[] roleTypes,
javax.servlet.http.HttpServletRequest request)
Returns the URL for opening the resource's permissions configuration
dialog and for configuring the resource's permissions.
|
void |
setModelResource(java.lang.String modelResource) |
void |
setModelResourceDescription(java.lang.String modelResourceDescription) |
void |
setRedirect(java.lang.String redirect) |
void |
setResourceGroupId(java.lang.Object resourceGroupId) |
void |
setResourcePrimKey(java.lang.String resourcePrimKey) |
void |
setRoleTypes(int[] roleTypes) |
void |
setVar(java.lang.String var) |
void |
setWindowState(java.lang.String windowState) |
public static java.lang.String doTag(java.lang.String redirect,
java.lang.String modelResource,
java.lang.String modelResourceDescription,
java.lang.Object resourceGroupId,
java.lang.String resourcePrimKey,
java.lang.String windowState,
int[] roleTypes,
javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
redirect - the redirect. If the redirect is null or
the dialog does not open as a pop-up, the current URL is obtained
via PortalUtil.getCurrentURL(HttpServletRequest) and
used.modelResource - the resource's class for which to configure
permissionsmodelResourceDescription - the human-friendly description of the
resourceresourceGroupId - the group ID to which the resource belongs. The
ID can be a number, string containing a number, or substitution
string. If the resource group ID is null, it is
obtained via ThemeDisplay.getScopeGroupId().resourcePrimKey - the primary key of the resourcewindowState - the window state to use when opening the permissions
configuration dialog. For more information, see LiferayWindowState.roleTypes - the role typesrequest - the current requestjava.lang.Exception - if an exception occurredpublic int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionpublic void setModelResource(java.lang.String modelResource)
public void setModelResourceDescription(java.lang.String modelResourceDescription)
public void setRedirect(java.lang.String redirect)
public void setResourceGroupId(java.lang.Object resourceGroupId)
public void setResourcePrimKey(java.lang.String resourcePrimKey)
public void setRoleTypes(int[] roleTypes)
public void setVar(java.lang.String var)
public void setWindowState(java.lang.String windowState)