|
|||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
Class Summary | |
Permission | Title: Permission Description: List with permissions which shall be checked Copyright: Copyright (c) 2003 Company: SAP Example 1: checking for one single permission User currentUser = getCurrentUser(); Permission userPerms = new Permission("TESTPERM", "DATA", "READ"); if(currentUser.hasPermission(userPerms)){ System.out.println("User has permission for " + userPerms.getName()); } else { System.out.println("User has NO permission for " + userPerms.getName()); } If the user has a (backend) permission named 'TESTPERM' with the field 'DATA' set to 'READ', this check returns true. |
PermissionEntry | Title: PermissionEntry Description: Single Permsission to be checked. |
Exception Summary | |
PermissionException | Copyright: Copyright (c) 2002 Company: SAP AG |
|
|||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |