How to retrive group list
Hi all,
How can we retrieve the information about the groups in which user belong to in WLS, when he logs in the portal application.
Is there is anyway through which we can get this information in a bean class in portal application.
Thanks
Edited by: 938480 on Jul 6, 2012 5:31 AM
Hi ,
Very very basic code for this is as follows :
public static void main(String[] args) {
// Create a new IdcClientManager
IdcClientManager manager = new IdcClientManager ();
try{
// Create a new IdcClient Connection using idc protocol (i.e. socket connection to Content Server)
IdcClient idcClient = manager.createClient ("idc://<hostname>:<intradocserverport>");
//for using the web connection - start
// IdcClient idcClient = manager.createClient("http://<hostname>:<webport>/cs/idcplg");
// IdcContext userContext = new IdcContext("weblogic", "<password>");
//for using web connection - end
// Create new context using the 'sysadmin' user
IdcContext userContext = new IdcContext ("weblogic");
// Create an HdaBinderSerializer; this is not necessary, but it allows us to serialize the request and response data binders
HdaBinderSerializer serializer = new HdaBinderSerializer ("UTF-8", idcClient.getDataFactory ());
// Databinder for excuting the service
DataBinder dataBinder = idcClient.createBinder();
dataBinder.putLocal("IdcService", "GET_USER_PERMISSIONS");
This is code snippet that will list the entire set of data / result set for the IDC Service used .
Hope this helps .
Thanks,
Srinath
Similar Messages
-
How to retrive the List in jsp
Hi
i m storing the objects of the same class in the List. and that list i stored in a request scope in the Acton class . Now i want to acess the single object from the List in jsp page ...
so please suggest me ; how can i access it ? and i also dont want to use any scriptlet code
i want to access it through jsp or html tags .....Try this (assuming you have the list in request scope as variable myList)
<c:forEach var="listItem" items="${ requestScope.myList }">
<c:out value="${listItem}"/> </td>
</c:forEach> -
Reg : How to retrive Group User ID's and Task assigned to users?
Hi,
Can anyone please help me out?
I have a requirement like, In my process I have assigned a task to Group of Users. Now I need to findout All the User ID's as well as How many tasks assigned for that specific user. This is my requirement.
My uderstanding for this we need to implement specific API's. But I dont have idea which API have to use.
Please anyone having idea share with me and suggest me appropriate steps!
Thanks in Advance,
Anand.How strange I answered (or at least helped) this very same question earlier today. Here the link to my previous answer then:
http://scn.sap.com/thread/3536135 -
How can I migrate my group lists with my address book?
I have moved from Windows XP to Ubuntu (YEAH!). I was using TB in XP and I was able to successfully move my address book with all of my contacts' information by copying and pasting the abook.mab file. But I seem to have lost (or at least I am currently missing) the group lists that I had created using that address book. Where is that information stored and how do I transfer it to TB in Ubuntu? Is it as simple as copying another certain file or will I have to extract and then import some information from some file(s)? Those group lists were almost as important as the address book itself and I made the assumption (yes, I know!) that the group list info was integral to the address book itself. Any help would be appreciated! Thanks!
No, I did not export and then import the address book. I just copied the .mab file. Is that what I have to do? Is there another file, or portion thereof, that I can just copy across? I have all those #appdata# files saved, but i do not have Windows running anymore. I have also now noticed that my "Collected Addresses" were not contained in the abook.mab file either. It would be good if I could recover them too.
Thanks again for any help. Much appreciated! -
How can I stop my iPhone from synching my contacts and groups lists twice?
How can I stop my iPhone from synching my contacts and groups lists twice....I am using iCloud but am not sure how correct this duplication.
Go into Settings>Mail, Contacts, Calendars. Is this happening at the bottom in the signature section, or in the header of the mail where your email address is? If it is the signature, then go to the Signature area of the Mail settings. If this is in the header, then go to the account in question and edit your account information to include your name instead of Johnny.
-
How to get the list of Group set in each Users in MS Active Directory
Hi. I would like to know if you know how to get the set group of each user in Active Directory?
We have this sample code
String INITCTX ="com.sun.jndi.ldap.LdapCtxFactory";
//String MY_HOST = "ldap://myserver/ou=dev,dc=test,dc=com,dc=ph";
String MY_HOST ="ldap://myserver.dev.test.com.ph:389/dc=dev,dc=test,dc=com,dc=ph";
String strUsername,strPassword;
try
strUsername = Request.getParameter("username").toLowerCase().trim();
strPassword = Request.getParameter("password").toLowerCase().trim();
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, INITCTX);
env.put(Context.PROVIDER_URL, MY_HOST);
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL,strUsername+"@dev.lst.com.ph");
env.put(Context.SECURITY_CREDENTIALS, strPassword);
After validating the User Name and Password the next task is to Retrieve the group list of the User.Nope I want the log-in user to retrieve its Group where he is belong. I have this following code
strUsername = Request.getParameter("username").toLowerCase().trim()+"@dev.test.com.ph";
strPassword = Request.getParameter("password").toLowerCase().trim();
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, INITCTX);
env.put(Context.PROVIDER_URL, MY_HOST);
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL,strUsername);
env.put(Context.SECURITY_CREDENTIALS, strPassword);
// enable tracing
env.put("com.sun.naming.ldap.trace.ber", System.err);
// Create the initial context
DirContext initCtx = new InitialDirContext(env);
// Get the target context
DirContext targetCtx = (DirContext)initCtx.lookup("");
SearchControls constraints = new SearchControls();
constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
// Perform the search on the target context
NamingEnumeration enum = targetCtx.search("","(userPrincipalName="+strUsername+")",constraints);
javax.naming.directory.Attributes attrs;
NameClassPair item;
String[] attrIds = new String[]{"MemberOf"};
// For each answer found, get its "Groups" attribute
// If relative, resolve it relative to the target context
// If not relative, resolve it relative to the initial context
while (enum.hasMore()) {
item = (NameClassPair)enum.next();
Out.println(item);
attrs = targetCtx.getAttributes(item.getName(), attrIds);
Out.println(attrs + "<br>");
initCtx.close();
It returns all this string :
{memberof=memberOf: CN=CMCanadaRD,OU=Groups / Teams,DC=dev,DC=test,DC=com,DC=ph, CN=iMngrCanadaRW,OU=Groups / Teams,DC=dev,DC=test,DC=com,DC=ph, CN=Domain Users,CN=Users,DC=dev,DC=test,DC=com,DC=ph, CN=Backup Operators,CN=Builtin,DC=dev,DC=test,DC=com,DC=ph, CN=Administrators,CN=Builtin,DC=dev,DC=test,DC=com,DC=ph}
How can i retrieve the Group named CMCanadaRW and CMCanadaRD on the Attribute?
Thanks -
I see an "archive" group listed in the ibook catagories section. How do i put the books that I've read into that catagory?
Are you sure that you are not talking about the Kindle App? I might be missing it, but I don't see an Archive section in iBooks categories.
You can create a section for the books that you have read in collections in the iBooks app.
Tap on Collections, tap New - name it Archived if that is what you want to call it. Tap Done, then tap the bookshelf anywhere. Tap the Edit button, tap the books that you want to move to Archved - tap Move in the upper left and select Archived. -
How to create a list of Vendor's Account group, to call by a macht -code?
Hi All,
Could anyone tell me how to create a list of Vendor's Account group, to call by a macht -code?
Thanks
GandalfHi,
Use this report S_ALR_87012086 and select the account group single or multiple ranges from dynamic selection.
Thanks
Javed -
TS4002 How do I send email to a Contacts Group list?
How do I send email to a Contacts Group list?
Thank you for your quick reply. I've had a MAC for several years but never used this option. (We are all infants when doing something for the first time. A recent TBI has also stunted my figure-it-out-yourself ability.) I appreciate your help. (PS I want to indicate this solved my question, but I can't see where to do that!)
-
HT2486 How do you make a group list? Not a smart group.
I am trying to make a group list on my contact list and wondered how it is done? Thank you.
This is for "iCloud" but it also talks about how to do it in Address book.
http://support.apple.com/kb/PH2667?viewlocale=en_US -
Wiki - How to cutomize the default Wiki Groups listing?
I am looking for any information about the Wiki groups listing.
url: http://yoursite.local/groups
I have already modified some of the look via ./usr/share/wikid/lib/appletemplates/grouplistings.xsl but I am still looking for the following:
1. Is the groups listing page generated or a static index page?
2. Can it me modified? How? Where?
Cheers,
/kThe strings are found in /Library/Application Support/Apple/WikiServer/en.lproj/default.strings. It's listed twice but I think it's the second one that changes that text on the web pages. That way you can change the strings without editing the .xsl files.
That being said, I am using the apple them and I've successfully (somewhat) converted my entire site to use this template with my customizations. I have been playing with the the .xsl files quite a bit and I was wondering if anyone knows how to have the server point to a new theme file so that my changes don't get overwritten with an update.
I can see numerous places where the includes in many of the .xsl files show a path to the /usr/share/wikid/lib/apple_templates/ files but, but where is the root of where it looks for this info and how do I change it so that I am immune to update overwriting issues?
Thanks,
Colin -
How do you specify which email address to use in a group list?
Hi All,
I've got several group lists created in Address Book. When I want to send an email to a group using Mail I cannot specify which email address gets used for a person that has multiple addresses in Address Book.
My process is as follows: create a new blank message, address the note to myself, move to the bcc field, click the "Address" button at the top of the message pane. When I click on a name that has multiple email addresses I can click on the one that I want, but when I click to another name and click back the previously selected address is highlighted again. It seems that the selection of the address won't 'stick'. Is there any way to force the selection? Also, I originally thought that the group list defaulted to the home address, but I noticed that some entries have their work address selected by default.
Thanks for any help.
-ChrisThank you, thank you, thank you!!! I knew there was an option to do that somewhere. For some reason I had it in my mind that you made those selections in Mail.
Kappy wrote:
Open Address Book and select a group. CTRL- or RIGHT-click on the group and select Edit Distribution List. You may then scan through the group members selecting the desired email address for each one with multiple addresses. -
WAD - How to obtain a button group list
Hi all, I'm trying to add in my report, using a WAD, a list of button.
In particular, adding a button_group_item, in a runtime scenario I obtain:
button1 button2 button3
How to obtain a list like this:
button1
button2
button3
in the same tray object ?
Thanks in advance for your collaboration
GianfrancoHello, I solve on my own using CONTAINER_LAYOUT.
Gianfranco -
How can I email a group list from my contacts/Mac address book?
I love the Apple address book for making media lists for my PR business because it enables me to add dates and actions. But when a client wants to see the list via email, I'm flummoxed. I've been rewriting as a Word document, but that eliminates the convenience of Address Book. I could print, scan, and send,but that's cumbersome. If we can share a contact, why can't we share a Group list? Or, am I missing something simple?
Thanks!Howdy J-carolyn9,
Welcome to Apple Support Communities.
Take a look at the article linked below, it’ll walk you through the process of printing a group of contacts from Address Book on your Mac.
Mac Basics: Address Book - Apple Support
If you'd like a tangible address book, print out a pocket-sized version of Address Book. Select the names that you want to include from the contacts list, or select a group, and choose Print from the File menu. Click Show Details, and choose Pocket Address Book from the Style pop-up menu, select any other options you want, and click Print.
Ciao,
-Jason -
TS4408 How to print photos in contacts group list?
I used to be able to print out a Contacts group list with photos but that does not seem to be possible now. Is there a fix or a workaround?
I can't find an option for this either. Try submitting feedback here: http://www.apple.com/feedback/macosx.html
Maybe you are looking for
-
HT204053 My husband and I have separate apple IDs, how do we use the same iTunes account
My husband and I have separate apple IDs , how do we use the same iTunes account
-
How do I change my situation .
-
Disappearing scrollbar in Mac OS 10.8
I recently upgraded my Mac operating system from OS 10.6 to OS 10.8. After doing so I found that the scrollbar on my Verizon email page had disappeared so it was impossible to click on messages at the bottom of the page. This was the case whether I a
-
i've connected the camera to the mac using the supplied usb cable. imovie shows 5 icons for videos but all of them have the red circle with slash through them and the box to import them is grayed out.
-
Best practice RAID configuration for UCS C260 M2 for Unified Communications?
I have two UCS C260 M2 servers with 16 drives (PID: C260-BASE-2646) and I am trying to figure out what the best practice is for setting up the RAID. I will be running CUCM, CUP, CUC, Prime, etc. for about 2000 phone environment. If anyone can offer r