public final class PermissionMapping extends Object
| Constructor and Description |
|---|
PermissionMapping() |
| Modifier and Type | Method and Description |
|---|---|
static IPermission |
getByName(String permissionName)
Returns an IPermission for a given name.
|
static boolean |
load()
This method will be called by the RF on startup and
must not be called from any other coding!
|
static IAclPermission |
map(IPermission permission)
Maps an IPermission to an IAclPermission.
|
static IAclPermission[] |
map(IPermissionList permissions)
Maps an array of IPermissions to an array of corresponding
IAclPermissions.
|
static IAclPermission |
map(String permissionName)
Maps the name of an IPermission to an IAclPermission.
|
static IAclPermission[] |
map(String[] permissionNames)
Maps an array of names for IPermissions to an array of corresponding
IAclPermission.
|
public static boolean load()
null, if load() returns false.
This hapens, if some of the IAclPermissions couldn't be loaded
from the IAclManager named "acl_jdbc_rep", or if this
IAclManager couldn't be loaded at all.true if the permissions were loaded successfully.public static IAclPermission map(String permissionName)
permissionName - the name of the IPermission to map (see String-
constants in IPermission)null, if no such mapping exists (e.g. if
the IAclPermssions couldn't be loaded),
or if the given permissionName is nullpublic static IAclPermission[] map(String[] permissionNames)
permissionNames - an array of Strings with names of the IPermission
to map (see String-constants in IPermission)null, if at least one of the mappings doesn't
exist (e.g. if the IAclPermssions couldn't be loaded),
or if the given permissionNames are nullpublic static IAclPermission map(IPermission permission)
permission - the IPermission to mapnull, if no such mapping exists (e.g. if
the IAclPermssions couldn't be loaded),
or if the given permissionName is nullpublic static IAclPermission[] map(IPermissionList permissions)
permissions - an array of IPermissions to mapnull, if at least one of the mappings doesn't
exist (e.g. if the IAclPermssions couldn't be loaded),
or if the given permissions are nullpublic static IPermission getByName(String permissionName)
new Permission(permissionName),
getByName might return null, if the given
permissionName is not known.permissionName - the name of the framework permission to getnull, if the permissionName isn't known
(not listed as constant in IPermission).| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2017 SAP AG Complete Copyright Notice