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

📄 ldapsecurityservice.html

📁 turbine教程
💻 HTML
📖 第 1 页 / 共 5 页
字号:
revoke</H3><PRE>public void <B>revoke</B>(<A HREF="../../../../../../org/apache/turbine/om/security/Role.html">Role</A>&nbsp;role,                   <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>Revokes a Permission from a Role.<DD><DL><DT><B>Parameters:</B><DD><CODE>role</CODE> - the Role.<DD><CODE>permission</CODE> - the Permission.<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 role or permission is not present.</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 addGroup for that. <strong>Not implemented</strong><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 addRole for that. <strong>Not implemented</strong><DD><DL><DT><B>Parameters:</B><DD><CODE>groupName</CODE> - The name of the Group 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. <strong>Not implemented</strong><DD><DL><DT><B>Parameters:</B><DD><CODE>permissionName</CODE> - The name of the Permission to be retrieved.</DL></DD></DL><HR><A NAME="getGroups(org.apache.torque.util.Criteria)"><!-- --></A><H3>getGroups</H3><PRE>public <A HREF="../../../../../../org/apache/turbine/util/security/GroupSet.html">GroupSet</A> <B>getGroups</B>(org.apache.torque.util.Criteria&nbsp;criteria)                   throws <A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></PRE><DL><DD>Retrieve a set of Groups that meet the specified Criteria.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - Criteria of Group selection.<DT><B>Returns:</B><DD>a set of Groups that meet the specified Criteria.</DL></DD></DL><HR><A NAME="getRoles(org.apache.torque.util.Criteria)"><!-- --></A><H3>getRoles</H3><PRE>public <A HREF="../../../../../../org/apache/turbine/util/security/RoleSet.html">RoleSet</A> <B>getRoles</B>(org.apache.torque.util.Criteria&nbsp;criteria)                 throws <A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></PRE><DL><DD>Retrieve a set of Roles that meet the specified Criteria.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - Criteria of Roles selection.<DT><B>Returns:</B><DD>a set of Roles that meet the specified Criteria.</DL></DD></DL><HR><A NAME="getPermissions(org.apache.torque.util.Criteria)"><!-- --></A><H3>getPermissions</H3><PRE>public <A HREF="../../../../../../org/apache/turbine/util/security/PermissionSet.html">PermissionSet</A> <B>getPermissions</B>(org.apache.torque.util.Criteria&nbsp;criteria)                             throws <A HREF="../../../../../../org/apache/turbine/util/security/DataBackendException.html">DataBackendException</A></PRE><DL><DD>Retrieve a set of Permissions that meet the specified Criteria.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - Criteria of Permissions selection.<DT><B>Returns:</B><DD>a set of Permissions that meet the specified Criteria.</DL></DD></DL><HR><A NAME="getPermissions(org.apache.turbine.om.security.Role)"><!-- --></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/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>Retrieves all permissions associated with a role.<DD><DL><DT><B>Parameters:</B><DD><CODE>role</CODE> - the role name, for which the permissions are to be retrieved.<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 is not present.</DL></DD></DL><HR><A NAME="saveGroup(org.apache.turbine.om.security.Group)"><!-- --></A><H3>saveGroup</H3><PRE>public void <B>saveGroup</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>Stores Group's attributes. The Groups is required to exist in the system.<DD><DL><DT><B>Parameters:</B><DD><CODE>group</CODE> - The Group 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 group does not exist.</DL></DD></DL><HR><A NAME="saveRole(org.apache.turbine.om.security.Role)"><!-- --></A><H3>saveRole</H3><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="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. <strong>Not implemented</strong><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>

⌨️ 快捷键说明

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