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

📄 dbsecurityservice.html

📁 turbine教程
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<PRE>public void <B>saveRole</B>(<A HREF="../../../../../../org/apache/turbine/om/security/Role.html">Role</A>&nbsp;role)              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>Stores Role's attributes. The Roles is required to exist in the system.<DD><DL><DT><B>Parameters:</B><DD><CODE>role</CODE> - The Role to be stored.<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.<DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A></CODE> - if the role does not exist.</DL></DD></DL><HR><A NAME="savePermission(org.apache.turbine.om.security.Permission)"><!-- --></A><H3>savePermission</H3><PRE>public void <B>savePermission</B>(<A HREF="../../../../../../org/apache/turbine/om/security/Permission.html">Permission</A>&nbsp;permission)                    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>Stores Permission's attributes. The Permissions is required to exist in the system.<DD><DL><DT><B>Parameters:</B><DD><CODE>permission</CODE> - The Permission to be stored.<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.<DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A></CODE> - if the permission does not exist.</DL></DD></DL><HR><A NAME="getNewGroup(java.lang.String)"><!-- --></A><H3>getNewGroup</H3><PRE>public <A HREF="../../../../../../org/apache/turbine/om/security/Group.html">Group</A> <B>getNewGroup</B>(java.lang.String&nbsp;groupName)</PRE><DL><DD>Retrieves a new Group. It creates a new Group based on the Services Group implementation. It does not create a new Group in the system though. Use create for that.<DD><DL><DT><B>Parameters:</B><DD><CODE>groupName</CODE> - The name of the Group to be retrieved.</DL></DD></DL><HR><A NAME="getNewRole(java.lang.String)"><!-- --></A><H3>getNewRole</H3><PRE>public <A HREF="../../../../../../org/apache/turbine/om/security/Role.html">Role</A> <B>getNewRole</B>(java.lang.String&nbsp;roleName)</PRE><DL><DD>Retrieves a new Role. It creates a new Role based on the Services Role implementation. It does not create a new Role in the system though. Use create for that.<DD><DL><DT><B>Parameters:</B><DD><CODE>roleName</CODE> - The name of the Role to be retrieved.</DL></DD></DL><HR><A NAME="getNewPermission(java.lang.String)"><!-- --></A><H3>getNewPermission</H3><PRE>public <A HREF="../../../../../../org/apache/turbine/om/security/Permission.html">Permission</A> <B>getNewPermission</B>(java.lang.String&nbsp;permissionName)</PRE><DL><DD>Retrieves a new Permission. It creates a new Permission based on the Services Permission implementation. It does not create a new Permission in the system though. Use create for that.<DD><DL><DT><B>Parameters:</B><DD><CODE>permissionName</CODE> - The name of the Permission to be retrieved.</DL></DD></DL><HR><A NAME="addGroup(org.apache.turbine.om.security.Group)"><!-- --></A><H3>addGroup</H3><PRE>public <A HREF="../../../../../../org/apache/turbine/om/security/Group.html">Group</A> <B>addGroup</B>(<A HREF="../../../../../../org/apache/turbine/om/security/Group.html">Group</A>&nbsp;group)               throws <A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A>,                      <A HREF="../../../../../../org/apache/turbine/util/security/EntityExistsException.html">EntityExistsException</A></PRE><DL><DD>Creates a new group with specified attributes.<DD><DL><DT><B>Parameters:</B><DD><CODE>group</CODE> - the object describing the group to be created.<DT><B>Returns:</B><DD>a new Group object that has id set up properly.<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.<DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/EntityExistsException.html">EntityExistsException</A></CODE> - if the group already exists.</DL></DD></DL><HR><A NAME="addRole(org.apache.turbine.om.security.Role)"><!-- --></A><H3>addRole</H3><PRE>public <A HREF="../../../../../../org/apache/turbine/om/security/Role.html">Role</A> <B>addRole</B>(<A HREF="../../../../../../org/apache/turbine/om/security/Role.html">Role</A>&nbsp;role)             throws <A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A>,                    <A HREF="../../../../../../org/apache/turbine/util/security/EntityExistsException.html">EntityExistsException</A></PRE><DL><DD>Creates a new role with specified attributes.<DD><DL><DT><B>Parameters:</B><DD><CODE>role</CODE> - the object describing the role to be created.<DT><B>Returns:</B><DD>a new Role object that has id set up properly.<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.<DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/EntityExistsException.html">EntityExistsException</A></CODE> - if the role already exists.</DL></DD></DL><HR><A NAME="addPermission(org.apache.turbine.om.security.Permission)"><!-- --></A><H3>addPermission</H3><PRE>public <A HREF="../../../../../../org/apache/turbine/om/security/Permission.html">Permission</A> <B>addPermission</B>(<A HREF="../../../../../../org/apache/turbine/om/security/Permission.html">Permission</A>&nbsp;permission)                         throws <A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A>,                                <A HREF="../../../../../../org/apache/turbine/util/security/EntityExistsException.html">EntityExistsException</A></PRE><DL><DD>Creates a new permission with specified attributes.<DD><DL><DT><B>Parameters:</B><DD><CODE>permission</CODE> - the object describing the permission to be created.<DT><B>Returns:</B><DD>a new Permission object that has id set up properly.<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.<DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/EntityExistsException.html">EntityExistsException</A></CODE> - if the permission already exists.</DL></DD></DL><HR><A NAME="removeGroup(org.apache.turbine.om.security.Group)"><!-- --></A><H3>removeGroup</H3><PRE>public void <B>removeGroup</B>(<A HREF="../../../../../../org/apache/turbine/om/security/Group.html">Group</A>&nbsp;group)                 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>Removes a Group from the system.<DD><DL><DT><B>Parameters:</B><DD><CODE>the</CODE> - object describing group to be removed.<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.<DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A></CODE> - if the group does not exist.</DL></DD></DL><HR><A NAME="removeRole(org.apache.turbine.om.security.Role)"><!-- --></A><H3>removeRole</H3><PRE>public void <B>removeRole</B>(<A HREF="../../../../../../org/apache/turbine/om/security/Role.html">Role</A>&nbsp;role)                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>Removes a Role from the system.<DD><DL><DT><B>Parameters:</B><DD><CODE>the</CODE> - object describing role to be removed.<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.<DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A></CODE> - if the role does not exist.</DL></DD></DL><HR><A NAME="removePermission(org.apache.turbine.om.security.Permission)"><!-- --></A><H3>removePermission</H3><PRE>public void <B>removePermission</B>(<A HREF="../../../../../../org/apache/turbine/om/security/Permission.html">Permission</A>&nbsp;permission)                      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>Removes a Permission from the system.<DD><DL><DT><B>Parameters:</B><DD><CODE>the</CODE> - object describing permission to be removed.<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.<DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A></CODE> - if the permission does not exist.</DL></DD></DL><HR><A NAME="renameGroup(org.apache.turbine.om.security.Group, java.lang.String)"><!-- --></A><H3>renameGroup</H3><PRE>public void <B>renameGroup</B>(<A HREF="../../../../../../org/apache/turbine/om/security/Group.html">Group</A>&nbsp;group,                        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>Renames an existing Group.<DD><DL><DT><B>Parameters:</B><DD><CODE>the</CODE> - object describing the group to be renamed.<DD><CODE>name</CODE> - the new name for the group.<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.<DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A></CODE> - if the group does not exist.</DL></DD></DL><HR><A NAME="renameRole(org.apache.turbine.om.security.Role, java.lang.String)"><!-- --></A><H3>renameRole</H3><PRE>public void <B>renameRole</B>(<A HREF="../../../../../../org/apache/turbine/om/security/Role.html">Role</A>&nbsp;role,                       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>Renames an existing Role.<DD><DL><DT><B>Parameters:</B><DD><CODE>the</CODE> - object describing the role to be renamed.<DD><CODE>name</CODE> - the new name for the role.<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.<DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/UnknownEntityException.html">UnknownEntityException</A></CODE> - if the role does not exist.</DL></DD></DL><HR><A NAME="renamePermission(org.apache.turbine.om.security.Permission, java.lang.String)"><!-- --></A><H3>renamePermission</H3><PRE>public void <B>renamePermission</B>(<A HREF="../../../../../../org/apache/turbine/om/security/Permission.html">Permission</A>&nbsp;permission,                             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>Renames an existing Permission.<DD><DL><DT><B>Parameters:</B><DD><CODE>the</CODE> - object describing the permission to be renamed.<DD><CODE>name</CODE> - the new name for the permission.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../../org/apache/turbine/util/security/DataBackendE

⌨️ 快捷键说明

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