[JBoss Seam] - Re: identity.hasRole problem
by anescu
That was just a temp debug code, because I was not sure why the code was not working (I tried several versions, because I had no idea why it was not working). The roles are actually loaded from the DB, and later on I was testing for the roles and perform some actions based on specific roles.
But, for example, I load from the DB a user, with the roles it has, and based on the roles, I also load some object lists in the session context. The easiest/cleanest way to do that is to call a method from the authenticate() method and based on the roles to init some objects. Where then would I do that?
I could work around and test when loading the roles someting like this:
for( Role role : user.getUserRoles() )
| {
| identity.addRole( role.getRoleName() );
| if( HUB_ADMIN.equals( role.getRoleName() ) )
| doHubAdminLoading()
| if( HUB_USER.equals( role.getRoleName() ) )
| doHubUserLoading()
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045469#4045469
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045469
19 years, 1 month
[JBoss Portal] - Re: JBoss Portal Security - You're losing your way...
by bsmithjj
"bsmithjj" wrote : As I look into this more, look at the source code for 2.6, the wiki link you supplied, etc. I really am beginning to think that in some ways, you're losing your way with the security layer of JBoss Portal...
|
I've noticed in the so-called 'candidate releases (CR),' 1 and 2, that the dashboard link doesn't work. This kind of a release practice seems to be typical for the JBoss portal; I mean the practice of releasing alpha-quality software as a CR release. I've assumed that when JBoss labels a technology as CR release, it is suggesting that the technology is basically working and a.) you believe only minor bugs remain in the product, and b.) you'ld like the early adopters to help find bugs by trying to use the product in development. Furthermore, since CR is typically the label JBoss applies to a technology prior to releasing it as stable (GA), all the features that comprise the release of the technology really should be completely working as designed (modulo minor bugs).
However, since the dashboard just doesn't work in two CR releases, I have to conclude the dashboard is just not done and thus is really an alpha level feature. Also, I see a barage of new stuff appearing, like the usage of jBPM (which seriously slows down a clean portal install and startup times after installation). Google gadget integration (who really needs that?)? etc...
I wouldn't care so much about this, however, we are in the process of migrating a relatively large portal application from BEA Weblogic Portal 8 to JBoss portal and the flakiness of the JBoss releases causes a fair amount of consternation. Also, I must admit that I am bit spoiled by the high quality of coding and documentation of the Seam framework - switching from Seam to JBoss portal to do any work is horrible.
Thanks,
Brad Smith
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045467#4045467
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045467
19 years, 1 month
[Beginners Corner] - TimerTask schedule question
by SKS
Hello,
i have a question about the possibility to schedule a TimerTask from an Session bean.
I have to control remotely the level of service of some server and my idea is to make an Session bean with two businness method, one for start and one for stop the control.
The control is done by a thread istantiated by the session bean and scheduled with a timer task.
I would to know if is possible to create an thread like this (with a java program is ok, but i have to insert this check in a bigger contest and i'd like to use j2ee).
I don't know if, when the bean is ended, the associated thread is killed too or if this behaviour can cause some problem in a j2ee server.
If someone has other ideas i'll be very gratefull.
Thanks in advance.
Andrea Consiglio
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045465#4045465
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045465
19 years, 1 month
[JBoss Seam] - How to render partial search results?
by grettke_spdr
Hi,
I'm still pretty new to JPA-QL and Hibernate, and also JSF and Seam. That said, I would appreciate some advice regarding this scenario:
For a use case we need to perform a search and display a mix of results on the screen that are not related (by an object graph, at least, not without some work). We are doing a query to get numerous pieces of partial data. This may include , for example, employee id, activity id, and account id.
I imagine we would render those search results using the @DataModel annotation, but the problem is that if we get partial search results, there is no object to which we can bind values using the expression language in the UI.
How do you usually deal with scenarios like this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045462#4045462
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045462
19 years, 1 month