need to extend the end date of user using the API of the IOM

Hello
I have a requirement extension enddate to the user to some 30 days using IOM API-tcUserOperationsIntf. I know there is a Thor.API.Operations.tcUserOperationsIntf.updateUser (Thor.API.tcResultSet poUserResultSet, phAttributeList java.util.Map) method that can be used to update the data of the user in DB IOM.
If someone has run this method then please let me know a procedure step by step to implement this method. I am new to using the API of the IOM.


Thank you
Kalpana.

Try this:

tcUserOperationsIntf userOperationsIntf = (tcUserOperationsIntf) getUtility ("Thor.API.Operations.tcUserOperationsIntf");

protected void execute() {}
try {}
beginning of the custom code
tcUserOperationsIntf oUserObj = (tcUserOperationsIntf) getUtility ("Thor.API.Operations.tcUserOperationsIntf");
               
System.out.println ("executing query");
custom code starts
tcUserOperationsIntf usrOps;
The criteria map = new HashMap();
Criteria.put ("Users.Key", "86821");
System.out.println ("user key-86821");
               
tcResultSet users = oUserObj.findUsers (criteria);
System.out.println (UsersList.getTotalRowCount ());
Criteria.put ("Users.End Date 12:01:56.000000000 2012-06-24","" ");
oUserObj.updateUser (users, criteria);
} catch (Exception e) {}
               
}
}

Tags: Fusion Middleware

