accesscontrollist.html

来自「turbine教程」· HTML 代码 · 共 675 行 · 第 1/3 页

HTML
675 行
字号
<DL><DD>Checks if the user is assigned a specific Role in the Group.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>role</CODE> - the Role<DD><CODE>group</CODE> - the Group<DT><B>Returns:</B><DD><code>true</code> if the user is assigned the Role in the Group.</DL></DD></DL><HR><A NAME="hasRole(java.lang.String, org.apache.turbine.util.security.GroupSet)"><!-- --></A><H3>hasRole</H3><PRE>public boolean <B>hasRole</B>(java.lang.String&nbsp;rolename,                       <A HREF="../../../../../org/apache/turbine/util/security/GroupSet.html">GroupSet</A>&nbsp;groupset)</PRE><DL><DD>Checks if the user is assigned a specifie Role in any of the given Groups<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rolename</CODE> - the name of the Role<DD><CODE>groupset</CODE> - a Groupset<DT><B>Returns:</B><DD><code>true</code> if the user is assigned the Role in any of         the given Groups.</DL></DD></DL><HR><A NAME="hasRole(org.apache.turbine.om.security.Role)"><!-- --></A><H3>hasRole</H3><PRE>public boolean <B>hasRole</B>(<A HREF="../../../../../org/apache/turbine/om/security/Role.html">Role</A>&nbsp;role)</PRE><DL><DD>Checks if the user is assigned a specific Role in the global Group.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>role</CODE> - the Role<DT><B>Returns:</B><DD><code>true</code> if the user is assigned the Role in the global Group.</DL></DD></DL><HR><A NAME="hasRole(java.lang.String)"><!-- --></A><H3>hasRole</H3><PRE>public boolean <B>hasRole</B>(java.lang.String&nbsp;role)</PRE><DL><DD>Checks if the user is assigned a specific Role in the global Group.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>role</CODE> - the Role<DT><B>Returns:</B><DD><code>true</code> if the user is assigned the Role in the global Group.</DL></DD></DL><HR><A NAME="hasPermission(org.apache.turbine.om.security.Permission, org.apache.turbine.om.security.Group)"><!-- --></A><H3>hasPermission</H3><PRE>public boolean <B>hasPermission</B>(<A HREF="../../../../../org/apache/turbine/om/security/Permission.html">Permission</A>&nbsp;permission,                             <A HREF="../../../../../org/apache/turbine/om/security/Group.html">Group</A>&nbsp;group)</PRE><DL><DD>Checks if the user is assigned a specific Permission in the Group.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>permission</CODE> - the Permission<DD><CODE>group</CODE> - the Group<DT><B>Returns:</B><DD><code>true</code> if the user is assigned the Permission in the Group.</DL></DD></DL><HR><A NAME="hasPermission(org.apache.turbine.om.security.Permission, org.apache.turbine.util.security.GroupSet)"><!-- --></A><H3>hasPermission</H3><PRE>public boolean <B>hasPermission</B>(<A HREF="../../../../../org/apache/turbine/om/security/Permission.html">Permission</A>&nbsp;permission,                             <A HREF="../../../../../org/apache/turbine/util/security/GroupSet.html">GroupSet</A>&nbsp;groupset)</PRE><DL><DD>Checks if the user is assigned a specific Permission in any of the given Groups<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>permission</CODE> - the Permission<DD><CODE>groupset</CODE> - a Groupset<DT><B>Returns:</B><DD><code>true</code> if the user is assigned the Permission in any         of the given Groups.</DL></DD></DL><HR><A NAME="hasPermission(java.lang.String, java.lang.String)"><!-- --></A><H3>hasPermission</H3><PRE>public boolean <B>hasPermission</B>(java.lang.String&nbsp;permission,                             java.lang.String&nbsp;group)</PRE><DL><DD>Checks if the user is assigned a specific Permission in the Group.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>permission</CODE> - the Permission<DD><CODE>group</CODE> - the Group<DT><B>Returns:</B><DD><code>true</code> if the user is assigned the Permission in the Group.</DL></DD></DL><HR><A NAME="hasPermission(java.lang.String, org.apache.turbine.om.security.Group)"><!-- --></A><H3>hasPermission</H3><PRE>public boolean <B>hasPermission</B>(java.lang.String&nbsp;permission,                             <A HREF="../../../../../org/apache/turbine/om/security/Group.html">Group</A>&nbsp;group)</PRE><DL><DD>Checks if the user is assigned a specific Permission in the Group.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>permission</CODE> - the Permission<DD><CODE>group</CODE> - the Group<DT><B>Returns:</B><DD><code>true</code> if the user is assigned the Permission in the Group.</DL></DD></DL><HR><A NAME="hasPermission(java.lang.String, org.apache.turbine.util.security.GroupSet)"><!-- --></A><H3>hasPermission</H3><PRE>public boolean <B>hasPermission</B>(java.lang.String&nbsp;permissionName,                             <A HREF="../../../../../org/apache/turbine/util/security/GroupSet.html">GroupSet</A>&nbsp;groupset)</PRE><DL><DD>Checks if the user is assigned a specifie Permission in any of the given Groups<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>permissionName</CODE> - the name of the Permission<DD><CODE>groupset</CODE> - a Groupset<DT><B>Returns:</B><DD><code>true</code> if the user is assigned the Permission in any         of the given Groups.</DL></DD></DL><HR><A NAME="hasPermission(org.apache.turbine.om.security.Permission)"><!-- --></A><H3>hasPermission</H3><PRE>public boolean <B>hasPermission</B>(<A HREF="../../../../../org/apache/turbine/om/security/Permission.html">Permission</A>&nbsp;permission)</PRE><DL><DD>Checks if the user is assigned a specific Permission in the global Group.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>permission</CODE> - the Permission<DT><B>Returns:</B><DD><code>true</code> if the user is assigned the Permission in the global Group.</DL></DD></DL><HR><A NAME="hasPermission(java.lang.String)"><!-- --></A><H3>hasPermission</H3><PRE>public boolean <B>hasPermission</B>(java.lang.String&nbsp;permission)</PRE><DL><DD>Checks if the user is assigned a specific Permission in the global Group.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>permission</CODE> - the Permission<DT><B>Returns:</B><DD><code>true</code> if the user is assigned the Permission in the global Group.</DL></DD></DL><HR><A NAME="getAllGroups()"><!-- --></A><H3>getAllGroups</H3><PRE>public <A HREF="../../../../../org/apache/turbine/om/security/Group.html">Group</A>[] <B>getAllGroups</B>()</PRE><DL><DD>Returns all groups definded in the system. This is useful for debugging, when you want to display all roles and permissions an user is assingned. This method is needed because you can't call static methods of TurbineSecurity class from within WebMacro/Velocity template<DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/AccessControlList.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;<A HREF="../../../../../org/apache/turbine/util/security/GroupSet.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="AccessControlList.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR>Copyright &copy; 2000-2002 Apache Software Foundation. All Rights Reserved.</BODY></HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?