Get members of the group with the Java API in LiveCycle

I work with the Java API in LiveCycle (LiveCycle 8.2) and I am looking


an example of how read the members of a group.

I am able to get a group (Type GroupImpl) using the PrincipalSearchFilter.


But how do I get the members of this group. I checked the
DirectoryManagerServiceClient and classes of different search filters
without success?

As a solution, I can retrieve all users of my application area and
check their membership to see if they are in the group concerned. But this
is a dirty hack, I really don't want to use.

Any ideas?

Hello!

I know you mentioned that you were watching in this without success, but it should work really.

First make a GroupMemebershipSearchFilter, defining the groupoid be the ID of the group itself.  Using the DirectoryManagerServiceClient you can then call findGroupMembers using the searchFilter that will return a list of, as follows:

DirectoryManager DirectoryManagerServiceClient = new DirectoryManagerServiceClient (serviceConnection.getFactory ());

List userList = new ArrayList ();

Try
{
userList = directoryManager.findGroupMembers (searchFilter);
}
catch (System.Exception e)
{

Animals mistake
}

return userList;

Tags: Adobe LiveCycle

Similar Questions

  • Help with Essbase 9 and the Java API

    Hi, I am trying to connect to Essbase to a Java desktop app and I'm unable to do so. I need to know if I'm in principle do the right things and if I have the good environment set up.

    We have a server with Essbase version 9.3.1. We normally use essbase through the Excel add-in, and I already wrote it Excel applications that can use both the add-in and the Essbase API in VB. Now, I need to connect to Essbase but out of Excel and using the Java API. I have no idea what is APS don't my Essbase administrator.

    My request has the following (adapted from a post on this forum)-
    Public Shared Sub main (String [] args) {}
    String s_userName = 'user ';
    String s_password = "password";
    String s_olapSvrName = "ustca111";
    String s_provider = "http://localhost:13080/aps/JAPI ';
    try {}
    ESS IEssbase = IEssbase.Home.create (IEssbase.JAPI_VERSION);
    DOM IEssDomain = ess.signOn (s_userName s_password, s_provider, null, false);
    IEssOlapServer olapSvr = (s_olapSvrName) dom.getOlapServer;
    olapSvr.connect ();
    System.out.println ("connection to the server Analyic '" + olapSvr.getName () + "' has been a success.");
    olapSvr.disconnect ();
    } catch (EssException exp) {}
    System.out.println (exp.getMessage ());
    } }

    I'm running my app on my computer, not on the Essbase server, and the user name that I use is the same one I use (as a user of Essbase) through the Essbase Addin in Excel, not an admin login.

    When I run the application, I get:
    "Cannot connect to the Server.Make provider ensure that access code settings are correct and the server of the provider is running."

    Please can you confirm:
    (1) do I need an admin login for my client application to connect to the Essbase server or can I use a dial-up connection in normal play, like the one I use in Excel?
    (2) is the same provider regardless of the computer, i.e. "http://localhost:13080/aps/JAPI '; How can I know what this could be? Where can I get this information?
    (3) how can I make sure that the server is running the server needed 'provider', it's just a service that appears on the server services.msc? What should I ask the Essbase administrator for him to tell me what I need?

    Thank you very much.

    Leo

    Leo,

    You have APS and Shared Services running on your server? It would be the first question to answer. If you put in the url (http://localhost:13080/aps/JAPI, in your program) in a browser, you get a generic APS screen, or you get an error "page is not available. Unless you connect to APS that is running on the same computer that is running your Java application, the section 'localhost' should be the name of your APS Server.

    (1) for this Java program, you connect just to read only access that ID is OK
    (2) the supplier would be the same for every customer. The provider is the URL of your APS Server. Unless you run in embedded mode, you must APS to connect with the Essbase server. In embedded mode, you talk with the Essbase server, see [this thread | http://forums.oracle.com/forums/thread.jspa?messageID=3314485?].

    (3) APS - Analytic Provider Services, I'm not sure what it would show on a Windows Server. I suppose it would be something on Hyperion System 9 Analytic Provider Services. If you have installed APS, I would try the embedded road because it's the only way you will get to work.

    Published by: rjgideon on June 2, 2010 16:18

  • Using the record of decision in the Java API

    Hey all,.

    I work with an integration of Java of the OPA, and I'm curious to know how to exploit the record of decision by using the Java API for the information I'm after.

    Basic example:

    X = Maximum (A, B)

    In a record of decision, I see that A and B are used to determine X, but is there a way to know what is done with the API? I know its somewhere, I just need to get to work!

    Another example:

    X = (A - B) * C

    How can I retrieve what exactly happened in java using the API? Is this possible?

    Thank you!!!

    Dan

    Dan,

    Records of decision (code or xml) unfortunately do not go into that kind of detail. Records of decision describes what values are relevant and values assumed under influence, but they have no detailed calculation of information in them.

    It is not possible to do what you are trying to do.

    See you soon
    Frank

    Daniel Hager wrote:
    Hey all,.

    I work with an integration of Java of the OPA, and I'm curious to know how to exploit the record of decision by using the Java API for the information I'm after.

    Basic example:

    X = Maximum (A, B)

    In a record of decision, I see that A and B are used to determine X, but is there a way to know what is done with the API? I know its somewhere, I just need to get to work!

    Another example:

    X = (A - B) * C

    How can I retrieve what exactly happened in java using the API? Is this possible?

    Thank you!!!

    Dan

    Published by: frank.hampshire on April 10, 2013 10:42

  • How to get assets via the REST API (Webcenter Sites)

    Hello world

    I need to get assets via the REST API using Javascript, but I don't know how to open a session. Can someone explain to me how do?

    I would really appreciate it.

    I also followed this guide Oracle Webcenter REST API permission | Stories of official codification but does not work.

    Best regards!

    Hello rvillamarin,

    Take a look at https://docs.oracle.com/cd/E29542_01/doc.1111/e29634/wemsecurity.htm#WBCSD306. With this, you should be able to get a ticket, to pass at the request of the REST.

    Kind regards

    Stephan.

  • Want the link to open the mode required EAS IN WEb and details of the Java API

    Want the link to open the EAS IN WEb mode as well as the details of the Java APIs necessary to get to the top and running.
    Please provide the response if known.
    Thank you.

    Hello

    To connect to EAS on the web, it is http://: 10080/easconsole/console.html
    You should not have any API details make you just as you have a JRE installed, preferably a version 1.5

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • get rid of the java plugin

    I am trying to remove a plugin for java, it interferes with my browser and connection.

    Please see:

    How to uninstall Java on my Windows computer?

  • How do I know if a job runs using the JAVA API

    I use this Quick start to create a process that returns all current running tasks. If you look at the code, if the task of the current status is 100 then it is a task accomplished. What is the constant of a running task?

    I looked here , but it does not list a constant assimilates still running. Is the right way to go about this, or should I try something different?

    This link will take you to the TaskStatusTypes javadocs.

    http://livedocs.Adobe.com/LiveCycle/ES/sdkHelp/programmer/Javadoc/com/Adobe/IDP/taskmanage r/dsc/client/task/TaskManagerConstants.TaskStatusTypes.html

    There are 4 State active tasks, CREATION (1) and CREATED_SAVED (2) for the active tasks that start of the process, where the process instance is not created before to have completed this task, and ATTRIBUTED (3) and ASSIGNED_SAVED (4) for the active tasks associated with a process instance.  _SAVED status means that an incremental recording of data was performed for example save to drafts of workspace.

    No active tasks are COMPLETED (100), DEADLINED (101) and CLOSE (102), note that all are > = COMPLETED status, so conversely, any status< completed="" is="">

  • What is the difference between a message E-mail and SMS dial using the Java api?


    You can give a glance in "smsdemo" that comes with JDE.

  • HFM Java API pots found empty in the installation of the EMP

    Hello

    We seek to develop an extension HFM application based on the Java API of HFM as in https://docs.oracle.com/cd/E40248_01/epm.1112/hfm_javadoc/index.html

    While looking for the required JAR files epm_hfm_web.jar, epm_j2se.jar, epm_thrift.jar in our installation of EMP, we find that these files are empty with only the meta-inf folder and no class file was present.

    Are we missing something in the installation and the configuration or not looking in the right location for these jar files.

    Jar files are located in D:\Oracle\middleware\EPMSystem11R1\common\jlib\11.1.2.0 in our facility

    The details of the environment are as below.

    Oracle Fusion of EPM edition workspace version 11.1.2.4.0.79

    UI version 11.1.2.4.0.79

    This issue is already displayed in the HFM area, but we think that could hope to a solution here.

    Please suggest how to overcome this problem.

    Kind regards

    Guna

    If you look at the manifesto in the meta-inf directory you can see all of the jar files that are referenced in the class path

    See you soon

    John

  • The difference between the ADR green vs JAVA API usage? It's confusing

    Can u clarify the difference between the ADR green vs JAVA API usage? It's confusing. If I want to create a custom algorithm, what should I use. Is it Java APIs or green Marl

    Thanks in advance,

    Akhil

    Hi Akhil,

    Thank you for your interest in the PGX! If you want to write a custom algorithm, you should do it in green-Marl. Marno-Green is a custom DSL specially designed for writing of graph algorithms. You can then use the Java API of PGX to compile and run your algorithm. Find a detailed tutorial: http://docs.oracle.com/cd/E56133_01/tutorials/compile.html

    PGX is delivered with a set of built-in algorithms, each available as a convenient Java method. Internally, all algorithms are written in green-Marl as well. The signature of the Java method aligns with the signature of the underlying green-ADR procedure. Find information about the algorithms here: http://docs.oracle.com/cd/E56133_01/tutorials/builtins.html

  • Java API: Details of the error: Alert object returned task

    Hello

    Is there a way to details of the EGTT by task or any other object error in the Java API?

    I tried to use taskType.getError () .getMessage () , but it prints only "cannot perform this action. Contact your administrator to cloud. »

    But on vDirector it shows:

    could not update: [com.vmware.vcloud.common.model.ServerGroup #a26e600d-4c49-4d7c-8c65-a52dd9c4dd03]
    -Violation of UNIQUE KEY constraint 'uk_vm_container_org_vapp_name '. Cannot insert duplicate in the "dbo.vm_container" object key

    How can I get the exact cause of the error?

    Thank you

    Savita

    Hello

    I think that you do not connect as administrator by using the API. Try to connect as administrator system as the Organization and the password.

    Ex: user name - administrator@System

    password - password.

    The user interface shows because you sign in as an administrator.

    Kind regards

    Rajesh Kamal.

  • RoboHelp 9 offers a Java API using the RH_AIR_ShowHelp function?

    RoboHelp provides a java API with the function RH_AIR_ShowHelp as described here but only available for C++:
    #WSDCE1310D-6F71-41f3-9844-7EC5C5F87076 of http://help.adobe.com/en_US/RoboHelp/8.0/RoboHTML/WS5b3ccc516d4fbf351e63e3d11aff59c571-7f4 3.html
    ?

    He was not offered in the API Java RH8 and was a reason that I do not buy it.

    Paty

    Hello

    If you see the link http://help.adobe.com/en_US/robohelp/robohtml/WS5b3ccc516d4fbf351e63e3d11aff59c571-7f43.ht ml #WSDCE1310D-6F71-41f3-9844-7EC5C5F87076 it is said that there are APIs for many languages, including JAVA. Check the JAVA API in CSH API\Java file in RoboHelp installation folder. You can download RoboHelp 9 trial and try the Java API.

    Thank you

    Praful

  • Appeal of determinations engine (10.3) with Java API

    Are there examples of code was over what to call the engine with the Java API for 10.3 OPA?

    Hi Robert,.

    What would a full example code "? Examples of code using the OPA developer should demonstrate each of the various tasks needed to use the engine of determinations.

    Kind regards
    Brad

  • XLIFF file format and use with JAVA API

    Hello

    We use BEEP version 5.6.3 in Oracle Applications 11.5.10.2 and we are developing some reports to be translated into 10 different languages. We are therefore very interested in XLIFF files but have some questions about the file format and the use of the JAVA API

    (A) FILE FORMAT
    Accuracy: we generate the XLF file in menu add-on BEEP in Winword MS used to build the RTF model
    (A - 1), the generated XLF file begins with:
    <? XML version = "1.0" encoding = "utf - 8"? >
    Can we change encoding to "ISO-8859-1' as soon as convert us the file format?

    A-2) section he < header > < skl > < file > internal - contains a huge chain that seeem to be binary... What is c? can delete us it?

    A-3) can you have a file XLF muliple < file > sections (one for each language translation)?
    This can be very useful for us to manage a translation only by a report model file.

    A-4) the most important section for translation is included in the tag < trans-unit >.
    Each of them has a separate as id "49e41f8f" '... '. Can we replace that with a larger significance?

    (A - 5) in the format of language is as "en-US" (area code + language code).
    It is case sensitive?

    (* B) THE USE OF XLIFF FILES WITH JAVA APIS *.
    We use the OPE "FOProcessor" class to generate the PDF providing:
    -Data generated by SQL report XML file
    -File XSL - FO, generated from the module BEEP in MS WINWORD RTF model
    -XLIFF file generated from RTF model by the module BEEP in MS WINWORD
    -The XLIFF file contains a file entry to translate the form English to French
    < file source = target language language "en-US" = "en - US" datatype = "OPE" original = "orphan.xlf" product-version = "orphan.xlf" - name of the product ="" > "

    Here is a summary of our java implementation class:

    Processor FOProcessor = new FOProcessor();
    processor.setData (sXmlDataFilepath);
    processor.setTemplate (sXslTemplateFilepath);
    processor.setOutput (sPdfOutputFilepath);
    processor.setOutputFormat (FOProcessor.FORMAT_PDF);
    processor.setLocale ("en - US");
    xInputXlfLang = new FileInputStream (sXlfLangFilepath);
    processor.setXLIFF (xInputXlfLang);
    try {}
    Processor.Generate ();
    }
    {} catch (XDOException e)
    e.printStackTrace ();
    }


    (variables beginning with "s" are path + names passed as arguments)


    The output PDF file is well generated, but not translated in French!

    (1) I missed something?
    What is wrong in my code or my XLIFF file?
    Y at - it a parameter to pass to allow the XLIFF translation (via setConfig)?
    With "setLocale" we indicate the target language, but how BEEP knows this current language is "en-US"?

    I found a few posts on the subject, but none with a clear solution. So if I managed to solve this problem, I think it can be very useful for many developers.

    Thanks in advance for your help.
    K.Helali

    Edited by: K.Helali Apr 26. 2010 01:56

    Hey,.

    I know what you're talking about.

    Do not make the rtf-> xsl in the office.

    Do it in java code.

    Use RTFprocessor, for her, just set the model and set the true extractxliff.

    move the xsl foprocessor.

    to do this

    (1) in the BEEP for MS Word
    1 - a) build the RTF model
    1-c) extract texts translateable to the XLF file

    (2) in BEEP Server (Linux Redhat, BEEP 5.6.3) included with the Oracle Applications 11.5.102
    (2 - a) write a java class that implements class FOProcessor (see code in my first post)
    I'm passing to the FOProcessor class
    -XML data file
    model model XSL - export RTF, file to the XSL using RTFprocessor file save it sub - (here in rtfprocessor.setextractXlifff - true)
    http://download.Oracle.com/docs/CD/E10415_01/doc/bi.1013/e12693/Oracle/Apps/XDO/template/RTFProcessor.html
    -Translation (via the FOProcessor.setXLIFF method) XLF file

  • For the safety of the Sync API

    Is it possible to use VB/C/Java API for synchronization of security for a user. This must be equivalent to the command MaxL-
    ALTER user "usr123" sync with applications security;

    Hello

    Yes it is possible to do with the API
    In the part of the Java API of the IEssOlapServer interface, there are a number of ways to synchronize the security, such as syncUser(java.lang.String user) or syncUsers()

    See you soon

    John
    http://John-Goodwin.blogspot.com/

Maybe you are looking for

  • What should I stop time machine during the upgrade at El Captian?

    Do I have to stop the machine in time during the upgrade to El captain?

  • How can I stop the security settings being switched off when I stopped

    Have had problems connecting to intenert with IE8, unless the firewall disabled. Then when checking security settings find all off each time I I stop computer. Don't know if these problems; EMS are related

  • What is the RealPlayer program?

    I'm not sure where RealPlayer comes, but when I download my videos using the ECS with my camcorder Canon, ImageMixer 3SE software, but they are all listed with the small r for RealPlayer. I don't want them played by RealPlayer. Do I program or I can

  • What has changed in Windows 7 solitaire?

    Solitaire in Windows 7 is different. In the previous OS (Vista) my win percentage was 20%. In win7 is 13% (same computer). In addition, I maybe paranoid, but it seems that very often on the basis of a choice of 2 options (2 Kings at the top battery a

  • BlackBerry Smartphones new customer! A few Questions

    Well just buy the Blackberry "BOLD" to Ebay! It's unlocked because I'll leave the USA for about 4 years studying and my contract with AT & T has just finished two days ago and no point of renewal.This is my first blackberry and I can't use 100% as yo