Similar Questions

  • Search for users using java API IOM 11 with the value of null field

    Hello

    I find user using java api findUsers (HashMap hash), but I need get all users where a custom field is equal to null

    Example:

    HashMap userHash = new HashMap();
    userHash.put ("USR_UDF_CUSTOM", "NULL");
    userData tcResultSet = userOps.findUsers (userHash);

    Someone help me?

    Do not use this search functionality. The user that:

    UserManager usermgr = Platform.getService (UserManager.class);
    Criteria of SearchCriteria = new SearchCriteria ("Custom Label", null, SearchCriteria.Operator.EQUAL); Suppose USR_UDF_CUSTOM label is personalized
    List of users of = usermgr.search (null, null, criteria);
    for (user: user) {}
    perform the action here
    }

    -Kevin

  • fnd_user_pkg. UpdateUser - End Date remove users

    Posted by mistake in the PL/SQL forum, until someone pointed out my mistake.

    As part of an upgrade, we need to close the vast majority of our users.

    I used the API fnd_user_pkg.updateuser to fill the end_date on the fnd_user table.

    However, when I came to test removing the end date, I can't do it. In the example below, the end_date remains populated.
    DECLARE
       CURSOR usercur
       IS
          SELECT fu.user_name
            FROM apps.fnd_user fu
           WHERE user_name = 'TEST_ACCOUNT';
    BEGIN
    
       FOR myuser IN usercur
       LOOP
          fnd_user_pkg.updateuser(
             x_user_name      => myuser.user_name
           , x_owner          => 'CUST'
           , x_end_date       => NULL
          );
       END LOOP;
    
    END;
    On the example on this post:
    http://apps2fusion.com/forums/viewtopic.php?f=99 & t = 108

    They took the final date via:

    x_end_date = > SYSDATE + 10000);

    However, this isn't really remove the end date, it's just assigning a lot of time in the future.

    I was wondering if I missed something obvious?

    Any advice much appreciated.

    Thank you

    You must pass to_date (' ' 2 ',' J ') as the end_date. It's 1/2/4712.
    If you pass this date, Oracle which deals as null. It will therefore remove the end_date in the table user.

    Hope that answers your question
    Sandeep Gandhi
    OMKAR Technologies Inc.
    Techno-Functional consultant
    513-325-9026.

  • I need to extend the GameCanvas but also UiApplication

    Hello. I'm working on a game for the BB and I have a problem. The game is designed to work on other mobile devices, while it extends the common classes of MIDlet and GameCanvas. Now I'm trying to transfer my application on BlackBerry, and I'll try to find a way to extend the UiApplication and screen, classes because I need to register for keyListeners, trackBallListeners, override the navigationMovement (...) method, etc. I'm sorry if I ask too much or what I want can't happen, but I am new to J2ME and RIM. Thank you!

    game of public class extends GameCanvas implements Runnable {...}
    public class MIDlet extends MIDlet {...}

    you need to switch to the UI of the rim infrastructure, then. one or the other.

  • Change the shared user using Java API Service

    Hi Experts,

    I have successfully run the example of classes Java from here: http://docs.oracle.com/cd/E17236_01/epm.1112/epm_security_api/frameset.htm?ch01s03.html
    And I need to change the code of UserFunctions.Java.

    UserFunctions.Java, I can create, edit, and delete a user.
    But in this sample program, when I want to edit a user, I should create a new user first.

    My requirement is I want to change the existing user passing the parameter when you run the program.
    So, when I want to launch the program, it should be like this:
    Java UserFunctions 'method' 'username', 'password', 'email', 'first name', 'last name '.

    FYI, I can create a user in passing the parameter as I mentioned above.
    But to edit a user, I still can't do it.

    Please find my codes below:

    public CSSNativeUserIF createUser (String username, String desc, String firstname, String lastname, String email, String pass) throws CSSException
    {
    The user CSSNativeUserIF = null;
    HashMap context = new HashMap();
    user = cssDMAPI.getNativeUserInstance (context, main);
    user.setLoginName (username);
    user.setDescription (desc);
    user.setFirstName (firstname);
    user.setLastName (lastname);
    user.setEmailAddress (email);
    user.setPassword (pass);
    cssDMAPI.addNativeUser (main user, context);

    return the user;
    }

    ' public void modifyUser (String username, String desc, String firstname, String lastname, String email, String pass) throws CSSException
    {
    The user CSSNativeUserIF = null;
    HashMap context = new HashMap();

    System.out.println ("Edit description user...");
    user = cssDMAPI.getNativeUserInstance (context, main);
    user.setLoginName (username);
    user.setDescription (desc);
    user.setFirstName (firstname);
    user.setLastName (lastname);
    user.setEmailAddress (email);
    user.setPassword (pass);
    cssDMAPI.updateNativeUser (main user, context);

    }

    -------

    in the Sub main():

    If (method.equals ("create"))
    {
    / * Create a native user * /.
    cu.printMsg (System.out, "- creating a user-" "");
    user = cu.createUser (username, desc, firstname, lastname, email, pass);
    cu.dumpUsers (System.out, "the user is created successfully," new CSSNativeUserIF [] {user});
    }
    ElseIf (method.equals ("update"))
    {
    / * Change native user * /.
    cu.printMsg (System.out, "- update a user-");
    cu.modifyUser (user name, desc, firstname, lastname, email, pass);
    cu.dumpUsers (System.out, "the user is updated", new CSSNativeUserIF [] {user});
    }

    Could you please help me with this?

    Thank you and best regards,

    Christophe

    Try this

    CSSUserIF [] usrs to = cssAPI.getUsers (context, principal, sLoginName);

    If (usrs.length > 0) {}
    CSSNativeUserIF natUser1 = (CSSNativeUserIF) usrs to [0];
    natUser1.setLoginName (sLoginName);
    natUser1.setFirstName (sFirstName);
    natUser1.setLastName (sLastName);
    natUser1.setEmailAddress (sEmail);
    natUser1.setDescription (sDescription);
    natUser1.setPassword (sPassword);

    cssDMAPI.updateNativeUser (context, principal, natUser1);
    }

  • Portege Z30 - need to extend the display on two external displays

    Hi all

    I'm running Bloomberg and need the image to extend on the screens LCD HD complete two 24 ". Including my current laptop's built-in display, I use three panels at the same time. I can do with the Z30 1 CZ? Should I buy a docking station for that?

    Right now I use a ultrabook from another manufacturer but I'm not satisfied with the reasons that have nothing to do with the display. Currently, I use a docking station, where a screen connects by DVI and one VGA cable.

    Can I use the VGA and HDMI from laptop ports to get the same solution with the Z30?
    Best wishes
    Peter

    To my knowledge the display function depends on the graphics card/chip.

    Usually, you can use a VGA or HDMI output.
    VGA (RGB) port provides analog, HDMI provides digital signals, and as far as I know, you can't use both at the same time

    However, you could buy a "hdmi adapter usb adapter allowing you to use two external monitors simultaneously.

  • Need to extend the registration for the wishes

    This customer requires up to 20-30 minutes (or more) of a record time to record product/market reports which are changed daily.

    When I go into the registry of the unit and try to change the settings. Reboot does not maintain these settings.

    in the SA unit, you can create a new class of Service and under Greetings tab set home duration, in seconds, the maximum 1800. (30 min), assign this new COS to the subsribers who need.

    That should do it.

    Rob

  • Extend the limits of hard drive

    I have an Acer Aspire 5720 with 80 GB hard drive. However, the reader is divided 32.5 on drive C and 32.5 GB on the D drive. My C drive is full and I would like to add an external hard drive. I need to extend the limit of drive C to allow me to load software for external hard drive. The other alternative is to load software for D drive which is empty, but I don't know how to do this. Can pleasae you help me.

    Stewart I Greig.

    Hello.

    You cannot add a small part of D: to C:.

    It's all or nothing.

    -What are you doing this > if ever you have given on D: you save which data > then you totally delete the D: and D: partion becomes now unallocated space > then extend you C: into this unallocated space to have a larger partition.

    «How delete and extend a Partition with Vista disk management»

    http://www.Vistax64.com/tutorials/95418-disk-management-delete-extend.html

    See you soon.

    p.s. This applies only to the Acer, as many manufacturers use D: as a recovery Partition.

    Acer does not work. Their recovery partition is hidden.

  • Extend the 'footage' imported PSD layers

    I imported a layered Photoshop file into After Effects as a model in layers with several layers of "footage".psd:

    Screen Shot 2016-06-27 at 1.23.33 PM.png

    I have created and edited the comps in the 20 main comp with animations and effects. Now, I need to extend the .psd layers (all 7 s ~) to the length of the main comp(20s).

    I tried dragging to extend their regions and right click > time > enable time Remapping(this allows me to extend the region with keyframes, but the content still ends proportionally short of the containing comp duration).

    When I right click on the layer of .psd and click on 'Open Source layer', the preview displays the duration of the layer extending at once as it shows in the timeline(~7s)...

    icZAR.png

    but green "render bar" only goes to 5s. And no content is visible while the playhead is at 6s, below...

    sWEMD.png

    This is also when I drag the playhead in the timeline main comp - layers with this problem disappear to 5s, even if their areas extend to 7s.

    1. I need to get these parts of layer to increase the length of my 20 years comp.

    2 it seems that the source of the layer is 5 s when I "Open Source layer", then even if the region is currently being extended to 7 s ~, 'content' only goes to 5s.

    How can I extend it to 20 seconds without doing all my images keys/animations/effects all over again?

    Or is there a way to re - import only the layers to lasting longer, but keep all my keys/animations/effects images.

    Using the latest Photoshop CC 2015.5 v2015.3 & after effects CC.

    Thank you!

    Sure sskaz is on, check if there is a timeline attached to your psd in Photoshop and delete it:

    You can also freeze your layers in After Effects and make more time

  • Creative Cloud Files - how to extend the storage space

    Dear all,

    I hit the limit of 20 GB and I need to extend the storage space, but I couldn't find any way to do it. Is it still possible? I need more than 20 GB...

    Thanks for the tips,

    Mario

    Hi Mario,.

    Now extra space can not buy, if there is a plan to make it available, we will inform our users evaluated beforehand.

    You can go for single-seater CC for team where every seat has 100 GB of space.

    Thank you

    Yann Arora

  • Need help with the discoverer

    Hi Experts,

    I'm pretty new to the stuff of discoverer, I need your help for a problem I have:

    I develop a report, in which I was a part of concatinating 5 columns (typical 5 types of codes such as AllCodes = (',' |)) Code1. «, » || Code2. «, » || code 3 | «, » || code 4 | «, » || job.5) in a single item in the folder, and I want to give users option to check a particular code to one of the 5 codes

    using AllCodes like ' %, 4589, %' I read the results as with using commas in concatinating or in the like condition, it translates into all other types of codes such as 45896,64589, v4589... etc, so I used commas to separate the codes and then gave the commas to search for an exact match.

    Asking users to enter the code that adds the commas, is it not the discoverer instead, use parameters or anything else to get me the desired effect.

    All I want is a users enters as '4589'* and which should, in fact, sent to the database as like '%, 4589,' _
    Is it really sort who performs the task, I'm trying but unable to get the idea.

    If someone helps me, I will be grateful.

    Thank you

    VK

    Hi VK
    Yes, this can be done. First change the setting in such a way that one associates with and not the column name. It will be unattach the parameter of your condition. In the parameter you ask the user to simply enter the number they want to look for. OK so far?

    For this example, we will call the AllCodesParam parameter

    Then, you must change the State or, if it does not exist, create one like this:

    In the item, select your AllCode files
    In Condition, select the LIKE operator
    In value, the menu drop-down select Create a calculation

    Create this calculation:

    *'%, ' || : AllCodesParam | ',%'*

    This will take care of the values that are in positions 1 to 4 but not 5 because the 5th doesn't have a trailing comma, so you need to extend the Boolean condition to aid OR by repeating the above except the calculation looks like this:

    *'%, ' || : AllCodesParam *.

    Your final statement will look like this:

    AllCodes LIKE '%', | : AllCodesParam | ',%'
    OR
    AllCodes LIKE '%', | : AllCodesParam

    I hope this helps
    Best wishes
    Michael

  • Extend the poplist VO

    Asked me to extend a VO that is used for a poplist.
    Now, which is to add a where clause additional clause.

    My question is this that VO has a VOImpl and a VORowImpl.

    This VO is also be initialized in the AOS by using the following code

    Public Sub initAbsenceTypeVO()
    {
    AbsenceTypeVOImpl localAbsenceTypeVOImpl = getAbsenceTypeVO();
    SSHRParams localSSHRParams = new SSHRParams (getOADBTransaction ());
    Dim str As String = localSSHRParams.getSelectedPersonBusinessGroupId ();
    If (str! = null)
    {
    localAbsenceTypeVOImpl.initQuery (str);
    }
    }

    So if I just extend the VO, during this call in the AM, my VO will be so called?

    Pradeep,

    No need to extend the AM. Oracle code with automatically pick the new VO if replace you it. What you must ensure is that the connection setting is the same as in existing code. Tell me if I'm missing something.

    Concerning
    Sumit

  • What is the easiest way and automated to automatically remove data cards without using the API.

    We have a use case where you want to get a number of data cards in the last 30 days. I know that I can use the data card evaluator app to count, but not with additional limits to date created.  I was wondering if anyone has found a way to automatically remove data cards without using code API/custom just so I can get the correct number, I always desire or some other way to solve this puzzle.

    Thank you

    Amit Pandya

    OK never mind, just resolved using this day and form the connector to cloud, just a counter in the data card whenever a transaction occurs by product with combination of program generator.

    If anyone has any other simple approach, please share.

  • need to update the date of the end of the user using the API of the IOM

    We have a requirement where we need to update the date of the end of the user. The details of the user as usr_key, number of days to extend (such as 30 days or 60 days), and affects manager is provided by SOA (maybe by BPEL). In the java class, I need to add the number of days of the closing date of the user and then update the table of the usr by IOM API method - usrMap.put ("USR_END_DATE", updatedEndDate);

    I wrote a small program, but it has erros. Please help me in this situation.
    ' public boolean updateEnddate (String usrKey, String managerKey, String NombreJours) {}
    Boolean result = false;
    String NombreJours;
    int totalNumUsers = 0;
    HashMap usrMap = new HashMap();
    usrMap.put ("Users.Key", usrKey);
    usrMap.put ("USR_MANAGER_KEY", managerKey);
    try {}
    DateFormat sdfSource = new SimpleDateFormat("yyyy-MM-dd");
    Date date = sdfSource.parse("USR_END_DATE");
    SimpleDateFormat sdfDestination = new SimpleDateFormat("dd-MMM-yyyy");
    String userEndDate = sdfDestination.format (date);
    tcResultSet = this.usrIntf.findUsers (usrMap) users;
    totalNumUsers = usersList.getRowCount ();
    If (totalNumUsers > 0)
    for (int i = 0; i < totalNumUsers; i ++) {}
    usersList.goToRow (i);
    updatedEndDate = userEndDate + NombreJours;
    usrMap.put ("USR_END_DATE", updatedEndDate);
    this.usrIntf.updateUser (users, usrMap);
    result = true;
    }
    on the other
    result = true;
    }




    Thank you
    Kalpana.

    Calculate the new date

    /**
    * This method is used to obtain the new date after adding x-days
    @param strDate - date today
    @param daysToAdd - x-days
    * @return Nouvelle_date - date after the addition of x days
    */
    private String incrementDate (Date strDate, int daysToAdd) {}
    Start date
    Logger.info("NotifyLastDayOfService::incrementDate(): entrez»);
    SimpleDateFormat sdf = new SimpleDateFormat ("yyyy-MM-DD 00:00:00");
    Dim str As String = sdf.format (strDate);
    Calendar c = Calendar.GetInstance ();
    try {}
    c.setTime (sdf.parse (str));
    } catch (ParseException exception) e {}
    e.printStackTrace ();
    }
    c.Add (Calendar.DATE, daysToAdd); number of days to add
    String PROMOTIONDate = sdf.format (c.getTime ());
    System.out.println ("calculated End Date:" + PROMOTIONDate);
    Logger.info("NotifyLastDayOfService::incrementDate(): sortie»);
    return Nouvelle_date;
    }

    This should solve your problem :)

  • Hi all, how can restrict us and end from 'a droping table' user but need access to the 'workshop of data' to load the data into the spreadsheet.

    Hi all

    How can we limit and end user of "droping a table."

    For example: I created an array of login admin and gave access to "SQL workshop" for the end user. but after that I have created a table, the end user cannot access object browser shop and drop a table. one thing we can do does not have access to the SQL workshop. However, my requirement is the user needs to access the data workshop, which is located under the SQL workshop but they it should not access the tables.

    Kindly let me know how we can do this?

    Thank you

    Vinod Paparaju

    User13309437-Oracle wrote:

    Please update your forum profile with a recognizable username instead of "User13309437": Video tutorial how to change username available

    Always include the information referred to in these guidelines when you post a question: How to get the answers from the forum

    How can we limit and end user of "droping a table."

    For example: I created an array of login admin and gave access to "SQL workshop" for the end user. but after that I have created a table, the end user cannot access object browser shop and drop a table. one thing we can do does not have access to the SQL workshop. However, my requirement is the user needs to access the data workshop, which is located under the SQL workshop but they it should not access the tables.

    Kindly let me know how we can do this?

    There is no way not to restrict access to individual tools in the workshop of SQL. Rather than give the developer-level end-users to access the SQL workshop, create applications containing data support Wizards, where end-user access can be controlled using the standard APEX authentication and authorization schemas.

