Hello Alexey,
It’s call in a gtmpl, here’s a
example…
import org.exoplatform.services.organization.OrganizationService;
import org.exoplatform.services.organization.User;
import org.exoplatform.portal.application.PortalRequestContext;
...
def prContext = _ctx.getRequestContext().getParentAppRequestContext();
OrganizationService service =
uicomponent.getApplicationComponent(OrganizationService.class);
User user =
service.getUserHandler().findUserByName(prContext.getRemoteUser()) ;
...
String firstName = user.getFirstName().toLowerCase();
String lastName = user.getLastName().toLowerCase();
Regards.
Hugues.
De : Alexey
Zavizionov [mailto:alexey.zavizionov@xxxxxxxxx]
Envoyé : mercredi 13 août
2008 19:06
À : POISSEROUX Hugues
Cc :
exo-portlet-container@xxxxxxx
Objet : Re:
[[exo-portlet-container]] _ctx object
Hello,
Hm...
I never heard about it.
Regards,
Alexey.
On Wed, Aug 13, 2008 at 4:28 PM, <hugues.poisseroux@xxxxxx> wrote:
Hello all,
What's class is hidden behind _ctx ?
I supposed that this is a hashmap class but in example i see other method is
called with _ctx.
I questioned _ctx to have Key and i see this.
_CTX|---OUT
|---Decarator
|---_CTX
|---UIApplication
|---UIComponent
Some one can give me the light ? :)
Thanks
Regards.
--
You receive this message as a subscriber of the exo-portlet-container@xxxxxxx
mailing list.
To unsubscribe: mailto:exo-portlet-container-unsubscribe@xxxxxxx
For general help: mailto:sympa@xxxxxxx?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws