Thanks for this explanation Adrian, it's really more clear for me now, even if I have still to digg in the code.
Jacques From: <[hidden email]> > Author: adrianc > Date: Wed Aug 26 16:18:20 2009 > New Revision: 808096 > > URL: http://svn.apache.org/viewvc?rev=808096&view=rev > Log: > Added a BranchReadMe.txt file for anyone wanting to evaluate this branch. > > Added: > ofbiz/branches/executioncontext20090812/BranchReadMe.txt (with props) > > Added: ofbiz/branches/executioncontext20090812/BranchReadMe.txt > URL: http://svn.apache.org/viewvc/ofbiz/branches/executioncontext20090812/BranchReadMe.txt?rev=808096&view=auto > ============================================================================== > --- ofbiz/branches/executioncontext20090812/BranchReadMe.txt (added) > +++ ofbiz/branches/executioncontext20090812/BranchReadMe.txt Wed Aug 26 16:18:20 2009 > @@ -0,0 +1,45 @@ > +ExecutionContext and Security-Aware Artifacts Notes > +--------------------------------------------------- > + > +2009-08-26: I put this text file in the branch as a means > +of keeping anyone who is interested updated on the progress > +of the branch. > + > +This branch is an implementation of the Security-Aware Artifacts > +design document - > + > +http://docs.ofbiz.org/display/OFBTECH/OFBiz+Security+Redesign > + > +and it is a work in progress. > + > +The ExecutionContext and AuthorizationManager interfaces are > +scattered across several components due to the cross-dependency > +or circular-dependency issue. Cross-dependency is when Class > +A references Class B, and Class B references Class A, and both > +classes are in separate components. There is no way to get them > +to compile. The problem is compounded in ExecutionContext and > +AuthorizationManager because they reference 3 or 4 components. > +The branch David created attempts to solve this problem, but > +it is not finished. > + > +The workaround I came up with was to have the lowest level methods > +declared in the api component, then have each component extend > +the interfaces and add their methods. It's not pretty, but it works. > + > +The ultimate goal of ExecutionContext is to have all client code > +get the contained objects from ExecutionContext only - instead of > +getting them from the various classes now in use. This initial > +implementation focuses more on the ExecutionContext's role as > +a means of tracking the execution path - which is needed for the > +security-aware artifacts. > + > +The AuthorizationManager and AccessController interfaces are based > +on the java.security.* classes, and they are intended to be > +implementation-agnostic. OFBiz will have an implementation based > +on the entity engine, but the goal is to be able to swap out that > +implementation with another. > + > +If you want to see the ExecutionContext and AccessController in > +action, change the settings in api.properties. You'll see info > +messages in the console log. > + > > Propchange: ofbiz/branches/executioncontext20090812/BranchReadMe.txt > ------------------------------------------------------------------------------ > svn:eol-style = native > > Propchange: ofbiz/branches/executioncontext20090812/BranchReadMe.txt > ------------------------------------------------------------------------------ > svn:keywords = "Date Rev Author URL Id" > > Propchange: ofbiz/branches/executioncontext20090812/BranchReadMe.txt > ------------------------------------------------------------------------------ > svn:mime-type = text/plain > > |
Right now it would be more interesting to enable the verbose settings in api.properties and look at the console log - it is very informative. The code is still a work in progress - I'm not sure if digging into will be of much use this early on. My goal is to have the bulk of it finished and a working example in the Example component by the end of this weekend (which is Sunday for us ;-) ).
-Adrian --- On Fri, 8/28/09, Jacques Le Roux <[hidden email]> wrote: > From: Jacques Le Roux <[hidden email]> > Subject: Re: svn commit: r808096 - /ofbiz/branches/executioncontext20090812/BranchReadMe.txt > To: [hidden email] > Date: Friday, August 28, 2009, 12:13 PM > Thanks for this explanation Adrian, > it's really more clear for me now, even if I have still to > digg in the code. > > Jacques > > From: <[hidden email]> > > Author: adrianc > > Date: Wed Aug 26 16:18:20 2009 > > New Revision: 808096 > > > > URL: http://svn.apache.org/viewvc?rev=808096&view=rev > > Log: > > Added a BranchReadMe.txt file for anyone wanting to > evaluate this branch. > > > > Added: > > > ofbiz/branches/executioncontext20090812/BranchReadMe.txt (with > props) > > > > Added: > ofbiz/branches/executioncontext20090812/BranchReadMe.txt > > URL: http://svn.apache.org/viewvc/ofbiz/branches/executioncontext20090812/BranchReadMe.txt?rev=808096&view=auto > > > ============================================================================== > > --- > ofbiz/branches/executioncontext20090812/BranchReadMe.txt > (added) > > +++ > ofbiz/branches/executioncontext20090812/BranchReadMe.txt Wed > Aug 26 16:18:20 2009 > > @@ -0,0 +1,45 @@ > > +ExecutionContext and Security-Aware Artifacts Notes > > +--------------------------------------------------- > > + > > +2009-08-26: I put this text file in the branch as a > means > > +of keeping anyone who is interested updated on the > progress > > +of the branch. > > + > > +This branch is an implementation of the > Security-Aware Artifacts > > +design document - > > + > > +http://docs.ofbiz.org/display/OFBTECH/OFBiz+Security+Redesign > > + > > +and it is a work in progress. > > + > > +The ExecutionContext and AuthorizationManager > interfaces are > > +scattered across several components due to the > cross-dependency > > +or circular-dependency issue. Cross-dependency is > when Class > > +A references Class B, and Class B references Class A, > and both > > +classes are in separate components. There is no way > to get them > > +to compile. The problem is compounded in > ExecutionContext and > > +AuthorizationManager because they reference 3 or 4 > components. > > +The branch David created attempts to solve this > problem, but > > +it is not finished. > > + > > +The workaround I came up with was to have the lowest > level methods > > +declared in the api component, then have each > component extend > > +the interfaces and add their methods. It's not > pretty, but it works. > > + > > +The ultimate goal of ExecutionContext is to have all > client code > > +get the contained objects from ExecutionContext only > - instead of > > +getting them from the various classes now in use. > This initial > > +implementation focuses more on the ExecutionContext's > role as > > +a means of tracking the execution path - which is > needed for the > > +security-aware artifacts. > > + > > +The AuthorizationManager and AccessController > interfaces are based > > +on the java.security.* classes, and they are intended > to be > > +implementation-agnostic. OFBiz will have an > implementation based > > +on the entity engine, but the goal is to be able to > swap out that > > +implementation with another. > > + > > +If you want to see the ExecutionContext and > AccessController in > > +action, change the settings in api.properties. You'll > see info > > +messages in the console log. > > + > > > > Propchange: > ofbiz/branches/executioncontext20090812/BranchReadMe.txt > > > ------------------------------------------------------------------------------ > > svn:eol-style = native > > > > Propchange: > ofbiz/branches/executioncontext20090812/BranchReadMe.txt > > > ------------------------------------------------------------------------------ > > svn:keywords = "Date Rev Author URL Id" > > > > Propchange: > ofbiz/branches/executioncontext20090812/BranchReadMe.txt > > > ------------------------------------------------------------------------------ > > svn:mime-type = text/plain > > > > > |
Free forum by Nabble | Edit this page |