How to use 11g API for adaptars custom

Hello
I write adaptar customized for OIM 11 g. Old api using, I am able to write the code and it is woring fine. But I want to use 11g APIs. Please let me know how to get the dataprovider in 11g APIs.

for example, I wrote the code to get the take below. and after you create the jar, I do address in the console of the design. dataprovider is maped reference of database. How to achieve the same using 11g APIs.

in the Sub wxample, I used tcUserOperationsIntf but I want to use oracle.iam.identity.usermgmt.api.UserManager. Please let me know how to connect with IOM witout using tcDataProvider. using the connection of the customer we can do that, but in this case it must encode url, id, password etc I think that.


{public long findUserKey (String employeeid, dataProvider tcDataProvider)

HashMap map = new HashMap();
Map.put ("Users.User ID", employeeid);
long take = 0;

try {}
tcUserOperationsIntf userOperationsintf = (tcUserOperationsIntf) tcUtilityFactory.getUtility (dataProvider, "Thor.API.Operations.tcUserOperationsIntf");
result = userOperationsintf.findUsers (map) tcResultSet;
{if (result. {(GetRowCount ()! = 1)}
return 0;
} else {}
Take = result.getLongValue("Users.Key");
}
} catch (Exception e) {}

}

Return take;
}

You need not to the map in the console design for use in your adapters. Just use Platform.getService in your adapter code and it gives you direct access to the API.

Tags: Fusion Middleware

