CLASSPATH for running the IOM external API

Hello

Can I please know the names of the JAR which is required to be included in the classpath to run the following code:


import com.thortech.util.logging.Logger;

import java.util.HashMap;
import java.util.Hashtable;

Import Thor.API.tcResultSet;
Import Thor.API.tcUtilityFactory;
Import Thor.API.Exceptions.tcAPIException;
Import Thor.API.Exceptions.tcChallengeNotSetException;
Import Thor.API.Exceptions.tcColumnNotFoundException;
Import Thor.API.Exceptions.tcLoginAttemptsExceededException;
Import Thor.API.Exceptions.tcPasswordExpiredException;
Import Thor.API.Exceptions.tcPasswordResetAttemptsExceededException;
Import Thor.API.Exceptions.tcUserAccountDisabledException;
Import Thor.API.Exceptions.tcUserAccountInvalidException;
Import Thor.API.Exceptions.tcUserAlreadyLoggedInException;
Import Thor.API.Operations.tcUserOperationsIntf;

import com.thortech.xl.util.config.ConfigurationClient;
import java.lang.System;

public class SearchUserAttribs
{
public SearchUserAttribs()
{

}


Public Sub findUser() throws tcColumnNotFoundException, tcAPIException,.
tcChallengeNotSetException,
tcLoginAttemptsExceededException,
tcPasswordResetAttemptsExceededException,
tcPasswordExpiredException,
tcUserAccountDisabledException,
tcUserAccountInvalidException,
tcUserAlreadyLoggedInException
{

Config ConfigurationClient.ComplexSetting = ConfigurationClient.getComplexSettingByPath ("Discovery.CoreServer");
Hashtable env = config.getAllSettings ();
tcUtilityFactory ioUtilityFactory = new tcUtilityFactory (env, "xelsysadm", "test1234");
tcUserOperationsIntf userIntf = (tcUserOperationsIntf) ioUtilityFactory.getUtility ("Thor.API.Operations.tcUserOperationsIntf");
String userId = "[email protected]";

UserMap HashMap = new HashMap();
userMap.put ("usr_login", username);
Try
{
tcResultSet userSet = userIntf.findUsers (userMap);
System.out.println ("ROWS" + userSet.getRowCount ());
for (int i = 0; i < userSet.getRowCount (); i ++)
{
userSet.goToRow (i);
Take long = userSet.getLongValue ("Users.Key");
System.out.println ("take::" + take);
}

} catch (tcAPIException e)
{
throw new RuntimeException ("Unable to create instance API" + "instance", e);
}
}

Public Shared Sub main (string args []) throws tcColumnNotFoundException, tcAPIException,
tcChallengeNotSetException,
tcLoginAttemptsExceededException,
tcPasswordResetAttemptsExceededException,
tcPasswordExpiredException,
tcUserAccountDisabledException,
tcUserAccountInvalidException,
tcUserAlreadyLoggedInException
{
System.setProperty ("XL. HomeDir","/usphlsoweb07/u13/sg20/app/mwora/10.3.0/oim/xellerate/");
System.setProperty("java.security.auth.login.config","usphlsoweb07.sas.sungardrs.com/u13/sg20/app/mwora/10.3.0/oim/xellerate/config/authwl.conf");
System.setProperty("java.security.policy","/usphlsoweb07/u13/sg20/app/mwora/10.3.0/oim/xellerate/config/xl.policy");
System.setProperty("log4j.configuration","/usphlsoweb07/u13/sg20/app/mwora/10.3.0/oim/xellerate/config/log.properties");

private static Logger LOGGER = Logger.getLogger ("Xellerate.WebApp");
SUA SearchUserAttribs = new SearchUserAttribs();

sua.findUser ();
System.out.println ("back to the function of hand");
}

}



I'm getting many errors of shit just because of the classpath associated with logging and thor.api exceptions. Please let me know.

Thank you
-oidm.

Try the link below.

new for IOM coding

Tags: Fusion Middleware

