You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by Erik de Hair <e....@pocos.nl> on 2014/12/24 14:30:42 UTC
extending PageAbstract
Hi,
Is it possible to extend PageAbstract without building Isis from scratch
myself? I added Run As functions to my app and I want to show both the
username of the real user and the 'run as' user.
Thanks,
Erik
<ma...@pocos.nl>
Re: extending PageAbstract
Posted by Dan Haywood <da...@haywood-associates.co.uk>.
I've created ISIS-990 for this [1]
[1] https://issues.apache.org/jira/browse/ISIS-990
On 2 January 2015 at 08:44, Erik de Hair <e....@pocos.nl> wrote:
> Hi Dan
>
> On 12/24/2014 06:59 PM, Dan Haywood wrote:
>
>> As per [1], the secondary menu bar is actually the right-aligned menu
>> items, whereas the tertiary menu is that with the user's logon name.
>>
>> So, basically, do you want to change the label that show's the user's
>> name?
>>
> For now that's what I thought of. Just like [1] when running with my own
> user account and like [2] when running as somebody else. But I noticed a
> collegae got confused when he forgot he was 'running as' somebody else.
> Maybe it should be a bit more 'in your face' like changing the color scheme
> (of some element)...
>
>>
>>
>> If that's the case, what we could do is to define some sort of (optional)
>> UserProfileService that could provide this information to the framework.
>>
>> A UserProfileService seems fine to me.
>
> Thanks,
> Erik
>
> [1] https://www.dropbox.com/s/gml1s7bp8se4vfx/runningasmyself.png?dl=0
> [2] https://www.dropbox.com/s/nw2wzyvspxgfnyt/runningasother.png?dl=0
>
>
Re: extending PageAbstract
Posted by Erik de Hair <e....@pocos.nl>.
Hi Dan
On 12/24/2014 06:59 PM, Dan Haywood wrote:
> As per [1], the secondary menu bar is actually the right-aligned menu
> items, whereas the tertiary menu is that with the user's logon name.
>
> So, basically, do you want to change the label that show's the user's name?
For now that's what I thought of. Just like [1] when running with my own
user account and like [2] when running as somebody else. But I noticed a
collegae got confused when he forgot he was 'running as' somebody else.
Maybe it should be a bit more 'in your face' like changing the color
scheme (of some element)...
>
>
> If that's the case, what we could do is to define some sort of (optional)
> UserProfileService that could provide this information to the framework.
>
A UserProfileService seems fine to me.
Thanks,
Erik
[1] https://www.dropbox.com/s/gml1s7bp8se4vfx/runningasmyself.png?dl=0
[2] https://www.dropbox.com/s/nw2wzyvspxgfnyt/runningasother.png?dl=0
Re: extending PageAbstract
Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Hi Erik,
I *think* I understand the requirement, but could you do a quick sketch of
what you would like to see?
As per [1], the secondary menu bar is actually the right-aligned menu
items, whereas the tertiary menu is that with the user's logon name.
So, basically, do you want to change the label that show's the user's name?
If that's the case, what we could do is to define some sort of (optional)
UserProfileService that could provide this information to the framework.
Coincidentally, Oscar mentioned recently that it'd be nice for the tertiary
menu to include an avatar / photo for the currently logged-on user... eg as
shown in gmail and probably many others. So that could be another piece of
informatoin that a UserProfileService provides.
Thoughts?
Dan
[1]
https://isis.apache.org/components/viewers/wicket/application-menu-layout.html
On 24 December 2014 at 14:08, Erik de Hair <e....@pocos.nl> wrote:
> Hi Martin,
>
> Sorry, I wasn't very clear about what I need...
>
> I already have the run as items in the menu and it does work. I want to
> inform the user that he's in 'run as' mode and show the 'running as'
> username. So I want to show this in the secondaryMenu after the username
> like for example:
>
> /erikdehair (as dummyusername)/
>
> instead of just
>
> /erikdehair/
>
> Thanks,
> Erik
>
> <ma...@pocos.nl>
>
> On 12/24/2014 02:37 PM, Martin Grigorov wrote:
>
>> Hi,
>>
>> I am not sure I understand your question correctly but you can add "Run
>> as"
>> to the menu on the most right by using @DomainServiceLayout(menuBar =
>> MenuBar.TERTIARY). The domain service action should be named "runAs" and
>> additionally you may add "choicesRunAs()" method to select the user for
>> this action.
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>>
>> On Wed, Dec 24, 2014 at 3:30 PM, Erik de Hair <e....@pocos.nl> wrote:
>>
>> Hi,
>>>
>>> Is it possible to extend PageAbstract without building Isis from scratch
>>> myself? I added Run As functions to my app and I want to show both the
>>> username of the real user and the 'run as' user.
>>>
>>> Thanks,
>>> Erik
>>> <ma...@pocos.nl>
>>>
>>>
>
Re: extending PageAbstract
Posted by Erik de Hair <e....@pocos.nl>.
Hi Martin,
Sorry, I wasn't very clear about what I need...
I already have the run as items in the menu and it does work. I want to
inform the user that he's in 'run as' mode and show the 'running as'
username. So I want to show this in the secondaryMenu after the username
like for example:
/erikdehair (as dummyusername)/
instead of just
/erikdehair/
Thanks,
Erik
<ma...@pocos.nl>
On 12/24/2014 02:37 PM, Martin Grigorov wrote:
> Hi,
>
> I am not sure I understand your question correctly but you can add "Run as"
> to the menu on the most right by using @DomainServiceLayout(menuBar =
> MenuBar.TERTIARY). The domain service action should be named "runAs" and
> additionally you may add "choicesRunAs()" method to select the user for
> this action.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Wed, Dec 24, 2014 at 3:30 PM, Erik de Hair <e....@pocos.nl> wrote:
>
>> Hi,
>>
>> Is it possible to extend PageAbstract without building Isis from scratch
>> myself? I added Run As functions to my app and I want to show both the
>> username of the real user and the 'run as' user.
>>
>> Thanks,
>> Erik
>> <ma...@pocos.nl>
>>
Re: extending PageAbstract
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
I am not sure I understand your question correctly but you can add "Run as"
to the menu on the most right by using @DomainServiceLayout(menuBar =
MenuBar.TERTIARY). The domain service action should be named "runAs" and
additionally you may add "choicesRunAs()" method to select the user for
this action.
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Wed, Dec 24, 2014 at 3:30 PM, Erik de Hair <e....@pocos.nl> wrote:
> Hi,
>
> Is it possible to extend PageAbstract without building Isis from scratch
> myself? I added Run As functions to my app and I want to show both the
> username of the real user and the 'run as' user.
>
> Thanks,
> Erik
> <ma...@pocos.nl>
>