Similar Questions

  • How to use mobile data for large app download data

    How to use mobile data for large app download data

    How can I set big data

  • How to use transfer windows for xp to xp. When I plug usb computers are delivered to the top with the same screen and when I try to use the transfer to the new computer, it just said information gathering and sits for hours

    How to use transfer windows for xp to xp.  When I plug usb computers are delivered to the top with the same screen and when I try to use the transfer to the new computer, it just said information gathering and sits for hours

    Hello, welcome.

    The process is automatic and the maximum transfer rate should be about 20 GB/HR. If the process crashes during that long of a time, it's probably because of something internal rather something you're doing wrong.
    For reference purposes, I included this link. It goes into the details of the migration from XP to Vista (and the basic steps you follow). The instructions are for migrating to Vista via the network, but you can easily follow the steps and choose a different option for your specific installation.
    For both machines, I recommend you to prepare for the transfer using the following procedure:
    1. click on START > run
    2 type "msconfig" (without the quotes) and press enter
    3. go to the "Startup" tab and uncheck all the entries displayed
    4. click on 'Apply' at the bottom right
    DO NOT RESTART YOUR COMPUTER AGAIN
    5. click on START > run
    6. Type "cmd" (without the quotes). Right-click on the result at the top of the menu START and select 'run as administrator '.
    7. type chkdsk /r and press enter
    8 allow the system to attempt disassembly of the volume
    9. allow the system to plan restarting
    10. restart your computer
    11 let checkdisk analyze the file system on your hard drive
    12. Once completed, perform the same steps on the other machine
    13. Once completed, repeat the transfer

    Let us know what happens
    Thank you!

    Ryan Thieman
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How long does it take for the custom field created in SFDC appears in the list of field mapping?

    How long does it take for the custom field created in SFDC appears in the list of field mapping? I hit the refresh field button, but it does not appear after 5 min. I just need to have patience?

    I had the same problem yesterday, I think it took about 10-15 minutes to appear.

  • Any how to use the Cloud for business training

    As in the topic I'm looking for inspiration, examples, how to use the Cloud for his work.

    My organization is a training, coaching and HR solutions company. (If you are interesting in, welcome to [deleted by Moderator])

    I believe that such tools as a Cloud technology could training more effective and more attractive to the user in its form.

    Will be grateful for any suggestion

    Wik

    Hello

    Please see the pricing and membership creative cloud plans | Adobe Creative Cloud

    You can also attach sales to understand plans and benefits.

    Contact us | Adobe

    Hope that helps!

    Kind regards

    Sheena

  • just bought SCAN SNAP supplied with disc of Acrobat, but only for PC, I use a MAC, the serial number of the disk, how to use and get for MAC

    just bought SCAN SNAP supplied with disc of Acrobat, but only for PC, I use a MAC, the serial number of the disk, how to use and get for MAC

    Standard Acrobat's window only; Acrobat pro for mac

  • How to use as operator for several values

    Hi all

    I want to obtain the column values for the column - filed_name which ends by ('X 1', 'X 2' 'X 3' 'X 4' 'X 5' 'X 0' 'XA' 'XB' "XM" "XP" 'X' "CM" "MT") of the variable_info table


    I tried to use as shown below

    SELECT * FROM VARIABLE_INFO WHERE FieldName like (' %x 1 "," %X 0 ");

    but getting error
    ORA-00907: lack of right parenthesis

    can someone tell me how to use as operator for multiple values?

    Thank you/kumar

    You need not a subquery, just make sure that you use parentheses to group your GOLD requirements

    SELECT RELATION ,
    FIELD_NAME ,
    ATTRIBUTE ,
    FIELD_DESCRIPTION,
    SOURCE
    FROM VARIABLE_INFO
    WHERE RELATION NOT IN ( 'CHAI',  'ITAB', 'ITB2', 'ITB3', 'MINI', 'NOTE', 'MINC', 'FINI', 'FTIM', 'FWTG', 'FMLY', 'FMIS', 'FSUM', 'MEMB' ,'FINC', 'FASO')
    AND (SUBSTR(FIELD_NAME,-2) in ('X1', 'X2' ,'X3', 'X4', 'X5', 'X0', 'XA', 'XB', 'XM' ,'XP' ,'CM','MT')
      OR substr(FIELD_NAME,-1) in ('X')
      OR substr(FIELD_NAME,1) in ('J')
      )
    AND (ATTRIBUTE LIKE 'NUM%' OR ATTRIBUTE = '-') ;
    

    The error you are getting sounds like a problem with the definition of VARIABLE_INFO. It seems the synonym or something that it points to rear edge

    For example:

    CREATE SYNONYM X FOR DUAL;
    CREATE SYNONYM Y FOR X;
    CREATE OR REPLACE SYNONYM X FOR Y;
    SELECT * FROM Y;
    
    SQL Error: ORA-01775: looping chain of synonyms
    

    Kind regards
    Bob

  • How to use the API of the IOM in Self Service identity custom region

    Hi all

    I developed a custom in Self Service identity using this guide area: customization of the Interface - 11 g Release 2 (11.1.2.1.0)

    Inside this area, I have a simple form that allows the creation of users. This form uses the API of the IOM, in particular the following line:

    UserManager usermgr = Platform.getService(UserManager.class);
    

    The error I got is:

    < error > < oracle.iam.platform.utils.SpringBeanFactory > < BEA-000000 > < parsin instantiation Spring Bean Factory Failed.IOExceptiong XML document resource path of class [META-INF/iam-spring-config. XML]; nested exception is java.io.FileNotFoundException: resource path of class [META-INF/AIm-spring-config.] XML] could not be opened because there is no >

    I use it because I think that I am inside the ISS. For this reason I don't want to use the client method to retrieve the UserManager (which obviously works):

            String ctxFactory = "weblogic.jndi.WLInitialContextFactory";
            String serverURL = "t3://" + HOSTNAME + ":" + PORT;
            
            Hashtable env = new Hashtable();
            env.put(OIMClient.JAVA_NAMING_FACTORY_INITIAL, ctxFactory);
            env.put(OIMClient.JAVA_NAMING_PROVIDER_URL, serverURL);
            
            OIMClient oimClient = new OIMClient(env);
            try {
                oimClient.login(OIM_USERNAME, OIM_PASSWORD.toCharArray());
            } catch(LoginException e) {
                e.printStackTrace();
            }
            UserManager usermgr = client.getService(UserManager.class);
    

    It is possible to use the UserManager methods in this case?

    Thanks in advance for your help.

    Manual

    Solved.

    Just replace

    UserManager usrmgr = Platform.getService(UserManager.class);
    

    with

    UserManager usermgr = OIMClientFactory.getUserManager();
    

    Manual

  • How to use the API of PL/SQL DBFS

    Hi guys,.

    I re-post this question to see if someone can help out me. I'm trying to use the API of PL/SQL DBFS to manipulate the files stored in DBFS.

    Details of the environment:
    Windows 7 or 5.5 OEL (I tried both platforms)
    Database: Oracle DB EE 11.2.0.2
    IDE: SQLDeveloper on Windows 7

    I have two users, DBFS_USER, who is the shop owner DBFS and MYUSER that connects to the store to manipulate files using the API of PL/SQL DBFS.

    Creation scripts:
    -----------------
    Connect / as sysdba;

    Dbfs_ts CREATE TABLESPACE DATAFILE 'D:\oracle\oradata\orcl\dbfs01.dbf' SIZE 1 M AUTOEXTEND ON NEXT 1 M;

    -create users
    create dbfs_user user identified by dbfs_user quota default tablespace unlimited dbfs_ts on dbfs_ts;
    create myuser identified by myuser;

    -grant the role
    GRANT RESOURCES, CREATE VIEW, CREATE SESSION, DBFS_ROLE, CREATE TABLE TO dbfs_user.
    GRANT RESOURCES, CREATE VIEW, CREATE SESSION, DBFS_ROLE, CREATE TABLE TO myuser.

    -create a filesystem (such as DBFS_USER)
    connect dbfs_user/dbfs_user;

    exec dbms_dbfs_sfs.createFilesystem ('STAGING_AREA_FS');

    exec dbms_dbfs_content.registerStore ('STAGING_AREA_FS', 'posix', 'DBMS_DBFS_SFS');

    dbms_dbfs_content.mountStore exec ('STAGING_AREA_FS', 'staging_area');

    commit;

    -export store STAGING_AREA_FS (as DBFS_USER)

    exec dbms_dbfs_sfs.exportFilesystem ('STAGING_AREA_FS');

    -Check the names of table (like MYUSER)
    connect myuser/myuser;

    -He can't see (without brackets)
    Select * from table (dbms_dbfs_content.listMounts);

    -Note at the bottom of the table table_name
    Select * from table (dbms_dbfs_sfs.listTables);

    -Mount as MYUSER (example with SFS table_name $ _FST_32)
    dbms_dbfs_sfs.registerFilesystem exec ('MYUSER_FS', 'DBFS_USER', ' FS$ _FST_32');

    exec dbms_dbfs_content.registerStore ('MYUSER_FS', 'posix', 'DBMS_DBFS_SFS');

    dbms_dbfs_content.mountStore exec ('MYUSER_FS', 'staging_area');

    commit;

    -verification of Mount (like MYUSER)

    Select * from table (dbms_dbfs_content.listMounts);

    Select the path in dbfs_content;


    CREATE a STORED PROC (like MYUSER)
    ----------------------------

    CREATE OR REPLACE PACKAGE MYUSER_PKG

    CreateDirectory function
    (P_File_Path IN VARCHAR2,
    P_ErrMsg OUT VARCHAR2)
    return number;

    END MYUSER_PKG;

    /


    CREATE OR REPLACE PACKAGE BODY MYUSER_PKG

    CreateDirectory function
    (P_File_Path IN VARCHAR2,
    P_ErrMsg OUT VARCHAR2)
    Return number
    IS
    l_Return NUMBER;
    l_props DBMS_DBFS_CONTENT. PROPERTIES_T;
    BEGIN
    l_Return: = 0;

    () DBMS_DBFS_CONTENT.createDirectory
    path = > P_File_Path,
    Properties = > l_props);

    RETURN l_Return;
    EXCEPTION
    WHILE OTHERS THEN
    l_Return: = NVL (SQLCODE,-1);
    P_ErrMsg: = SQLERRM;
    RETURN l_Return;
    CreateDirectory END;

    END MYUSER_PKG;

    /

    When you compile the package, I get this error:
    Error (9,11): PLS-00201: identifier 'DBMS_DBFS_CONTENT' must be declared
    Error (9,11): PL/SQL: ignored element
    Error (13.3): PL/SQL: statement ignored
    Error (15,19): PLS-00320: the declaration of the type of the expression is incomplete or incorrect

    How can I solve the problem in the error message? I'm not an expert in DB. I used this reference documentation: http://download.oracle.com/docs/cd/E11882_01/appdev.112/e18294/adlob_client.htm#CIHDEJAA

    Thanks in advance.

    CAPPA

    You must directly grant the privileges of DBFS_ROLE because roles are not enabled in stored PL/SQL:

    SQL> select* from v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for Solaris: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    
    SQL> show user
    USER is "SYS"
    SQL>
    SQL> create user myuser identified by myuser;
    
    User created.
    
    SQL> GRANT CREATE SESSION, RESOURCE, CREATE VIEW, DBFS_ROLE, CREATE TABLE TO myuser;
    
    Grant succeeded.
    
    SQL>
    SQL> begin
      2  for x in (select privilege, table_name
      3           from dba_tab_privs
      4           where grantee='DBFS_ROLE')
      5  loop
      6   execute immediate 'grant ' || x.privilege || ' on ' || x.table_name
      7   || ' to myuser ';
      8  end loop;
      9  end;
     10  /
    begin
    *
    ERROR at line 1:
    ORA-22812: cannot reference nested table column's storage table
    ORA-06512: at line 6
    
    SQL>
    SQL> connect myuser/myuser
    Connected.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE MYUSER_PKG IS
      2  Function CreateDirectory
      3  (P_File_Path IN VARCHAR2,
      4  P_ErrMsg OUT VARCHAR2)
      5  return Number;
      6  END MYUSER_PKG ;
      7  /
    
    Package created.
    
    SQL> show errors
    No errors.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE BODY MYUSER_PKG  IS
      2  Function CreateDirectory
      3  (P_File_Path IN VARCHAR2,
      4  P_ErrMsg OUT VARCHAR2)
      5  return Number
      6  IS
      7  l_Return NUMBER;
      8  l_props DBMS_DBFS_CONTENT.PROPERTIES_T;
      9  BEGIN
     10  l_Return := 0;
     11  DBMS_DBFS_CONTENT.createDirectory (
     12  path => P_File_Path,
     13  properties => l_props);
     14  RETURN l_Return;
     15  EXCEPTION
     16  WHEN OTHERS THEN
     17  l_Return := NVL(SQLCODE, -1);
     18  P_ErrMsg := SQLERRM;
     19  RETURN l_Return;
     20  END CreateDirectory;
     21  END MYUSER_PKG ;
     22  /
    
    Package body created.
    
    SQL> show errors
    No errors.
    

    You should check why some GRANT statement fails if you have another problem with the other piece of code.

  • How to use this API in Oracle ApEx

    I searched for a few days now, trying to find how to use this or any API in the ApEx.

    https://translate.Google.nl/translate?HL=NL & SL = NL & TL = in & u = http % 3A % 2F % www.pstcd.nl%2Fdocumentatie%2F 2F

    This sounds noobish, but I have no idea how to use. If anyone can help or give me some advice, it would be great.

    Hello

    ce04a039-2da9-401b-94c9-1d3300bcbb2b wrote:

    Please change your user ID to something meaningful. Reference: Video tutorial how to change username available

    I searched for a few days now, trying to find how to use this or any API in the ApEx.

    https://translate.Google.nl/translate?HL=NL&SL=NL&TL=en&u=http%3A%2f%2Fwww.pstcd.nl%2Fdocumentatie%2f

    This sounds noobish, but I have no idea how to use. If anyone can help or give me some advice, it would be great.

    As above given RESTful Web Services Web services API, you can:

    • Use a reference to the Web Service created in the shared components and then the process based on this reference page OR
    • Use APEX_WEB_SERVICE API to call the above mentioned APEX_JSON API and web services (if you are using APEX 5.0) to parse the JSON response and then further process.

    See the following thread: access to the Web Service API

    Kind regards

    Kiran

  • How to use black skin for specific controls?

    I am using black skin for segmented control. There seems to not be any property of skin or colorshade.

    How would I do that?

    Hey,.

    There are two methods available to set the skin to a control object segemented. The first is a setBackgroundSkin() and the second is a method of setButtonSkin(). Try the following and see if the counting works:

    import qnx.ui.skins.buttons;
    
    (...)
    
    var myControl:SegmentedControl = new SegmentedControl();
    
    (...)
    
    myControl.setBackgroundSkin(SegmentedControlSkinBlack);
    myControl.setButtonSkin(RoundedButtonSkinBlack);
    

    Be sure to import the skin button package and also replace "myControl" by your control object segmented. Hope that helps. Good luck!

  • How to use 780ti gtx for acceleration for adobe after effects?

    I have Asus gtx 780ti DirectcuII OC, How can I use it to GPU hardware acceleration for adobe after effects?

    The current versions of the AE does not use GPU acceleration for a large part of what. The only acceleration that makes all difference is in rendering traced to the RADIUS and which requires a compatible NVIDIA CUDA card. Nothing else will do it.

  • How to launch a paying for a customer site

    Hello

    I have an Adobe Muse over site that is hosted on Business Catalyst as a temporary site.  I would like to direct to my client with its domain name and has charged for monthly fees.  I can't understand how to do this.  Directions tutorial I want to all lead to error pages http://helpx.adobe.com/en/muse/tutorials/upgrading-launching-your-muse-site.html#id_32925 and the videos all seem to be on a temporary site is published. When I go to the admin of my temporary site page the only workflow seems to be to publish as one of my 5 free sites.  Is there a set of routes somewhere that will tell me how to publish this site for my client?  Thank you.

    Barbara

    One option would be to use your creative cloud free site slot to take the site live. Follow this guide to upgrade your site to the desired plan that would free up to the top of the slot used and triggers a billing cycle separated for the plan, billed at the standard rate, depending on the frequency of billing - http://forums.adobe.com/docs/DOC-3161.

    Or you can publish the project on a trial Business Catalyst site, and then connect to your http://www.businesscatalyst.com/Admin/Index.aspx?to=PartnerPortalpartner portal > and follow the upgrade of the site of the process as stated here - http://helpx.adobe.com/business-catalyst/partner-portal/upgrading-your-trial-site.html.

    Thank you

    Vinayak

  • How to use the DPS for a daily with as wordpress content management system

    Hello

    I use the DPS for magazines.  I would like to use urgent for a media company.  the content will be in the form of such as wordpress content management system, joomla.  I know that I can download html in pages content.  How can I display content such as the New york Times and the Washington post on iPad using digital publishing suites?

    Hello

    Please send me a private mail (ktukker at_sign adobe d o t - com) with your question and description of the workflow. Can you give me some links to sample from the Washington Post / NYT that you talk too much?

    You can associate a workflow HTML with DPS. Take a look at the application of Shell scenarios; content has all be created in the HTML articles.

    Shell scenarios: https://itunes.apple.com/nl/app/scenarios/id605820338?l=en&mt=8

    -Klaasjan

  • How to use the widget for payment? I was told that it was already in my library of widgets. But it's not.

    How to install the widget for payment? I was told that it was already in my library of widgets. But it's not.

    Hi, Edwina,.

    The default widget is paypal: How to add a PayPal button. Adobe Muse CC tutorials

    Or you can refer to Adobe Muse Widget Directory for third-party widgets.

    Kind regards

    Akshay

