Permissions and modules

3 views
Skip to first unread message

Eglė Samulevičiūtė

unread,
Jun 9, 2009, 7:37:19 AM6/9/09
to AribaWeb (aribaweb.org)
Hi guys,

I am addressing the issue that was discussed months ago: permissions on modules that are not entities related
http://groups.google.com/group/aribaweb/browse_thread/thread/a4dc1891fa227faf

I have followed all the same steps: I have Meta UI DB project, have created my customUserGroup, created permission model.myModule:view and created a user that belongs to the customUserGroup. In Application.oss I have tried

@module=model.myModule {
    requiredPermissionIds:$${[ariba.appcore.PermissionSet.idForPermissionName("model.myModule:view")]};
    homePage:myModule;
}

I also tried other suggested solutions in that post but unfortunately that did not helped me to display the myModule tad if I log in as my custom user.

How could I solve this problem of not appearing modules?

Best regards,
Egle


farouk alhassan

unread,
Jun 9, 2009, 8:14:21 AM6/9/09
to arib...@googlegroups.com
Did you define the component binding for that module?
Here is an example of on the fly module:

@module=Home  {
    label:$[a001]Home;
    @layout=Main {
       after:zTop;
       label:$[a003]"Welcome to AribaWeb!";
       component:HomeContent;
    }

    @layout=Actions {
       label:$[a004]Actions;
       after:zToc;
       component:Toc;
    }
}

The component defines the .awl and .java file that make an AWComponent. Add your permissions to it and see if it works.

Regards

--- On Tue, 9/6/09, Eglė Samulevičiūtė <egle.samu...@gmail.com> wrote:

Adalbert Wysocki

unread,
Jun 9, 2009, 2:38:24 PM6/9/09
to arib...@googlegroups.com
Egle,

Try removing the :view from the permission name and just use model.myModule
There might be a bug there as the :xxx is the operation on a Entity module....

Aldo

Eglė Samulevičiūtė

unread,
Jun 9, 2009, 4:17:01 PM6/9/09
to arib...@googlegroups.com
Hi Farouk and Aldo,

Thank you for your answers. I have tried both of your suggestions. I can see modules in AdminUser group user tabs. But I am unable to display them in any custom user group. Removing :view gave no effect too.

Regars,
Egle

Eglė Samulevičiūtė

unread,
Jun 11, 2009, 7:44:44 AM6/11/09
to arib...@googlegroups.com
Hi again,

I was thinking, as Entity classes work fine with permissions, is it possible somehow to declare an Entity class as a tab but include the module I want in it? If I would like to use a hack like that how could I write it?

Because it seems for me I have tried everything with showing a simple non-entity module on custom user group tabs, but nothing works.

Regards,
Egle

Eglė Samulevičiūtė

unread,
Jun 11, 2009, 7:58:25 AM6/11/09
to arib...@googlegroups.com
P.S. If I add to my custom group a single permission of ariba.appcore.Permission:view, the custom user will be able to see everything (all the modules) as a AdminUsers can see. Why is that so?

Kingsley

unread,
Jun 11, 2009, 9:14:30 PM6/11/09
to AribaWeb (aribaweb.org)
Hi Egle,

You had "PermissionSet" in your initial post. There is no
idForPermissionName method in that class. I used the Permission
instead. Can you double check?

I tried to reproduce your problem, so I put this in my
Application.oss:

@module=MyModule {
requiredPermissionIds:$
{[ariba.appcore.Permission.idForPermissionName
("model.myModule:view")]};
}

I created:
- the "model.myModule:view" permision
- the custom group with this permission
- the custom user for this group

I did notice the bug where all the modules tab are visible after I add
this. I'll try to figure the problem.

However, it did work *after* I restarted the server. The MyModule tab
is initial hidden, and it shows up if I log in as the custom user.

-Kingsley

On Jun 11, 4:58 am, Eglė Samulevičiūtė <egle.samulevici...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages