on 04-21-2015 1:51 AM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>");
}
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.