Uses of Package
com.sap.ip.me.api.security

Packages that use com.sap.ip.me.api.security
com.sap.ip.me.api.security   
com.sap.ip.me.api.user   
 

Classes in com.sap.ip.me.api.security used by com.sap.ip.me.api.security
PermissionEntry
          Title: PermissionEntry
Description: Single Permsission to be checked.
 

Classes in com.sap.ip.me.api.security used by com.sap.ip.me.api.user
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.
 



Copyright © 2005 SAP AG. All Rights Reserved.