Maybe you are looking for

  • DVD drive for Aspire E14

    My daughter bought a laptop E14 recently, and I have a spare slimline dvd player who must adapt it.I managed to get the cover plate / cover on the side, but there is a piece of black plastic blocking the location where should be slid into the dvd pla

  • XP does not when you add a bad drive

    Hello Some time ago, my hard drive (Maxtor Diamondmax 10 SATA) is dead, there is no click and give a boot failure message. I had just bought a backup (Samsung Spinpoint F3, SATA) drive that was not connected yet, so I installed XP to him and him alon

  • EA4500, network drive doesn't work without access to the secure folder

    The map I try the USB hard drive connected to my EA4500 router as a network drive in Windows 7 and it works perfectly until I have enable access to files on the router. After enabling file access secure and do not change other settings of the router

  • HP Pavilion Elite HPE-410F replacement power supply

    I want to put a better graphics in my PC, so I can update my video card, but I can't figure out how to get out the existing supply!  The whole thing seems to be riveted with the exception of the one side panel to access inside.  I could go down the t

  • Windows apps disappear after update 8.1 automatic windows and keyboard do not work on the internet

    I've had my Toshiba Satellite for 2 months, but after the automatic update of the Windows apps disappear and the keyboard does not work when I go online (I can type when I connect as a guest, but I can't type as an administrator). Can someone help me