On Tuesday 08 December 2015 11:13:56 Shawn McKinney wrote:
> > On Dec 8, 2015, at 10:59 AM, Boris Bobrov <[email protected]>
> > wrote:
> > 
> > 
> > It seems that the links there don't work. They all redirect me to
> > "Welcome to Symas Enforcement Foundry”.
> > 
> > Anyway, I was able to build and use javadoc from git.
> > 
> > 
> > Do I get it right that each parameter corresponds to an XML tag?
> > So, for PermGrant.objName there should be
> > <objName>sometestobject</objName>, right?
> 
> OK good, glad that you found the doc.  Sorry bout the broken link,
> not sure what’s going on there.  Anyway you are correct, drop the
> entity name from the xml tag.

Awesome, thank you!

> Agree there needs to be a document that works better from the user’s
> perspective.  Open to ideas.  Add the service definitions from the
> javadoc into a user’s guide?  One problem is keeping in synch of
> course.

What could be added is several examples of how the required XML
should look like along with the list of parameters. I'll try to show
my logic here.

For example, there is [0].

[0]https://directory.apache.org/fortress/gen-docs/latest/apidocs//org/apache/directory/fortress/core/AdminMgr.html#assignUser(org.apache.directory.fortress.core.rbac.UserRole)

It lists the parameters I need to provide -- role name, user id. How
do I do it? Where to put these parameters to? I do Python and I don't
know how things work in Java. Since this is Java, I probably need to
compose some XML. How should the XML look like?

I start looking for examples. And, after some digging, found
fortress-enmasse/src/test/resources/. There I see
assignEmUser1.xml. OK, it looks simple. But what do I put
in “xsi:type” attribute? contextId is for multitenancy, right?

Then I see emTestCheckAccess.xml . There is a bunch of tags, but how do I
use it in [1]? I don't know.

[1]https://directory.apache.org/fortress/gen-docs/latest/apidocs//org/apache/directory/fortress/core/AccessMgr.html#checkAccess(org.apache.directory.fortress.core.rbac.Session,%20org.apache.directory.fortress.core.rbac.Permission)

So, it would be really great to see a manual or a doc describing how to
translate a Java parameter to an XML tag, with several examples.


-- 
Best regards,
Boris Bobrov

Reply via email to