cancel
Showing results for 
Search instead for 
Did you mean: 

Are there any ways to judge a login user has permission to access a portal iView by iView's ID?

Former Member
0 Kudos

Hi all,

     I want to design a navigation home page, list all the iView that current user can access on it.

     Are there any way to judge a login user has permission to access a portal iView by iView's ID?

Best Regard

THX

Accepted Solutions (1)

Accepted Solutions (1)

santhu_gowdaz
Active Contributor
0 Kudos
Former Member
0 Kudos

Can i use these code to checks whether the current user has read permission on the object with the PCD name:

IAdminBase myAdmin = (IAdminBase)iCtx.lookup(myObject);

IPermission myIview = (IPermission)
myAdmin.getImplementation(IAdminBase.PERMISSION);

        

boolean hasPermission = myIview
.isAllowed(request.getUser(),IPermission.PCM_ADMIN_READ);

if (hasPermission) {

response.write(request.getUser().getName() + " has "
        + myIview.getPermissionTitle("Pcd.Read",request.getLocale())
            +
" permission.<br>");

}

Former Member
0 Kudos

Hi Alert Moderator,

     I want to design the sitemap page in Web dynpro JAVA project, but there are some class can't be found, such as:

     PcmConstants.ASPECT_ADMINISTRATION

     IPortalComponentRequest

     Constants.REQUESTED_ASPECT

     Context.SECURITY_PRINCIPAL

     ... ...

     How can i get the nessary .jar files?

Best Regard

reefish

Answers (1)

Answers (1)

Former Member
0 Kudos

HI ALL:

     I need to self define a navigation page of my content.  So i need to know if current login user has permission to the iview/page, if he/she has permission  , the view/page's link will display on the navigation page, otherwise the link will not display on the navigation page.

    IF somebody give me some suggest to implement the function in web dynpro java project.

best regard

reefish