📄 permissionset.html
字号:
<A NAME="PermissionSet()"><!-- --></A><H3>PermissionSet</H3><PRE>public <B>PermissionSet</B>()</PRE><DL><DD>Constructs an empty PermissionSet</DL><HR><A NAME="PermissionSet(java.util.Collection)"><!-- --></A><H3>PermissionSet</H3><PRE>public <B>PermissionSet</B>(java.util.Collection permissions)</PRE><DL><DD>Constructs a new PermissionSet with specifed contents. If the given collection contains multiple objects that are identical WRT equals() method, some objects will be overwriten.<DD><DL><DT><B>Parameters:</B><DD><CODE>permissions</CODE> - A collection of permissions to be contained in the set.</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="add(org.apache.turbine.om.security.Permission)"><!-- --></A><H3>add</H3><PRE>public boolean <B>add</B>(<A HREF="../../../../../org/apache/turbine/om/security/Permission.html">Permission</A> permission)</PRE><DL><DD>Adds a Permission to this PermissionSet.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>permission</CODE> - A Permission.<DT><B>Returns:</B><DD>True if Permission was added; false if PermissionSet already contained the Permission.</DL></DD></DL><HR><A NAME="add(java.util.Collection)"><!-- --></A><H3>add</H3><PRE>public boolean <B>add</B>(java.util.Collection permissions)</PRE><DL><DD>Adds the Permissions in a Collection to this PermissionSet.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>permissions</CODE> - A Permission.<DT><B>Returns:</B><DD>True if this PermissionSet changed as a result; false if no change to this PermissionSet occurred (this PermissionSet already contained all members of the added PermissionSet).</DL></DD></DL><HR><A NAME="add(org.apache.turbine.util.security.PermissionSet)"><!-- --></A><H3>add</H3><PRE>public boolean <B>add</B>(<A HREF="../../../../../org/apache/turbine/util/security/PermissionSet.html">PermissionSet</A> permissionSet)</PRE><DL><DD>Adds the Permissions in another PermissionSet to this PermissionSet.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>permissionSet</CODE> - A PermissionSet.<DT><B>Returns:</B><DD>True if this PermissionSet changed as a result; false if no change to this PermissionSet occurred (this PermissionSet already contained all members of the added PermissionSet).</DL></DD></DL><HR><A NAME="remove(org.apache.turbine.om.security.Permission)"><!-- --></A><H3>remove</H3><PRE>public boolean <B>remove</B>(<A HREF="../../../../../org/apache/turbine/om/security/Permission.html">Permission</A> permission)</PRE><DL><DD>Removes a Permission from this PermissionSet.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>permission</CODE> - A Permission.<DT><B>Returns:</B><DD>True if this PermissionSet contained the Permission before it was removed.</DL></DD></DL><HR><A NAME="clear()"><!-- --></A><H3>clear</H3><PRE>public void <B>clear</B>()</PRE><DL><DD>Removes all Permissions from this PermissionSet.<DD><DL></DL></DD></DL><HR><A NAME="contains(org.apache.turbine.om.security.Permission)"><!-- --></A><H3>contains</H3><PRE>public boolean <B>contains</B>(<A HREF="../../../../../org/apache/turbine/om/security/Permission.html">Permission</A> permission)</PRE><DL><DD>Checks whether this PermissionSet contains a Permission.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>permission</CODE> - A Permission.<DT><B>Returns:</B><DD>True if this PermissionSet contains the Permission, false otherwise.</DL></DD></DL><HR><A NAME="contains(java.lang.String)"><!-- --></A><H3>contains</H3><PRE>public boolean <B>contains</B>(java.lang.String permissionName)</PRE><DL><DD>Compares by name a Permission with the Permissions contained in this PermissionSet.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>permissionName</CODE> - Name of Permission.<DT><B>Returns:</B><DD>True if argument matched a Permission in this PermissionSet; false if no match.</DL></DD></DL><HR><A NAME="getPermission(java.lang.String)"><!-- --></A><H3>getPermission</H3><PRE>public <A HREF="../../../../../org/apache/turbine/om/security/Permission.html">Permission</A> <B>getPermission</B>(java.lang.String permissionName)</PRE><DL><DD>Returns a Permission with the given name, if it is contained in this PermissionSet.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>permissionName</CODE> - Name of Permission.<DT><B>Returns:</B><DD>Permission if argument matched a Permission in this PermissionSet; null if no match.</DL></DD></DL><HR><A NAME="getPermissionsArray()"><!-- --></A><H3>getPermissionsArray</H3><PRE>public <A HREF="../../../../../org/apache/turbine/om/security/Permission.html">Permission</A>[] <B>getPermissionsArray</B>()</PRE><DL><DD>Returns an Permissions[] of Permissions in this PermissionSet.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A Permission[].</DL></DD></DL><HR><A NAME="elements()"><!-- --></A><H3>elements</H3><PRE>public java.util.Iterator <B>elements</B>()</PRE><DL><DD>Returns an Iterator for Permissions in this PermissionSet.<DD><DL></DL></DD></DL><HR><A NAME="size()"><!-- --></A><H3>size</H3><PRE>public int <B>size</B>()</PRE><DL><DD>Returns size (cardinality) of this set.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The cardinality of this PermissionSet.</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/PermissionSet.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"> <A HREF="../../../../../org/apache/turbine/util/security/GroupSet.html"><B>PREV CLASS</B></A> <A HREF="../../../../../org/apache/turbine/util/security/RoleSet.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="PermissionSet.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <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 + -