-
1. Re: GateIn Query
jferreyram Apr 16, 2012 1:55 AM (in response to khkh82)Hi
I'm sorry, I don't understand your purpose. If you want to get some info about portals, pages, etc, so you might use a connection with JCR through the API. But, if you want to get info about users, so you must use another ways, which are related to IDM module.
Regards
Jorge
-
2. Re: GateIn Query
khkh82 Apr 16, 2012 2:01 AM (in response to jferreyram)Thanks for your reply.
Actually, the main purpose is retrive all profile information include name, IM, Mob., Experiance, and Network.
So, I need to connect IDM and retrieve all information.
Your support is appreciated.
Regards,
-
3. Re: GateIn Query
vstorm83 Apr 19, 2012 5:02 AM (in response to khkh82)Did you try :
ExoContainer container = PortalContainer.getInstance();
OrganizationService service = (OrganizationService)container.getComponentInstance(OrganizationService.class);
This service provide some dao object that allow to query for user info
-
4. Re: GateIn Query
khkh82 Apr 22, 2012 10:07 AM (in response to vstorm83)Dear,
Could you provide me at least which file should be referenced to create connection, and what Query builder used to retrive profile information, I mean what the query syntax at least? besides, any document was explained gatein jcr & idm archietect would be appreciated.
Thanks
-
5. Re: GateIn Query
theute Apr 23, 2012 3:40 AM (in response to khkh82)You should not go down to the persistence layer to retrieve profile information, you should use the Organization Service API
-
6. Re: GateIn Query
khkh82 Apr 23, 2012 5:08 AM (in response to theute)Actuallty, I'm just looking to retrieve information using java container rather than Portal/Portlet container.
in other words, using java main class.
So, which jar's should I referances to achieve this.?
Thanks
-
7. Re: GateIn Query
vrockai May 7, 2012 9:11 AM (in response to khkh82)Hi,
There are some examples in the Picketlink IDM source code, i.e.:
http://anonsvn.jboss.org/repos/picketlink/idm/tags/1.3.1.GA/example/
Another good example used to learn how to use IDM basic functions is the original testsuite for the project, i.e.:
http://anonsvn.jboss.org/repos/picketlink/idm/tags/1.3.1.GA/