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

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
    213 Posts
    ACCEPTED ANSWER

    Re: Accessinfo/CreateAccess TIM API's

    ‏2013-05-07T06:11:06Z  in response to loadtest67

    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
      6 Posts
      ACCEPTED ANSWER

      Re: Accessinfo/CreateAccess TIM API's

      ‏2013-05-08T05:00:42Z  in response to franzw

      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
        213 Posts
        ACCEPTED ANSWER

        Re: Accessinfo/CreateAccess TIM API's

        ‏2013-05-08T06:13:33Z  in response to loadtest67

        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