[Design of JBoss Identity] - List of Users
by anil.saldhana@jboss.com
Tom asks:
| the actual question was: I'm trying to obtain a list of all users.
|
| I guess this method should do the trick:
|
| Collection<Identity> identities = identitySession
| .getPersistenceManager()
| .findIdentity((IdentitySearchControl[])null);
|
| I assume this gets me the users *and* groups, right ?
|
| I only found following search controls:
|
| if (control instanceof PageSearchControl)
| {
| pageSearchControl = (PageSearchControl)control;
| }
| else if (control instanceof SortByNameSearchControl)
| {
| sortSearchControl = (SortByNameSearchControl)control;
| }
| else if (control instanceof AttributeFilterSearchControl)
| {
| attributeFilterControl = (AttributeFilterSearchControl)control;
| }
| else if (control instanceof NameFilterSearchControl)
| {
| nameFilterSearchControl = (NameFilterSearchControl)control;
| }
|
| Should I be looking into the attributes to filter for the users ?
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205959#4205959
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205959
15 years, 11 months
[Design of JBoss jBPM] - Re: BPMN in jbpm4
by koen.aers@jboss.com
Clearly we need to discuss what we need to do to support the jPDL specific constructs in a diagram with BPMN look and feel. At the moment I see a two imminent examples of these problems:
1) Multiple outgoing sequence flow from nodes:
As Bernd states in jBPM these have XOR semantics while in BPMN outgoing sequence flow in nodes have AND semantics. On the other hand, BPMN has the conditional sequence flow construct. If you think about it, the outgoing sequence flow in a jPDL state is conditional (i.e. the token is propagated along the sequence flow with the name you give when issuing the continuation signal, otherwise the default flow is chosen). Following the BPMN logic, outgoing sequence flow from jPDL nodes with XOR behaviour should have a diamond at the start and the default flow should have a transversal line. The BPMN spec does not mandate that the condition is given explicitly, so in this case the condition is implied by the implementation of the jPDL node (in this case the wait state).
2) Superstates
The BPMN concept that most closely resembles superstates is the expanded subprocess. But this interferes of course with the jPDL process nodes and subprocesses. There is AFAICS no way of getting a sequence flow to connect a node with some other node inside the expanded subprocess. Any ideas here would be more than welcome.
Of course other issues exist, mostly related to terminology clashes. The most obvious clashes that I can see right now are:
1) signal: in jPDL this is an event that continues the process; in BPMN it is a flare that is visible to all the processes
2) event: in jPDL this is a hook into the execution of a process, subscribers can listen to these events and perform some processing accordingly; in BPMN this is a first class citizen (a node in the diagram) that indicates e.g. the reception of a message or the raising of an exception.
3) task: in jPDL tasks are related to human tasks; in BPMN tasks are atomic activities
Undoubtedly I forget a lot of other stuff, feel free to add and/or react and provide us with suggestions.
I will create a wiki page where we can describe the issues that come up along with their solution.
Regards,
Koen
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205954#4205954
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205954
15 years, 11 months
[Design of JBossCache] - Re: JBoss Cache Options API
by manik.surtani@jboss.com
"david.lloyd(a)jboss.com" wrote : IDEA has never (iirc) had a problem with varargs. But in any case, if you do decide to go with varargs, it might be a good idea to have a varargs-less variation on the method for the no-options case (if it's common) to prevent the empty-array creation on every method invocation. Though now that I think about it, I don't remember if it makes a significant performance-wise...
Not a "problem" as such, but just suggesting that you needed stuff in there. Reading off method signatures, really - the same thing that makes the javadocs misleading. Goes against the principle of varargs, IMO, since we are talking about an optional parameter, not a variable length one. At least, that is the case the way things are with a single Option object (or an EnumSet of options if options become an enum). Less ugly if we have a vararg of Options, where options are an enum and you provide as many options as you want.
Not so pretty though if you are implementing an external interface, e.g. Map or javax.cache.Cache, but that does take care of the (more common) no-option use case.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205942#4205942
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205942
15 years, 11 months