Maybe you are looking for

  • Drivers for Win XP Toshiba Satellite C660D - 13H

    HelloI have Satellite C660D - 13H and I just want to work with win XP but unfortunately I can't find the drivers for my model on the Toshiba site. It is possible for this model to work with XP? Because this processor is too weak to Win 7?Can someone

  • Change the iCloud account

    I have an iPad with iOS 3 9, my problem is that iPad have the former owner iCloud account and can't get in touch with him and I don't know the password to remove his account, of course, I want to use my icloud account.

  • How can I get a Vista installation disc to reinstall Windows.

    new hard drive Please can you help me, I had to replace my hard drive in my samsung r70 laptop and din't do back up the drive. How can I now vista back on because I have the sticker under the laptop with the license, but don't drive. Thanks neal walk

  • LaserJet CP1025: Printing pink spots on the first page of all documents Word and PDF but not Excel etc.

    This printer has had very little use again, last September. This problem started about 2 weeks ago. It affects Word, PDF files and print from Chrome. Excel, Publisher and Notepad all print correctly. It affects only the first page of the documentatio

  • Problem connecting ISA550W. SSHv2 (of LAN &amp; WAN via TeraTerm)

    Dear support, I want to use CLI to manage my ISA550W. Given that this model does not support Telnet. (Please, correct me if I'm wrong) So I try to use SSHv2 to ISA550W. But it's not working, I always got error message "access denied." My setup is bel