cancel
Showing results for 
Search instead for 
Did you mean: 

IRightsBase.getDescription(locale) Not Working Right

DellSC
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

DellSC
Active Contributor
0 Kudos

Just bumping this up as it's been out here for over a week with no response.

-Dell

mgrackin
Contributor
0 Kudos

Dell, I realize this thread is over a year old but I just ran into this same issue and I think I have a possible solution/reason for this happening.    I have an application that does that same thing using the BusinessObjects SDK to show detailed rights included in Access Levels.  My app comes up with Unknown Right for a few.  It finally dawned on me that the JAR libraries I complied with the application are not up to the same level as the installed reporting area it is connecting to.  I am connecting to a BOB42, SP2 install but the application is using the JAR files from BOB41, SP6. Therefore the application did not recognize the new rights added in BOB42 for Commentary. Maybe this was the issue for your situation?

DellSC
Active Contributor
0 Kudos

I don't think so, but I suppose it was possible.  I need to go back to look at that code again.  Thanks!

-Dell