Quantcast
Viewing all articles
Browse latest Browse all 5661

IRightsBase.getDescription(locale) Not Working Right

System:  BI 4.1 SP4

 

I'm working on a program that pulls security information out of the CMS database.  When I get the rights that are in Access Levels using ICustomRole and IRoleRights, I get the right descriptions with no problems.  However, when I'm trying to get the rights assigned on an IInfoObject to an object principal (both Effective and Explicit), frequently I get a description of "unknown right", even though the right gets displayed correctly in the CMC.

 

In the program, I gather various information into specific classes that I've defined.  Here's the class that I'm using for any Advanced Rights that have been granted on an object:

 

public class AdvancedRight extends baseInfo {

    private boolean isOwner = false;

    private String granted = "";

    private String scopeThis = "";

    private String scopeDescend = "";

   

    public AdvancedRight (IRightBase right) {

        kind = right.getRightPluginKind();

        isOwner = right.isOwner();

        id = right.getBaseID();

        title = right.getDescription(Locale.getDefault());

        if (right.isSpecified()){

            granted = (right.isGranted() ? "Granted" : "Denied");

        }

        updateScope(right.getScope());

    }

   

    public String getKind() { return kind; }

    public boolean isOwner() { return isOwner; }

    public String getGranted() { return granted; }

    public String getScopeThis() { return scopeThis; }

    public String getScopeDescend() { return scopeDescend; }

   

    public void updateScope(String value) {

        if (value.toLowerCase().equals("this")){

            scopeThis = "X";

        } else if (value.toLowerCase().equals("descendants")){

            scopeDescend = "X";

        }      

    }

}

 

 

The I would expect that the call to right.getDescription(Locale.getDefault()) would give me the correct information, but it's not.

 

For example, here's the CSV output I get when I'm pulling application rights:

 

SI_ID,APPLICATION_NAME,SECURITY_PRINCIPAL_ID,SECURITY_PRINCIPAL_NAME,RIGHT,THIS_OBJECT,SUB_OBJECTS,GRANTED

4009,BI Widgets,1,Everyone,Unknown right,X,X,Granted

4009,BI Widgets,1,Everyone,Unknown right,X,X,Granted

4009,BI Widgets,1,Everyone,Unknown right,X,X,Granted

4004,universe design tool,1,Everyone,Unknown right,X,X,Granted

4077,information design tool,3247,Universe Designer Users,Unknown right,X,X,Granted

4077,information design tool,3247,Universe Designer Users,View objects,X,X,Granted

4077,information design tool,3247,Universe Designer Users,Unknown right,X,X,Granted

4077,information design tool,3247,Universe Designer Users,Unknown right,X,X,Granted

4077,information design tool,3247,Universe Designer Users,Unknown right,X,X,Granted

4077,information design tool,3247,Universe Designer Users,Unknown right,X,X,Granted

4014,SAP BusinessObjects Mobile,1,Everyone,Unknown right,X,X,Granted

4081,Multitenancy Manager,1,Everyone,Delete objects,X,,Denied

4081,Multitenancy Manager,2,Administrators,Edit objects,X,,Granted

4081,Multitenancy Manager,2,Administrators,Delete objects,X,,Denied

4002,Analysis edition for OLAP,1,Everyone,View objects,X,,Granted

 

Looking at the User Security on the Widgets application in the CMC, I see that the three rights that show up as "Unknown Rights" here are "Use Explorer", "Use Search", and "Use Alert Inbox".

 

What do I need to do to get the correct values here?

 

Thanks!

 

-Dell


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>