com.liferay.taglib.security
Class PermissionsURLTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.liferay.taglib.security.PermissionsURLTag
- All Implemented Interfaces:
- Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class PermissionsURLTag
- extends javax.servlet.jsp.tagext.TagSupport
- See Also:
- Serialized Form
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PermissionsURLTag
public PermissionsURLTag()
doTag
public static String doTag(String redirect,
String modelResource,
String modelResourceDescription,
Object resourceGroupId,
String resourcePrimKey,
String windowState,
int[] roleTypes,
javax.servlet.http.HttpServletRequest request)
throws Exception
- Returns the URL for opening the resource's permissions configuration
dialog and for configuring the resource's permissions.
- Parameters:
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 request
- Returns:
- the URL for opening the resource's permissions configuration
dialog and for configuring the resource's permissions
- Throws:
Exception - if an exception occurred
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag- Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
setModelResource
public void setModelResource(String modelResource)
setModelResourceDescription
public void setModelResourceDescription(String modelResourceDescription)
setRedirect
public void setRedirect(String redirect)
setResourceGroupId
public void setResourceGroupId(Object resourceGroupId)
setResourcePrimKey
public void setResourcePrimKey(String resourcePrimKey)
setRoleTypes
public void setRoleTypes(int[] roleTypes)
setVar
public void setVar(String var)
setWindowState
public void setWindowState(String windowState)