Similar Questions

  • How to use my 2012 LabVIEW for run the LeCroy Waverunner 610Zi?

    Hi all

    I'm a fresh starter on this topic. I have the 2012 version of LabVIEW and a scope of 610Zi LeCroy WaveRunner. How can I use LabVIEW for control the scope?

    Hello sqrtT,

    I think you and I just had a phone conversation about this, and you're all set!

    I would like to know if I'm wrong and I'll give you instructions for you.

    See you soon,.

    Leonard Brown

    Technical sales engineer

    Teledyne LeCroy

  • trouble with compiling to run the bi Publisher api

    trying to compile
    package oracle.apps.xdo.common.pdf.util does not exist

    where can I find it





    package pdftester;





    import java.io.File;
    import java.util.Properties;
    Import oracle.apps.xdo.XDOException;
    Import oracle.apps.xdo.common.pdf.util.PDFDocMerger;



    public class PDFMerger {}
    public PDFMerger() {}

    The output of the merged PDF document destination.
    File outFile = new File("c:\\temp\\mergePDF.pdf");
    To merge PDF documents.
    File [] inpFiles = new file [2];
    ("inpFiles [0] = new File("c:\\temp\\1.pdf ");
    ("inpFiles [1] = new File("c:\\temp\\2.pdf ");
    Create the instance of PDFDocMerger.
    PDFDocMerger pdfMerger = new PDFDocMerger (inpFiles, outFile);
    Set the property of security
    Properties prop = new Properties ();
    Prop.put ("PDF-Security", "true");
    Prop.put (PDF-Open-Password "," Welcome");
    pdfMerger.setConfig (prop);

    Run the merge process.
    try {}
    pdfMerger.process ();

    } catch (XDOException e) {}
    e.printStackTrace ();
    }
    }
    Public Shared Sub main (String [] args) {}
    PDFMerger pDFMerger = new PDFMerger();
    }
    }

    in the office, you will have

    C:\Program Files\Oracle\BI Publisher\BI editor Desktop\TemplateViewer\lib

    Add these lib to your class path, it will work.

  • R12.2.5 Installation on OL 7.1 ERROR: RW-50010: error:-script returned an error: 1 RW-50004: error code when you run the external process.  Check the log file for more details

    I tried to install EBS 12.2.5 on OL 7.1 with rapidwiz and got this error when applying the unique patches in second File System

    "Second system logfile file - /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/logs/12021641.log.

    LOG FILE:

    _____________________________________________________________________________________________________________________________

    Step 0-8

    Command: /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/adrunfmw.sh

    Step 4 of 8: UNIX making pretreatment

    Running: chmod 777/db/oracle/OraInventory r

    chmod-r 777/db/oracle/OraInventory succeeded

    Step 4 of 8

    Performance: known appltest - c "/ app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/adrunfmw.sh".

    PHASE of INSTALLATION has BEGUN: APPS TECH STACK: Wed Dec 2 17:27:07 IST 2015

    runProcess_1

    StatusString installation of Applications Technology Stack

    Copy the temp area models

    Inventory name is: app_oracle_TEST_fs2_Oracle_EBS_app

    One-time fixes copy to temp area

    Remove JDK_TOP: / app/oracle/TEST/fs2/EBSapps/comn/util/jdk32 if there is

    / App/oracle/TEST/fs2/EBSapps/comn/util/jdk32 deleted directory

    Installation of WebLogic Server.

    With the help of /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/xmldocs/instWLS.xml

    L'exécution de commande : /stageR12/startCD/Disk1/rapidwiz/jre/Linux_x64/1.6.0/bin/java -cp /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/ASInstallHome/fnd /... /j11067592_fnd.zip:/app/Oracle/test/FS2/inst/Apps/TEST_ebs122/Temp/ASInstallHome/FND/Java/3rdparty/stdalone/xmlparserv2.zip-Doracle.apps.fnd.txk.env_home=/app/oracle/TEST/fs2/EBSapps/appl/admin/TEST_ebs122/-Doracle.apps.fnd.txk.runtime.config=/app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/xmldocs/instWLS.xml oracle.apps.fnd.txk.config.InstallService

    WebLogic Server successfully installed

    Web Tier utility installation.

    With the help of /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/xmldocs/instWeb.xml

    L'exécution de commande : /stageR12/startCD/Disk1/rapidwiz/jre/Linux_x64/1.6.0/bin/java -cp /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/ASInstallHome/fnd /... /j11067592_fnd.zip:/app/Oracle/test/FS2/inst/Apps/TEST_ebs122/Temp/ASInstallHome/FND/Java/3rdparty/stdalone/xmlparserv2.zip-Doracle.apps.fnd.txk.env_home=/app/oracle/TEST/fs2/EBSapps/appl/admin/TEST_ebs122/-Doracle.apps.fnd.txk.runtime.config=/app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/xmldocs/instWeb.xml oracle.apps.fnd.txk.config.InstallService

    Level successfully installed Web utilities

    Registration EBSUsing /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/xmldocs/instEBS.xml

    L'exécution de commande : /stageR12/startCD/Disk1/rapidwiz/jre/Linux_x64/1.6.0/bin/java -cp /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/ASInstallHome/fnd /... /j11067592_fnd.zip:/app/Oracle/test/FS2/inst/Apps/TEST_ebs122/Temp/ASInstallHome/FND/Java/3rdparty/stdalone/xmlparserv2.zip-Doracle.apps.fnd.txk.env_home=/app/oracle/TEST/fs2/EBSapps/appl/admin/TEST_ebs122/-Doracle.apps.fnd.txk.runtime.config=/app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/xmldocs/instEBS.xml oracle.apps.fnd.txk.config.InstallService

    EBS registered successfully

    Rename/home/appltest/bea/beahomelist in /home/appltest/bea/beahomelist.29266 to avoid problems during WLS

    patching

    / Home/appltest/Bea/beahomelist renamed successfully.

    Application of ad hoc patches

    With the help of /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/xmldocs/instASpatches.xml

    L'exécution de commande : /stageR12/startCD/Disk1/rapidwiz/jre/Linux_x64/1.6.0/bin/java -cp /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/ASInstallHome/fnd /... /j11067592_fnd.zip:/app/Oracle/test/FS2/inst/Apps/TEST_ebs122/Temp/ASInstallHome/FND/Java/3rdparty/stdalone/xmlparserv2.zip-Doracle.apps.fnd.txk.env_home=/app/oracle/TEST/fs2/EBSapps/appl/admin/TEST_ebs122/-Doracle.apps.fnd.txk.runtime.config=/app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/xmldocs/instASpatches.xml oracle.apps.fnd.txk.config.InstallService

    Fatal error: T2K install Service

    oracle.apps.fnd.txk.config.ProcessStateException: OPatch process failed: Output = 1 see log for more details. CMD = perl /app/oracle/TEST/fs2/FMW_Home/webtier/OPatch/opatch.pl apply - verbose - silent - ocmrf /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/ASInstallHome/fnd/admin/template/txkForms_ocm.rsp jdk - / app/oracle/TEST/fs2/FMW_Home/webtier/jdk/app/oracle/TEST/fs2/inst/apps/TEST_ebs122/temp/patches/7695070/7695070

    at oracle.apps.fnd.txk.config.OPatchActionNode.processState(OPatchActionNode.java:312)

    at oracle.apps.fnd.txk.config.PatchActionNode.processState(PatchActionNode.java:187)

    at oracle.apps.fnd.txk.config.PatchNode.processState(PatchNode.java:338)

    at oracle.apps.fnd.txk.config.PatchesNode.processState(PatchesNode.java:79)

    at oracle.apps.fnd.txk.config.InstallNode.processState(InstallNode.java:68)

    at oracle.apps.fnd.txk.config.TXKTopology.traverse(TXKTopology.java:594)

    at oracle.apps.fnd.txk.config.InstallService.doInvoke(InstallService.java:224)

    at oracle.apps.fnd.txk.config.InstallService.invoke(InstallService.java:237)

    at oracle.apps.fnd.txk.config.InstallService.main(InstallService.java:291)

    Can not install the unique patches

    RW-50010: error:-script returned an error: 1

    RW-50004: Error Code when you run the external process.  Check the log file for more details.


    It was recorded in /app/oracle/TEST/fs2/inst/apps/TEST_ebs122/logs/12021641.log and I don't know how to find another newspaper for such details as mentioned in this journal. Please help me with that.


    Concerning

    KasunA

    Found a workaround.  The problem is that, before the 7695070 patch is applied, the installation program backup directory/apps/fs2/FMW_Home/webtier/jdk in /apps/fs2/FMW_Home/webtier/jdk_backup_existing_version, but then it clears. / jdk - the patch fails because it can't find it.  I had to rename the directory of the jdk for jdk2, and as soon as it gets deleted quickly and rename jdk2 jdk.  Then he applies the patches without problem.  A symbolic link would do the same thing.

  • Cannot run the fix for the improvement of the IOM to IOM 11.1.2.0.1

    Hi Experts,

    I'm upgrading to IOM for the new patch 11.1.2.0.0, in the guide that the step is given as

    Set the ORACLE_HOME directory in your system. For example:
    setenv ORACLE_HOME/opt/oracle/mwhome/Oracle_IDM1
    Apply the hotfix for the ORACLE_HOME bundle by using the following command:
    opatch apply
    I do the above given steps, but I'm not able to run the fix it givens me error

    bash: opatch: command not found
    Help, please!

    You must add OPatch to the PATH variable before running the command opatch.

    OPatch folder is home of the IOM.

  • Creation of a right by using the API of the IOM - what is lookupkey for?

    Hello

    I try this code

    AppService = oimClient.getService (ApplicationInstanceService.class) ApplicationInstanceService;
    ApplicationInstance appInstance = appService.findApplicationInstanceByName("MyAppInstance");
    EntitlementService entSvc = (EntitlementService.class) oimClient.getService;
    Right ent = new Entitlement();
    ent.setObjectKey (appInstance.getObjectKey ());
    ent.setFormKey (appInstance.getChildForms () .get (0) .getFormKey ());
    ent.setFormFieldKey (appInstance.getChildForms () .get (0) .getFormFields () .get (0) .getFldKey ());
    ent.setItResourceKey (appInstance.getItResourceKey ());
    ent.setEntitlementCode ("MNEC2");
    ent.setEntitlementValue ("MyNewEntitlementValue2");
    ent.setDisplayName ("MyNewEntitlementName2");
    ent.setDescription ("MyNewEntitlementDesc2");
    ent.setLookupValueKey (1); have no idea what is it for
    ent.setValid (true);
    entSvc.addEntitlement (ent);

    code works very well, but what should be the lookupValueKey and what is it for?

    The whole process that is supposed to happen what OOTB is the following:

    1. on a child table form, a field is marked as right = True

    2. complete your research with right values (example is the scheduled task of searching Active Directory group Recon)

    3 run the scheduled task from the eligibility list.  This will check all the entries form entitled = true to retrieve the list of values and populates the ENT_LIST table with these values (or update new or define IS_VALID = 0 for all that you have removed)

    4. scheduled catalog synchronization task will fill the values in the catalog

    The key of research value is LKV_KEY value associated with an entry in the search.  This is what binds the table ENT_LIST in the LKV table.

    -Kevin

  • How to add the JAR files and configuration files to the CLASSPATH when running?

    QUERY:

    During execution, I need to load JAR files and relevant config (.cfg files) and file .properties files in the CLASSPATH and run a specific one of the JAR java program that is available in the CLASSPATH.


    Please send me details of Java API or an example of java program to implement the use case above.


    Thanks in advance.


    During execution, I need to load JAR files and relevant config (.cfg files) and file .properties files in the CLASSPATH and run a specific one of the JAR java program that is available in the CLASSPATH.

    Please send me details of Java API or an example of java program to implement the use case above.

    You do not add to YOUR classpath once your application is launched.

    You create a NEW process for the application you want to run and provide an appropriate environment for it to run in-including the CLASSPATH or PATH environment variables.

    The Java API for the ProcessBuilder class has a simple example that shows how to create the arguments and to launch an external application.

    ProcessBuilder (Java SE 7 platform)

    There are also MANY other examples of the use of ProcessBuilder; just search the net.

  • IOM Login authentication fails when the IOM API call

    Hello

    We have a small custom application written to make the update of some attributes of the user on OIM. This app works great on the development system, as well as the test system. However, when you run the program on the live system, it generates the error below. Please note that we use the IOM 11.1.1.5, test and production are under linux, while the development system is running windows 7. The test system is a single instance, while IOM in a production environment is clustered. Quick response will be very useful.

    We checked the path provided for authwl.conf and that's okay. Here is the thrown error:

    oracle.iam.platform.utils.NoSuchServiceException: java.lang.reflect.InvocationTargetException
    at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:197)
    at oracle.iam.platform.OIMClient.getService(OIMClient.java:174)
    at oracle.iam.platform.OIMClient.loginSessionCreated(OIMClient.java:209)
    at oracle.iam.platform.OIMClient.login(OIMClient.java:136)
    at oracle.iam.platform.OIMClient.login(OIMClient.java:129)
    at com.infotech.tra.organization.RoleAssignment.updateUserAttributes(RoleAssignment.java:274)
    at com.infotech.tra.organization.RoleAssignment.main(RoleAssignment.java:73)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:193)
    ... 11 more
    Caused by: oracle.iam.platform.utils.NoSuchServiceException: javax.naming.AuthenticationException [Root exception is java.lang.SecurityException: user: weblogic, could not be authenticated.]
    to oracle.iam.platformservice.api.ClientLoginSessionServiceDelegate. < init >(Unknown Source)
    ... 16 more
    Related: javax.naming.AuthenticationException [Root exception is java.lang.SecurityException: user: weblogic, could not be authenticated.]
    at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:42)
    at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:788)
    at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:682)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:469)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:376)
    at weblogic.jndi.Environment.getContext(Environment.java:315)
    at weblogic.jndi.Environment.getContext(Environment.java:285)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
    at javax.naming.InitialContext.init(InitialContext.java:223)
    to javax.naming.InitialContext. < init > (InitialContext.java:197)
    at org.springframework.jndi.JndiTemplate.createInitialContext(JndiTemplate.java:114)
    at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:86)
    at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:130)
    at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:155)
    ... more than 17
    Caused by: java.lang.SecurityException: user: weblogic, could not be authenticated.
    at weblogic.common.internal.RMIBootServiceImpl.authenticate(RMIBootServiceImpl.java:116)
    at weblogic.common.internal.RMIBootServiceImpl_WLSkel.invoke (unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
    to weblogic.rmi.internal.BasicServerRef$ 1.run(BasicServerRef.java:522)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    There was incorrect values in the jndi.properties file causing problems. After the correction of the connection of IOM file worked properly.

  • The IOM for Peoplesoft connector - you can copy a user?

    PeopleSoft inside there is a function copy of user profile that allows you to make an exact duplicate of the user, including security. We use this function when we change a user name (say someone marries).

    Has anyone found a way to make the IOM?

    Thank you.

    With the help of these imports:

    Psft.pt8.joa import. *;
    PeopleSoft.Generated.CompIntfc import. *;

    Connect

    >
    public Peoplesoft (String hostname, String port, String admin, String password) {}
    log.info (CLASS_NAME + "---> entries = hostname [" + hostname + "]")
    "] [] port" + port +.
    "] admin [] ' + admin +.
    "] password [*]"); "."
    This.HostName = hostname;
    This.port = port;
    This.admin = admin;
    This.password = password;
    this.strAppServerPath = hostname + ":" + port;
    Connect boolean = false;
    try {}
    Create the object of PeopleSoft Session *.
    oSession = API.createSession ();
         
    Connect to the App Server *.
    Connect = oSession.connect (1, strAppServerPath, admin, password, null);
    log. Debug ("login:" + connect);
    If (! connect) {}
    log. Error ("unable to connect to the application server.");
    ErrorHandler();
    return;
    }
                   
    } catch (Exception e) {}
    e.printStackTrace ();
    log. Error ("an error occurred");
    ErrorHandler();
    }

    log.info (CLASS_NAME "---> connect =" + connect);
         
    }
    >

    Creating user

    >
    public String createUser (String oprid, String oprdefndesc, String useridalias, String operpswd,
    String emplid, String emailid, String emailtype, String language_cd, String multilang_cd,
    String currencycode, String prpermissionlist, String rowpermissionlist,
    String processprofilelist, String navigatorhomelist) {}
    log.info (CLASS_NAME + ". createUser()---> entries = oprid [" + oprid + "]")
    '] oprdefndesc [] "+ oprdefndesc +.
    '] useridalias [] "+ useridalias +.
    '] operpswd [] ' + ' * ' +.
    '] emplid [] "+ emplid +.
    "] [] emailid" + emailid +.
    '] emailtype [] "+ emailtype +.
    '] language_cd [] "+ language_cd +.
    '] multilang_cd [] "+ multilang_cd +.
    "] [] currencycode" + currencycode +.
    '] prpermissionlist [] "+ prpermissionlist +.
    '] rowpermissionlist [] "+ rowpermissionlist +.
    '] processprofilelist [] "+ processprofilelist +.
    "] navigatorhomelist [" "+ navigatorhomelist +"] ");"
              
    String response = "";
    Boolean then = false;
              
    try {}
    Get the component Interface *.
    IUserProfile oUserProfile;
    String ciName;
    ciName = 'USER_PROFILE ';
    oUserProfile = oSession.getCompIntfc (ciName) (IUserProfile);
    If (oUserProfile == null) {}
    log. Error ("Can't get a component Interface" + ciName);
    ErrorHandler();
    response = "UNABLE_TO_GET_CI";
    } else {}
    Next = true;
    }
                   
    Set the Interface Mode of component *.
    oUserProfile.setInteractiveMode (false);
    oUserProfile.setGetHistoryItems (false);
    oUserProfile.setEditHistoryItems (false);
                   
    If {(next)
    Next = false;
    Boolean create = oUserProfile.create ();
    log. Debug ("Create:" + create);
    If (! create) {}
    ErrorHandler();
    response = "UNABLE_TO_CREATE";
    } else {}
    Next = true;
    }
    }
                   
    If {(next)
    Next = false;
    Define the component Interface Get/Create Keys *.
    oUserProfile.setUserID (oprid);
    oUserProfile.setUserDescription (oprdefndesc);
    oUserProfile.setUserIDAlias (useridalias);
    oUserProfile.setPrimaryPermissionList (prpermissionlist);
    oUserProfile.setRowSecurityPermissionList (rowpermissionlist);
    oUserProfile.setProcessProfilePermissionList (prpermissionlist);
    oUserProfile.setNavigatorHomePermissionList (navigatorhomelist);
    oUserProfile.setLanguageCode (language_cd);
    oUserProfile.setCurrencyCode (currencycode);
    If (multilang_cd.equals("0")) {}
    oUserProfile.setMultiLanguageEnabled (BigDecimal.valueOf (0));
    } else {}
    oUserProfile.setMultiLanguageEnabled (BigDecimal.valueOf (1));
    }
         
    If (emailid.trim () .length () == 0) {}
    If (emailtype.trim () .length () == 0) {}
    Set/Get EmailAddresses Collection field properties - Parent: PS_ROOT Collection
    IUserProfileEmailaddressesCollection oEmailAddressesCollection;
    IUserProfileEmailaddresses oEmailAddresses;
    oEmailAddressesCollection = oUserProfile.getEmailAddresses ();
    oEmailAddresses = oEmailAddressesCollection.item (0);
    oEmailAddresses.setEmailType (emailtype);
    oEmailAddresses.setEmailAddress (emailid);
    oEmailAddresses.setPrimaryEmail("Y");
    } else {}
    log. Debug ("emailtype is empty, not setting do not email address");
    }
    } else {}
    log. Debug ("emailid is empty, not setting do not email address");
    }
                        
         
    Set/Get IDTypes Collection field properties - Parent: PS_ROOT Collection
    IUserProfileIdtypesCollection oIDTypesCollection;
    IUserProfileIdtypes oIDTypes;
    oIDTypesCollection = oUserProfile.getIDTypes ();
    oIDTypes = oIDTypesCollection.item (0);
    If (emplid.trim () .length () == 0) {}
    oIDTypes.setIDType ('NO');
    } else {}
    oIDTypes.setIDType ("EMP");
    Set/Get attributes Collection field properties - Parent: IDTypes Collection
    IUserProfileIdtypesAttributesCollection oAttributesCollection;
    IUserProfileIdtypesAttributes oAttributes;
    oAttributesCollection = oIDTypes.getAttributes ();
    oAttributes = oAttributesCollection.item (0);
    oAttributes.setFieldname ("COST");
    oAttributes.setRecname ("PERSONAL_DATA");
    oAttributes.setAttributeName ("COST");
    oAttributes.setAttributeValue (emplid);
    }
                        
    oUserProfile.setSymbolicID ("SYSADM1");
    oUserProfile.setPassword (operpswd, operpswd);
    Boolean save = oUserProfile.save ();
    log. Debug ("Save:" + save);
                        
    If (! save) {}
    ErrorHandler();
    response = "UNABLE_TO_SAVE";
    } else {}
    response = "SUCCESS";
    }
    Next = true;
    }
                   
    Boolean cancel = oUserProfile.cancel ();
    log. Debug ("Cancel:" + cancel);
    If (! cancel) {}
    ErrorHandler();
    response = "UNABLE_TO_CANCEL";
    }

    } catch (JOAException e) {}
    e.printStackTrace ();
    log. Error ("an error occurred");
    ErrorHandler();
    response = "ERROR";
    }
              
    log.info (CLASS_NAME + ". createUser()---> response =" + response);
    send the response;
         
         
    }
    >

    Add a role

    >
    public String addRole (String oprid, String role) {}
    log.info (CLASS_NAME + ". addRole()---> entries = oprid [" + oprid + "]")
    "] role [" + role + "']"); "
    String response = "";
    Boolean then = false;
              
    try {}
    Get the component Interface *.
    IUserProfile oUserProfile;
    String ciName;
    ciName = 'USER_PROFILE ';
    oUserProfile = oSession.getCompIntfc (ciName) (IUserProfile);
    If (oUserProfile == null) {}
    log. Error ("Can't get a component Interface" + ciName);
    ErrorHandler();
    response = "UNABLE_TO_GET_CI";
    } else {}
    Next = true;
    }
                   
                   
                   
    If {(next)
    Next = false;
    oUserProfile.setUserID (oprid);
    Run Get *.
    Boolean get = oUserProfile.get ();
    log. Debug ("Get:" + get);
    If (! to) {}
    log. Error ("no line does exist for the specified keys. Unable to get the component Interface. ») ;
    ErrorHandler();
    response = "UNABLE_TO_GET_USER";
    } else {}
    Next = true;
    }
    }

    If {(next)
    Next = false;
    Set the Interface Mode of component *.
    oUserProfile.setInteractiveMode (false);
    oUserProfile.setGetHistoryItems (false);
    oUserProfile.setEditHistoryItems (false);
                        
    IUserProfileRolesCollection oRolesCollection;
    IUserProfileRoles oRoles.
    oRolesCollection = oUserProfile.getRoles ();
    oRoles = oRolesCollection.insertItem (oRolesCollection.getCount () - 1);
    for (int l = 0; l)< orolescollection.getcount();="" l++)="">
    If (role.equalsIgnoreCase (oRolesCollection.item (l) .getRoleName ())) {}
    response = "ROLE_ALREADY_EXISTS";
    break;
    }
    If (l == oRolesCollection.getCount () - 1) {}
    oRoles.setRoleName (role);
    Next = true;
    }
    }
    }
                   
    If {(next)
    Next = false;
    Boolean save = oUserProfile.save ();
    log. Debug ("Save:" + save);
                        
    If (! save) {}
    ErrorHandler();
    response = "UNABLE_TO_SAVE";
    } else {}
    response = "SUCCESS";
    }
    Next = true;
    }
                        
                   
    Boolean cancel = oUserProfile.cancel ();
    log. Debug ("Cancel:" + cancel);
    If (! cancel) {}
    ErrorHandler();
    response = "UNABLE_TO_CANCEL";
    }
                             
                   
    } catch (JOAException e) {}
    e.printStackTrace ();
    log. Error ("an error occurred");
    ErrorHandler();
    response = "ERROR";
    }
              
    log.info (CLASS_NAME + ". addRole()---> response =" + response);
    send the response;
    }
    >

    There are a few examples from.

    -Kevin

  • Complete the process with the API of the IOM.

    Hello

    I'm new to IOM then someone can help me regarding the following problem?

    I defined a procurement process (provisionAPP) who have a process task. This task will create a (case) ticket in our ticket handling system. (I did it with the Java adapter and it works very well).
    If the ticket is created successfully, the status of the task in process (provisionAPP) is going to be on "Waiting". ("It appears under" ' resources > > resources Provisioning profile Details ").

    I wrote a task scheduler to monitor the status of this ticket. If the ticket is closed, I have to change States of the process task (provisionAPP) to 'Set up' or 'done '.

    To change the status, I tried the following.

    Hashtable TaskHash = new Hashtable();
    taskHash.put ("process Instance.Task Details.Status", "Completed");
    tcProvOps.updateTask (tskID, taskHash); (tcProvOps is an Instance of tcProvisioningOperationsIntf)

    This works very well and will change the status to 'Complete', but the problem here is that it will run the process attached to the task of process (provisionAPP). So, it will create a ticket again. I didn't need this cos it is already running initially.

    I would like to know how to change the status of the process (provisionAPP) (-> say pending) configured via API IOM task without running the process attached to this task.


    It would be great if someone can help me?

    You must get the key of task and then instance using them, you can use the api complete manually. Set the job to the status of the object for MC map to put in service. You just need to get the key of task instance.

    -Kevin

  • clips from library for the FCPX external drive disappear

    First time user FCPX.

    I run an end iMac from 2012 and has been using iMovie 10.1.2 until yesterday.  Just before you buy FCPX, I ran out of hard drive space and got a disk external 4 TB and transferred my iMovie library here.  I've renamed the library external iMovie "iMovie" and deleted the one on my Mac, releasing 500 GB of space.  Tested with iMovie using the external drive, no problem, everything works ok.

    Then, I bought yesterday FCPX.  To have access to all my old clips in imovie, I used iMovie and open "library external iMovie" and used the 'send to Final Cut Pro library' command in the file menu of iMovie.  Everything seemed fine, as I was able to open the library in FCPX and all my clips and events were there.

    I thought everything was great, then I went to add some clips to FCPX of my video camera.  I created a second library FCPX and put the clips.  They have downloaded completely, but after downloading said it was over, my machine froze and I had to do a hard reboot by turning off.  This isn't all that unusual, sometimes my Mac crashes when I leave it alone for several hours.

    After that I turned on and opened FCPX, I see in the left pane, two libraries, and events, but some clips appear on my screen.  I opened and closed the library hoping to get the clips to the rear, without success.

    Any idea what went wrong or how to fix it?  I don't know whether to attribute the problem to computer freezing, or rather the use for the first time an external drive to host my files.

    If I can't understand what went wrong, and then I simply repeat the process I went through the first time and see if I get the same results, but I'd rather figure out what I did wrong and try to fix it, so I have a higher level of comfort, go ahead.   I hope that this will not be an experience repeat everything simply because I'm hosting my video files on an external drive.

    Thank you!

    The problem is caused by the shutdown. You could see if there is a backup in the case of movies, but there are maybe not if you have imported only from the media.

    You cannot use this computer with FCP if hard it crashes. You have to get it repaired. No computer should crash like that unless you pull the plug. If you have problems to get a UPS to give you time to stop.

  • Lack of Api-ms-win-shcore-scaling-l1-1-1.dll causing my win7 x 64 system unable to run the compiled exe file

    Dear Sirs

    Recently, I run the exe compiled from visual studio 2012.
    The failure comes out the lack of Api-ms-win-shcore-scaling-l1-1-1.dll that is detected by the dependency walker tool.
    Operating system is Win7 x 64.
    I wonder where to find the missing dll or no solution for this problem.
    (Only x 86 version Api-ms-win-shcore-scaling-l1-1-1.dll can be found...)

    Sincerely appreciate your help!

    Chris

    Hi Chris,

    Thanks for posting your query in Microsoft Community.

    As described in the question, I would say that you re - ask your question in the MSDN Visual Studio forum rather than on this forum. MSDN is watched by other professionals in computing and to developers who use Visual Studio, which would more than likely be able to help.

    MSDN forum: Visual Studio

    Hope this information is useful. Please, do not hesitate to post in case you have any other question related to Windows in the future, we will be happy to help you.

  • I get the 0x8078012D error code when I run the Windows backup on an external hard drive.

    I get the 0x8078012D error code when I run the Windows backup on an external hard drive.  I have Windows 7 Professional.  That suggests this error code is the problem and how can I solve the problem?

    For people who read this thread, I offer the following information.  I solved the problem by noticing that the problem could have been caused, when the system image is created.  So I did a backup without creating the system image and backup is complete without error.

    Then I used the backup program to create a system image.  This time error (0x8007045D) was displayed.   The error report says "the operation failed for a device error encountered with the source or the destination. If the volume of the source or the destination is on a disk, run CHKDSK /R on the source volume or destination and then try again using. »

    So I ran chkdsk/r, and this program is a bad sector on the hard drive of my computer and fixed the error.  It took about an hour to run the program.  Now, the image of the system and the backup of data file work again.

    So I think that the main cause of error (0x8078012D) is deborahgarbe of i/o error (0x8007045D).  So if you get the first error code you can search for fixes for the second error code fix the root cause.

  • USING SEVERAL PARAMETERS FOR GET_SEARCH_RESULTS WITH THE HELP OF API RDCI

    Using Oracle Web Center content Web Service, I'm able to pass several parameters to the search entry to GET_SEARCH_RESULTS.

    " < envelope soap: xmlns:soap = ' http://schemas.xmlsoap.org/SOAP/envelope/ ">

    " < soap: Body = xmlns:ns1 ' http://www.Oracle.com/UCM "> "

    < ns1:GenericRequest webKey = "cs" >

    < ns1:Service IdcService = "GET_SEARCH_RESULTS" >

    < ns1: User / >

    < ns1:Document >

    <!-ns1:Field name = "QueryText" > xCUSTOMER_MSISDN & lt; contains > '044444444' < / ns1:Field->

    < name ns1:Field = "QueryText" > xCHANNEL_ID & lt; contains > '11222212' < / ns1:Field >

    AND

    < name ns1:Field = "QueryText" > xCUSTOMER_id & lt; contains > '08848484848' < / ns1:Field >

    AND

    < name ns1:Field = "QueryText" > xCHANNEL & lt; contains > 'ISL' < / ns1:Field >

    < / ns1:Document >

    < / ns1:Service >

    < / ns1:GenericRequest >

    < / soap: Body >

    < / envelope soap: >

    How do I pass several entrance to search for GET_SEARCH_RESULTS parameter when you use the RDCI API?

    I have this code RDCI, but I get parse error as soon as I try out several settings. It works very well with a single parameter. Please advice

    Public Shared Sub {search (String content_dDocName)

    String queryText = "dDocName < match > '" + content_dDocName + "'";

    create the binder

    DataBinder searchResultBinder = idcClient.createBinder ();

    fill the binder with the settings

    searchResultBinder.putLocal ("IdcService", "GET_SEARCH_RESULTS");

    searchResultBinder.putLocal ("QueryText", queryText);

    searchResultBinder.putLocal ("ResultCount", "20");

    run the query

    ServiceResponse searchResponse;

    print a Boolean = false;

    for (int counter = 0; counter < 1000; counter = counter + 1) {}

    try {}

    searchResponse = idcClient.sendRequest (userContext, searchResultBinder);

    If (! print) {}

    myExecutable.logEvent ("GET_SEARCH_RESULTS successful call.");

    print = true;

    }

    } catch (IdcClientException e) {}

    myExecutable.logEvent ("GET_SEARCH_RESULTS failed");

    e.printStackTrace ();

    return;

    }

    DataBinder searchData;

    try {}

    searchData = searchResponse.getResponseAsBinder ();

    } catch (IdcClientException e) {}

    myExecutable.logEvent ("cannot get the answer.");

    e.printStackTrace ();

    return;

    }

    DataResultSet search results = searchData.getResultSet ("SearchResults");

    If (searchResults.getRows () .isEmpty ()) {}

    continue;

    }

    myExecutable.logEvent ("successfully obtained response - (s) dDocName ' following was found:" ");

    Iterator it = searchResults.getRows () .iterator ();

    While (it.hasNext ()) {}

    Date of birth of DataObject = (DataObject) it.next ();

    myExecutable.logEvent (dob.get ("dDocName"));

    }

    return;

    }

    myExecutable.logEvent ("failed to get a response at the time given.");

    }

    You can provide several search parameter to RIDC as follows:

    dataBinder.putLocal ("QueryText", 'xOriginalServiceId 'DISO' xApprover 'fmwtuser' ')

    In above query, I gave 2 search parameters.

    You can replace OR with AND & also you can replace 'contains' by 'correspondences' according to your requirement.

    -Prashant

  • Examine the properties of system outside the IOM/API

    Hello

    following an alleged error in the system properties of the IOM (11 g Rs PS2, BP04) that prevents the IOM to start properly, I'm trying to find a way to look at all the properties of the system. However, I don't know where to look for them.

    From my understanding, they cannot be in the DB (which schema, what table?) or the MDS, otherwise they would not accessible in a clustered environment.

    Are there clues about that?

    Thank you

    C

    The IOM system properties appear in the table the user XXX_OIM PTY.

    There are other properties for the application server that are in the MDS repository in the location /file/oim-config.xml which are also accessible from the Enterprise Manager console in time grain system run.

    -Kevin

Maybe you are looking for

  • Tecra A9 PTS52E - can I use pixel & vertex shader?

    Hello!Problem: A malfunction on pixel & vertex shaderTechnical data:Model: Toshiba Tecra A9 PTS52EOS: Vista Business 32-bitRAM: 4 GBChipset: 965 PMGraphics: (probably: X 3100) Details: Install some games (not new) it pops up the window that my graphi

  • How can I turn off the fn on my Z500?

    I have been struggling with this for a few hours, but I still have no solution. I want to use the F1 to F12 keys as standard keys, but I can't find a way to do it. I looked in the BIOS but theres nothing useful. Can someone tell me how can I turn off

  • Where is the location of the product on original XP Home Ed Disk key

    I lost my product key for my Windows XP Home Edition Service Pack 2 original cd.  I thought that the product key was on disk files, if so where?  If this is not the case, what other ways to find the product key?

  • 311C EV 1010 SATA DRIVERS

    not find don't win xp disk hard there is no drivers

  • What is the command to test AA

    I want to test the windows certificate server authentication. I tried this test command aaa username password, but that does not work.