📄 role.html
字号:
</TR></TABLE><A NAME="getPermissions()"><!-- --></A><H3>getPermissions</H3><PRE>public <A HREF="../../../../../org/apache/turbine/util/security/PermissionSet.html">PermissionSet</A> <B>getPermissions</B>() throws java.lang.Exception</PRE><DL><DD>Returns the set of Permissions associated with this Role.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A PermissionSet.<DT><B>Throws:</B><DD><CODE>Exception,</CODE> - a generic exception.</DL></DD></DL><HR><A NAME="setPermissions(org.apache.turbine.util.security.PermissionSet)"><!-- --></A><H3>setPermissions</H3><PRE>public void <B>setPermissions</B>(<A HREF="../../../../../org/apache/turbine/util/security/PermissionSet.html">PermissionSet</A> permissionSet)</PRE><DL><DD>Sets the Permissions associated with this Role.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>permissionSet</CODE> - A PermissionSet.</DL></DD></DL><HR><A NAME="create(java.lang.String)"><!-- --></A><H3>create</H3><PRE>public <A HREF="../../../../../org/apache/turbine/om/security/Role.html">Role</A> <B>create</B>(java.lang.String name) throws <A HREF="../../../../../org/apache/turbine/util/security/TurbineSecurityException.html">TurbineSecurityException</A></PRE><DL><DD>Creates a new Role in the system.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the new Role.<DT><B>Returns:</B><DD>An object representing the new Role.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/security/TurbineSecurityException.html">TurbineSecurityException</A></CODE> - if the Role could not be created.</DL></DD></DL><HR><A NAME="save()"><!-- --></A><H3>save</H3><PRE>public void <B>save</B>() throws <A HREF="../../../../../org/apache/turbine/util/security/TurbineSecurityException.html">TurbineSecurityException</A></PRE><DL><DD>Makes changes made to the Role attributes permanent.<DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/security/TurbineSecurityException.html">TurbineSecurityException</A></CODE> - if there is a problem while saving data.</DL></DD></DL><HR><A NAME="remove()"><!-- --></A><H3>remove</H3><PRE>public void <B>remove</B>() throws <A HREF="../../../../../org/apache/turbine/util/security/TurbineSecurityException.html">TurbineSecurityException</A></PRE><DL><DD>Removes a role from the system.<DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/security/TurbineSecurityException.html">TurbineSecurityException</A></CODE> - if the Role could not be removed.</DL></DD></DL><HR><A NAME="rename(java.lang.String)"><!-- --></A><H3>rename</H3><PRE>public void <B>rename</B>(java.lang.String name) throws <A HREF="../../../../../org/apache/turbine/util/security/TurbineSecurityException.html">TurbineSecurityException</A></PRE><DL><DD>Renames the role.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The new Role name.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/security/TurbineSecurityException.html">TurbineSecurityException</A></CODE> - if the Role could not be renamed.</DL></DD></DL><HR><A NAME="grant(org.apache.turbine.om.security.Permission)"><!-- --></A><H3>grant</H3><PRE>public void <B>grant</B>(<A HREF="../../../../../org/apache/turbine/om/security/Permission.html">Permission</A> permission) throws <A HREF="../../../../../org/apache/turbine/util/security/TurbineSecurityException.html">TurbineSecurityException</A></PRE><DL><DD>Grants a Permission to this Role.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>permission</CODE> - A Permission.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/security/TurbineSecurityException.html">TurbineSecurityException</A></CODE> - if there is a problem while assigning the Permission.</DL></DD></DL><HR><A NAME="grant(org.apache.turbine.util.security.PermissionSet)"><!-- --></A><H3>grant</H3><PRE>public void <B>grant</B>(<A HREF="../../../../../org/apache/turbine/util/security/PermissionSet.html">PermissionSet</A> permissionSet) throws <A HREF="../../../../../org/apache/turbine/util/security/TurbineSecurityException.html">TurbineSecurityException</A></PRE><DL><DD>Grants Permissions from a PermissionSet to this Role.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>permissionSet</CODE> - A PermissionSet.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/security/TurbineSecurityException.html">TurbineSecurityException</A></CODE> - if there is a problem while assigning the Permissions.</DL></DD></DL><HR><A NAME="revoke(org.apache.turbine.om.security.Permission)"><!-- --></A><H3>revoke</H3><PRE>public void <B>revoke</B>(<A HREF="../../../../../org/apache/turbine/om/security/Permission.html">Permission</A> permission) throws <A HREF="../../../../../org/apache/turbine/util/security/TurbineSecurityException.html">TurbineSecurityException</A></PRE><DL><DD>Revokes a Permission from this Role.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>permission</CODE> - A Permission.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/security/TurbineSecurityException.html">TurbineSecurityException</A></CODE> - if there is a problem while unassigning the Permission.</DL></DD></DL><HR><A NAME="revoke(org.apache.turbine.util.security.PermissionSet)"><!-- --></A><H3>revoke</H3><PRE>public void <B>revoke</B>(<A HREF="../../../../../org/apache/turbine/util/security/PermissionSet.html">PermissionSet</A> permissionSet) throws <A HREF="../../../../../org/apache/turbine/util/security/TurbineSecurityException.html">TurbineSecurityException</A></PRE><DL><DD>Revokes Permissions from a PermissionSet from this Role.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>permissionSet</CODE> - A PermissionSet.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/security/TurbineSecurityException.html">TurbineSecurityException</A></CODE> - if there is a problem while unassigning the Permissions.</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/Role.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/om/security/Permission.html"><B>PREV CLASS</B></A> <A HREF="../../../../../org/apache/turbine/om/security/SecurityEntity.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="Role.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <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 + -