Ernst Bunders wrote:
> Hello
> I am using cloudcontext security and am wondering about the easyest way
> to get a mmbaseuser node for the logged in user. I tried:
>
> String userIdentifier = cloud.getUser().getIdentifier();
> Users usersBuilder = Users.getBuilder();
> Node userNode = usersBuilder.getUser(userIdentifier);
> if (userNode = null)
> throw new RuntimeException("No usernode found for user identifier "
> +
> userIdentifier + ". This should never happen!");
>
> but I get an error that method Users.getNode() is not public. This is
> allso in the 'latest' 1.7 apidoc, but in cvs head the method is made
> public.
>
> what should i do? A function shoud seem ideal...
<mm:cloud jspvar="cloud">
<mm:listnodescontainer type="mmbaseuser">
<mm:constraint field="username" value="<%=cloud.getUser().getIdentifier()%>" />
<mm:listnodes>
</mm:listnodes>
</mm:listnodescontainer>
Does't work?
Yes, it is not very consice, but still, only a few lines, and one very
simple query.
I'm not sure what you're trying to do.
Michiel
--
Michiel Meeuwissen mihxil'
Mediacentrum 140 H'sum [] ()
+31 (0)35 6772979 nl_NL eo_XX en_US
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers