Topic
  • 6 replies
  • Latest Post - ‏2013-05-08T08:26:02Z by loadtest67
loadtest67
loadtest67
8 Posts

Pinned topic Accessinfo/CreateAccess TIM API's

‏2013-05-07T05:44:55Z |

How do I set the Access workflow using TIM APIs.

accessInfo.setProvisioningConfiguration(theProvisioningConfiguration);

How to set the parameter theProvisioningConfiguration.

 

  • franzw
    franzw
    339 Posts

    Re: Accessinfo/CreateAccess TIM API's

    ‏2013-05-07T06:11:06Z  

    You will need to supply a ProvisioningConfiguration.

    The ProvisioningConfiguration constructor takes 2 arguments - the approvalProcessID in form of an DistinguishedName (DN) and the NotificationOption.

    I would guess that you will have to know/find the approvalProcessID DN in the ldap - this can be done in many ways - but this really the problem and the best advice I can give you is to go through the API doc to find out which methods can supply this data.

    The NotificationOption is straight forward - it is really a wrapper of 2 booleans for setting notifications and create/delete...

    HTH

    Regards

    Franz Wolfhagen

  • loadtest67
    loadtest67
    8 Posts

    Re: Accessinfo/CreateAccess TIM API's

    ‏2013-05-08T05:00:42Z  
    • franzw
    • ‏2013-05-07T06:11:06Z

    You will need to supply a ProvisioningConfiguration.

    The ProvisioningConfiguration constructor takes 2 arguments - the approvalProcessID in form of an DistinguishedName (DN) and the NotificationOption.

    I would guess that you will have to know/find the approvalProcessID DN in the ldap - this can be done in many ways - but this really the problem and the best advice I can give you is to go through the API doc to find out which methods can supply this data.

    The NotificationOption is straight forward - it is really a wrapper of 2 booleans for setting notifications and create/delete...

    HTH

    Regards

    Franz Wolfhagen

    can you pls help me this java coding how to do it.

    I really dont know how to do it.

    accessInfo.setProvisioningConfiguration(ProvisioningConfiguration.getProvisioningConfiguration());

  • franzw
    franzw
    339 Posts

    Re: Accessinfo/CreateAccess TIM API's

    ‏2013-05-08T06:13:33Z  

    can you pls help me this java coding how to do it.

    I really dont know how to do it.

    accessInfo.setProvisioningConfiguration(ProvisioningConfiguration.getProvisioningConfiguration());

    This is basic Java coding - and as such outside the scope for this forum.

    But basically what you need to is more or less the following :

     

    DistinguishedName myWorkflow = new DistinguishedName(<your workflow dn as a string>);

    NotificationOption myNO = new NotificationOption(false,false);

    ProvisioningConfiguration myPC = new ProvisioningConfiguration(myWorkflow,myNO);

    // Accessinfo is created earlier in the code as myAI

    myAI.setProvisioningConfiguration(myPC);

     

    The interesting thing here is really how to get the workflow dn - this will probably be rather tricky if you do want to hardcode it...

    HTH

    Regards

    Franz Wolfhagen

     

    Updated on 2013-05-08T07:36:15Z at 2013-05-08T07:36:15Z by franzw
  • loadtest67
    loadtest67
    8 Posts

    Re: Accessinfo/CreateAccess TIM API's

    ‏2013-05-08T06:56:45Z  
    • franzw
    • ‏2013-05-08T06:13:33Z

    This is basic Java coding - and as such outside the scope for this forum.

    But basically what you need to is more or less the following :

     

    DistinguishedName myWorkflow = new DistinguishedName(<your workflow dn as a string>);

    NotificationOption myNO = new NotificationOption(false,false);

    ProvisioningConfiguration myPC = new ProvisioningConfiguration(myWorkflow,myNO);

    // Accessinfo is created earlier in the code as myAI

    myAI.setProvisioningConfiguration(myPC);

     

    The interesting thing here is really how to get the workflow dn - this will probably be rather tricky if you do want to hardcode it...

    HTH

    Regards

    Franz Wolfhagen

     

    setProvisioningConfiguration(ProvisioningConfiguration)

     

    accepts only one parameter and your code say's passing 2 parameters. How is it possible?

  • franzw
    franzw
    339 Posts

    Re: Accessinfo/CreateAccess TIM API's

    ‏2013-05-08T07:34:52Z  

    setProvisioningConfiguration(ProvisioningConfiguration)

     

    accepts only one parameter and your code say's passing 2 parameters. How is it possible?

    I will fix the code - overssight on my behalf....

    Regards

    Franz Wolfhagen

  • loadtest67
    loadtest67
    8 Posts

    Re: Accessinfo/CreateAccess TIM API's

    ‏2013-05-08T08:26:02Z  
    • franzw
    • ‏2013-05-08T07:34:52Z

    I will fix the code - overssight on my behalf....

    Regards

    Franz Wolfhagen

    Thank you bro. I will try and update you.