Using EAz in the virtual campus.
在虚拟校园中使用eaz。
Part 1 of this series introduced the case for EAz by proposing
本系列的 第 1部分通过提出以下内容介绍EAz
Both permissions and actions are implemented in EAz as EnumSets.
权限和操作在EAz中都以EnumSet实现。
Figure 5 shows a sequence diagram of the typical EAz authorization process.
图5显示了典型的typical EAz授权流程的序列关系图。
AllPermissions contains each permission available in the application using EAz.
AllPermissions包含在使用EAz的应用程序中可用的每个权限。
EAz implements ACLs as an ACL class, with permit methods to check authorization.
eaz将acl实现为acl类,并使用permit方法检查授权。
Let's end by walking through how you would apply EAz to our virtual campus example.
本文最后一部分向您介绍如何将EAz应用到虚拟校园示例。
Both tables were produced by the EAz visualization framework introduced in this article.
上面这两个表都是由本文中介绍的EAz可视化框架生成的。
There are some limitations in the EAz implementation example, mainly for clarity and simplicity.
EAz实现示例中存在某些限制,主要是清晰性和简单性。
The initial EAz implementation only provides authorization for groups, not for named individuals.
初始的EAz实现仅为组提供授权,而不为命名个体提供授权。
This example USES groups, represented as strings, in EAz to represent named collections of users.
本例在EAz中使用组(用字符串表示)表示用户的命名集合。
EAz sample code is available showing how to translate database strings to and from EAz enum format.
EAz示例代码可用来显示数据库字符串格式和EAzenum格式之间如何相互转换。
Now that you've seen EAz in action, let's take a look at the details of the EAz implementation itself.
现在您已经看到了EAz操作,接下来让我们看一下 EAz实现本身的细节。
The techniques involved in implementing an EAz data access object to persist and retrieve permissions.
实现EAz数据访问对象以保持和检索权限所涉及的技术。
As with the earlier tables, all the information above was generated from EAz using the display framework.
与前面的表中一样,上述所有信息都是使用显示框架通过eaz生成的。
Let's close with a brief, simplified example of how you might use the EAz interface in a real application.
让我们使用一个简短的简化示例来结束本主题,该示例说明如何在实际的应用程序中使用EAz接口。
In this way, a single static class declares the entire extended authorization policy of an EAz application.
通过这种方法,单个静态类可以声明EAz应用程序的完整扩展授权策略。
This gives EAz the ability to supply "well known" permission sets to an application's service layers by action name.
它使EAz能够通过操作名称向应用程序的服务层提供“众所周知”的权限集。
EAuthZ continues to contain the core EAz framework code, including service methods, core classes, and ACLPerspective.
EAuthZ 继续包含核心EAz框架代码,包括服务方法、核心类和 ACLPerspective。
EAz models collections of permissions as a PermissionSet interface, an arbitrary collection of individual binary permissions.
EAz 将权限集建模为一个PermissionSet接口,即个别二进制权限的任意集合。
EAz implements a permissions class as a single standard location for an EAz application to declare its permissions and actions.
EAz实现permissions类的方式使其成为EAz应用程序声明其权限和操作的单一标准位置。
This will show users and managers an application's EAz permission grants, and enable you to construct a management console interface.
这会向用户和管理员显示应用程序的Eaz权限授予情况,并允许您构建管理控制台接口。
The essence of the EAz persistence technique is in section 4, where the Enum valueOf method turns a string into its Enum representation.
EAz持久性技术的本质内容在第4部分中,其中Enumvalue Of方法将字符串转换为其Enum表示形式。
Let's look at an example that complicates the situation, and illustrates the flexibility of the EAz framework at the same time. Suppose you.
让我们看下面一个示例,该示例增加了这一情形的复杂性,而与此同时也显示了eaz框架的灵活性。
Adding a service layer for ACL retrieval opens up EAz to implementing ACLManager for the possibility of using caches for frequently used ACLs.
为acl检索添加服务层促使EAz实现ACLManager,以便能够为经常使用的ACL使用缓存。
See Part 1 for additional details of the virtual campus example, the EAz concept of operations, and details of the major EAz architectural structures.
请参见第1部分以了解有关虚拟校园示例、EAz操作概念和主要EAz体系结构的其他详细信息。
The Permissions configuration class functions as a container for static enum types that configure the permissions in a particular application using EAz.
Permissions配置类可用作在特定的应用程序中使用Eaz配置权限的静态Enum类型的容器。
Included with this article is a complete EAz implementation and test of the virtual campus, which you can download in Eclipse project interchange format.
本文提供了完整的EAz实现和虚拟校园测试,您可以通过Eclipse项目交换格式下载。
Declaring an application's authorized actions in advance brings a measure of structure to an EAz-authorized application and improves its maintainability.
事先声明应用程序的授权操作可以对EAz授权的应用程序的结构进行测量,并提高其可维护性。
Almost every authorization framework — EAz no exception — is backed by some kind of custom registry that defines the users and the groups to which they belong.
几乎每个授权框架(EAz也不例外)都需要借助某种自定义注册中心来定义框架所属的用户和组。
应用推荐