COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => SDK => Topic started by: calcio78 on 29 Sep 2009 06:10:21 AM

Title: SDK Check report permissions
Post by: calcio78 on 29 Sep 2009 06:10:21 AM
Hi,

Is there a way, to check the report permission using java sdk?
Would really appreciate your help
Title: Re: SDK Check report permissions
Post by: calcio78 on 02 Oct 2009 02:23:27 AM
got it.  what i did before executing the 
contentManagerService.query(searchPath, props, sortBy, new QueryOptions());  need to include the PropEnum.permissions in the PropEnum[] props.  Else you will get a NullPointerException.  to get the permission
for( int a=0; a<baseClass.getPermissions().getValue().length; a++ ){
    baseClass.getPermissions().getValue()[a].toString()
  }
Title: Re: SDK Check report permissions
Post by: ricky_ru on 11 Sep 2018 06:17:47 AM
does sdk provide api to set permission?