📄 accesscontrollist.html
字号:
<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 rolename, <A HREF="../../../../../org/apache/turbine/util/security/GroupSet.html">GroupSet</A> 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> 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 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> permission, <A HREF="../../../../../org/apache/turbine/om/security/Group.html">Group</A> 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> permission, <A HREF="../../../../../org/apache/turbine/util/security/GroupSet.html">GroupSet</A> 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 permission, java.lang.String 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 permission, <A HREF="../../../../../org/apache/turbine/om/security/Group.html">Group</A> 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 permissionName, <A HREF="../../../../../org/apache/turbine/util/security/GroupSet.html">GroupSet</A> 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> 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 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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AccessControlList.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <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> <A HREF="AccessControlList.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR>Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -