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

📄 basesecurityservice.html

📁 turbine教程
💻 HTML
📖 第 1 页 / 共 5 页
字号:
 Methods that read security information need to invoke this method at the end of their body.<DD><DL></DL></DD></DL><HR><A NAME="lockExclusive()"><!-- --></A><H3>lockExclusive</H3><PRE>protected void <B>lockExclusive</B>()</PRE><DL><DD>Acquire an exclusive lock on the security information repository. Methods that modify security information need to invoke this method at the beginning of their body. Note! Those methods must be <code>synchronized</code> themselves!<DD><DL></DL></DD></DL><HR><A NAME="unlockExclusive()"><!-- --></A><H3>unlockExclusive</H3><PRE>protected void <B>unlockExclusive</B>()</PRE><DL><DD>Release an exclusive lock on the security information repository. This method is provided only for completeness. It does not really do anything. Note! Methods that modify security information must be <code>synchronized</code>!<DD><DL></DL></DD></DL><HR><A NAME="getGlobalGroup()"><!-- --></A><H3>getGlobalGroup</H3><PRE>public <A HREF="../../../../../org/apache/turbine/om/security/Group.html">Group</A> <B>getGlobalGroup</B>()</PRE><DL><DD>Provides a reference to the Group object that represents the <a href="#global">global group</a>.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/security/SecurityService.html#getGlobalGroup()">getGlobalGroup</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/security/SecurityService.html">SecurityService</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a Group object that represents the global group.</DL></DD></DL><HR><A NAME="getGroup(java.lang.String)"><!-- --></A><H3>getGroup</H3><PRE>public <A HREF="../../../../../org/apache/turbine/om/security/Group.html">Group</A> <B>getGroup</B>(java.lang.String&nbsp;name)               throws <A HREF="../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A>,                      <A HREF="../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A></PRE><DL><DD>Retrieve a Group object with specified name.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/security/SecurityService.html#getGroup(java.lang.String)">getGroup</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/security/SecurityService.html">SecurityService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the Group.<DT><B>Returns:</B><DD>an object representing the Group with specified name.</DL></DD></DL><HR><A NAME="getRole(java.lang.String)"><!-- --></A><H3>getRole</H3><PRE>public <A HREF="../../../../../org/apache/turbine/om/security/Role.html">Role</A> <B>getRole</B>(java.lang.String&nbsp;name)             throws <A HREF="../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A>,                    <A HREF="../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A></PRE><DL><DD>Retrieve a Role object with specified name.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/security/SecurityService.html#getRole(java.lang.String)">getRole</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/security/SecurityService.html">SecurityService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the Role.<DT><B>Returns:</B><DD>an object representing the Role with specified name.</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&nbsp;name)                         throws <A HREF="../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A>,                                <A HREF="../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A></PRE><DL><DD>Retrieve a Permission object with specified name.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/security/SecurityService.html#getPermission(java.lang.String)">getPermission</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/security/SecurityService.html">SecurityService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the Permission.<DT><B>Returns:</B><DD>an object representing the Permission with specified name.</DL></DD></DL><HR><A NAME="getAllGroups()"><!-- --></A><H3>getAllGroups</H3><PRE>public <A HREF="../../../../../org/apache/turbine/util/security/GroupSet.html">GroupSet</A> <B>getAllGroups</B>()                      throws <A HREF="../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></PRE><DL><DD>Retrieves all groups defined in the system.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/security/SecurityService.html#getAllGroups()">getAllGroups</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/security/SecurityService.html">SecurityService</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the names of all groups defined in the system.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></CODE> - if there was an error accessing the data backend.</DL></DD></DL><HR><A NAME="getAllRoles()"><!-- --></A><H3>getAllRoles</H3><PRE>public <A HREF="../../../../../org/apache/turbine/util/security/RoleSet.html">RoleSet</A> <B>getAllRoles</B>()                    throws <A HREF="../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></PRE><DL><DD>Retrieves all roles defined in the system.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/security/SecurityService.html#getAllRoles()">getAllRoles</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/security/SecurityService.html">SecurityService</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the names of all roles defined in the system.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></CODE> - if there was an error accessing the data backend.</DL></DD></DL><HR><A NAME="getAllPermissions()"><!-- --></A><H3>getAllPermissions</H3><PRE>public <A HREF="../../../../../org/apache/turbine/util/security/PermissionSet.html">PermissionSet</A> <B>getAllPermissions</B>()                                throws <A HREF="../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></PRE><DL><DD>Retrieves all permissions defined in the system.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/security/SecurityService.html#getAllPermissions()">getAllPermissions</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/security/SecurityService.html">SecurityService</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the names of all roles defined in the system.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></CODE> - if there was an error accessing the data backend.</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/BaseSecurityService.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/services/security/TurbineSecurity.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="BaseSecurityService.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="#fields_inherited_from_class_org.apache.turbine.services.BaseService">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;FIELD&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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -