Thanks for your answer Khaled ....

java.security.Principal    p = request.getUserPrincipal();

> Principal is an interface but the class of p is
> "org.jahia.services.usermanager.JahiaDBUser".

> getClass() method  returns the runtime class of an object.


I know that... i thought that i could do:

org.jahia.services.usermanager.JahiaDBUser p = request.getUserPrincipal();

and in my opinion, i think we should be able do it...  if we login as Admin
or Root, we should  access to jahia information, because it could be
useful....


I was thinking and the answser for my problem is JAAS. There is any quick
way (documentation) to implement it?

I had another question.... I am developing an portlet, and any portlet can
have at most 3 modes (VIEW, EDIT, HELP). Can I make VIEW and HELP mode
visible for all users, and EDIT mode only for admin users? There's any
documentaion where I read about that? For what i read/understood on JSR-168
specifications, i should ...
I search on google, but no lucky :(


Regards,
Ricardo Ferreira

Reply via email to