⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 accesscontrollist.html

📁 turbine教程
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/security/AccessControlList.html#hasPermission(java.lang.String, java.lang.String)">hasPermission</A></B>(java.lang.String&nbsp;permission,              java.lang.String&nbsp;group)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks if the user is assigned a specific Permission in the Group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/security/AccessControlList.html#hasRole(org.apache.turbine.om.security.Role)">hasRole</A></B>(<A HREF="../../../../../org/apache/turbine/om/security/Role.html">Role</A>&nbsp;role)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks if the user is assigned a specific Role in the global Group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/security/AccessControlList.html#hasRole(org.apache.turbine.om.security.Role, org.apache.turbine.om.security.Group)">hasRole</A></B>(<A HREF="../../../../../org/apache/turbine/om/security/Role.html">Role</A>&nbsp;role,        <A HREF="../../../../../org/apache/turbine/om/security/Group.html">Group</A>&nbsp;group)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks if the user is assigned a specific Role in the Group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/security/AccessControlList.html#hasRole(org.apache.turbine.om.security.Role, org.apache.turbine.util.security.GroupSet)">hasRole</A></B>(<A HREF="../../../../../org/apache/turbine/om/security/Role.html">Role</A>&nbsp;role,        <A HREF="../../../../../org/apache/turbine/util/security/GroupSet.html">GroupSet</A>&nbsp;groupset)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks if the user is assigned a specific Role in any of the given Groups</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/security/AccessControlList.html#hasRole(java.lang.String)">hasRole</A></B>(java.lang.String&nbsp;role)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks if the user is assigned a specific Role in the global Group.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/security/AccessControlList.html#hasRole(java.lang.String, org.apache.turbine.util.security.GroupSet)">hasRole</A></B>(java.lang.String&nbsp;rolename,        <A HREF="../../../../../org/apache/turbine/util/security/GroupSet.html">GroupSet</A>&nbsp;groupset)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks if the user is assigned a specifie Role in any of the given Groups</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/security/AccessControlList.html#hasRole(java.lang.String, java.lang.String)">hasRole</A></B>(java.lang.String&nbsp;role,        java.lang.String&nbsp;group)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks if the user is assigned a specific Role in the Group.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="SESSION_KEY"><!-- --></A><H3>SESSION_KEY</H3><PRE>public static java.lang.String <B>SESSION_KEY</B></PRE><DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="AccessControlList(java.util.Map, java.util.Map)"><!-- --></A><H3>AccessControlList</H3><PRE>public <B>AccessControlList</B>(java.util.Map&nbsp;roleSets,                         java.util.Map&nbsp;permissionSets)</PRE><DL><DD>Constructs a new AccessControlList. This class follows 'immutable' pattern - it's objects can't be modified once they are created. This means that the permissions the users have are in effect form the moment they log in to the moment they log out, and changes made to the security settings in that time are not reflected in the state of this object. If you need to reset an user's permissions you need to invalidate his session. <br> The objects that constructs an AccessControlList must supply hashtables of role/permission sets keyed with group objects. <br><DD><DL><DT><B>Parameters:</B><DD><CODE>roleSets</CODE> - a hashtable containing RoleSet objects keyed with Group objects<DD><CODE>permissionSets</CODE> - a hashtable containing PermissionSet objects keyed with Group objects</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getRoles(org.apache.turbine.om.security.Group)"><!-- --></A><H3>getRoles</H3><PRE>public <A HREF="../../../../../org/apache/turbine/util/security/RoleSet.html">RoleSet</A> <B>getRoles</B>(<A HREF="../../../../../org/apache/turbine/om/security/Group.html">Group</A>&nbsp;group)</PRE><DL><DD>Retrieves a set of Roles an user is assigned in a Group.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>group</CODE> - the Group<DT><B>Returns:</B><DD>the set of Roles this user has within the Group.</DL></DD></DL><HR><A NAME="getRoles()"><!-- --></A><H3>getRoles</H3><PRE>public <A HREF="../../../../../org/apache/turbine/util/security/RoleSet.html">RoleSet</A> <B>getRoles</B>()</PRE><DL><DD>Retrieves a set of Roles an user is assigned in the global Group.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the set of Roles this user has within the global Group.</DL></DD></DL><HR><A NAME="getPermissions(org.apache.turbine.om.security.Group)"><!-- --></A><H3>getPermissions</H3><PRE>public <A HREF="../../../../../org/apache/turbine/util/security/PermissionSet.html">PermissionSet</A> <B>getPermissions</B>(<A HREF="../../../../../org/apache/turbine/om/security/Group.html">Group</A>&nbsp;group)</PRE><DL><DD>Retrieves a set of Permissions an user is assigned in a Group.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>group</CODE> - the Group<DT><B>Returns:</B><DD>the set of Permissions this user has within the Group.</DL></DD></DL><HR><A NAME="getPermissions()"><!-- --></A><H3>getPermissions</H3><PRE>public <A HREF="../../../../../org/apache/turbine/util/security/PermissionSet.html">PermissionSet</A> <B>getPermissions</B>()</PRE><DL><DD>Retrieves a set of Permissions an user is assigned in the global Group.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the set of Permissions this user has within the global Group.</DL></DD></DL><HR><A NAME="hasRole(org.apache.turbine.om.security.Role, org.apache.turbine.om.security.Group)"><!-- --></A><H3>hasRole</H3><PRE>public boolean <B>hasRole</B>(<A HREF="../../../../../org/apache/turbine/om/security/Role.html">Role</A>&nbsp;role,                       <A HREF="../../../../../org/apache/turbine/om/security/Group.html">Group</A>&nbsp;group)</PRE><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(org.apache.turbine.om.security.Role, org.apache.turbine.util.security.GroupSet)"><!-- --></A><H3>hasRole</H3><PRE>public boolean <B>hasRole</B>(<A HREF="../../../../../org/apache/turbine/om/security/Role.html">Role</A>&nbsp;role,                       <A HREF="../../../../../org/apache/turbine/util/security/GroupSet.html">GroupSet</A>&nbsp;groupset)</PRE><DL><DD>Checks if the user is assigned a specific Role in any of the given Groups<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>role</CODE> - 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(java.lang.String, java.lang.String)"><!-- --></A><H3>hasRole</H3><PRE>public boolean <B>hasRole</B>(java.lang.String&nbsp;role,                       java.lang.String&nbsp;group)</PRE>

⌨️ 快捷键说明

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