Layer7 Access Management

Expand all | Collapse all

Fetching Domain OID's using java sdk

Jump to Best Answer
  • 1.  Fetching Domain OID's using java sdk

    Posted 09-01-2016 01:51 PM

    Hi Guys,

     

    I was working on fetching the domain OID's in SiteMinder R12.52 using java SDK from the following code:

     

    private String getDomainOid(SmPolicyApi policyapi, String domainName)
    throws SmApiException {
    SmDomain domain = new SmDomain(domainName);
    policyapi.getDomain(domainName, domain);
    domain.setName(domainName);
    System.out.println("affilate:"+domain.getIsAffiliate()+" "+domain.getOid().toString());

    }

     

    the above code works perfectly for the policy domain, but when i am sending affiliate domain as parameter i am not getting OID. Even when i am using the "getIsAffiliate" method it is returning false for affiliate domain, i dont see many methods for affiliate in 'policyapi' is there any other api to be used? Is there any other class to be used? to fetch the Affiliate domain's OID's?

     

    Thanks,
    Ravi


  • 2.  Re: Fetching Domain OID's using java sdk
    Best Answer

    Posted 09-01-2016 02:55 PM

    I think it is still in the enhancement phase to expose the affiliatedomains in java SDK as per below URL

     

    Create SmObject implementations for Affiliate D... | CA Communities 



  • 3.  Re: Fetching Domain OID's using java sdk

    Posted 09-06-2016 07:50 AM

    Hi Ujwol,

     

    Thanks for marking it as correct. But to my surprise what i have observed in the existing SDK is "domain.getIsAffiliate()" should either return true or false based on whether it is affiliate or policy domain. But it returns always false irrespective of policydomain or affiliate domain. the "getIsAffiliate()" method does exist in the current SDK. Do you know anything about this? is this a bug or not supported in what it is given in the java policy API? 

     

    If not supported is there any bug reported in CA for this?

     

    private String getDomainOid(SmPolicyApi policyapi, String domainName)
    throws SmApiException {
    SmDomain domain = new SmDomain(domainName);
    policyapi.getDomain(domainName, domain);
    domain.setName(domainName);
    System.out.println("affilate:"+domain.getIsAffiliate()+" "+domain.getOid().toString());

    }