discussion 【程序编程相关:一个Jsp初学者的学习过程(四)】
march 2005 【推荐阅读:Java软件开发学习笔记(一)】
velocity: a template engine or a rule engine or both? 【扩展信息:一个Jsp初学者的学习过程(三)】
most of the developers must be familiar with velocity as a great open source template engine and i don’t think i need to say much about its uses and features as a template engine. this paper compiles its features as a rule engine.
i have been working with java for the past 6 years and recently, i got an opportunity to design and develop an entitlement application.
an entitlement is the result of the execution of a formula, or rule that specifies what must be considered when deciding whether a given user has rights to manipulate or use a given resource (or object). this rule may be composed of one or more conditions that might only be evaluated with application context specific data. in addition, a rule evaluation may result in more than simple yes/no answers and contain additional information that would be required by an application to now perform the requested access to the resource. these are called obligations. therefore an entitlement service can be used both as a rule evaluator and a privilege data service.
in its simplest form an entitlement service performs standard authorization calls. for example, can a user perform a simple action against a named resource? in its more complicated form an entitlement may be a rule on how an object such as a financial transaction may be manipulated. in this rule the specific parameters of the transaction may be compared against set limits or current financial data. the rule in this case may be a representation of business logic.
... 下一页