public class PermissionAdminImpl extends java.lang.Object implements PermissionAdmin
PermissionAdmin
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
SPEC_VERSION |
构造器和说明 |
---|
PermissionAdminImpl(org.knopflerfish.framework.permissions.PermissionInfoStorage pis) |
限定符和类型 | 方法和说明 |
---|---|
PermissionInfo[] |
getDefaultPermissions()
Gets the default permissions.
|
java.lang.String[] |
getLocations()
Returns the bundle locations that have permissions assigned to them, that
is, bundle locations for which an entry exists in the permission table.
|
PermissionInfo[] |
getPermissions(java.lang.String location)
Gets the permissions assigned to the bundle with the specified
location.
|
void |
setDefaultPermissions(PermissionInfo[] perms)
Sets the default permissions.
|
void |
setPermissions(java.lang.String location,
PermissionInfo[] perms)
Assigns the specified permissions to the bundle with the specified
location.
|
public static final java.lang.String SPEC_VERSION
public PermissionAdminImpl(org.knopflerfish.framework.permissions.PermissionInfoStorage pis)
public PermissionInfo[] getPermissions(java.lang.String location)
getPermissions
在接口中 PermissionAdmin
location
- The location of the bundle whose permissions are to
be returned.public void setPermissions(java.lang.String location, PermissionInfo[] perms)
setPermissions
在接口中 PermissionAdmin
location
- The location of the bundle that will be assigned the
permissions.permissions
- The permissions to be assigned, or null
if
the specified location is to be removed from the permission table.java.lang.SecurityException
- If the caller does not have
AllPermission
.public java.lang.String[] getLocations()
getLocations
在接口中 PermissionAdmin
public PermissionInfo[] getDefaultPermissions()
These are the permissions granted to any bundle that does not have permissions assigned to its location.
getDefaultPermissions
在接口中 PermissionAdmin
public void setDefaultPermissions(PermissionInfo[] perms)
These are the permissions granted to any bundle that does not have permissions assigned to its location.
setDefaultPermissions
在接口中 PermissionAdmin
permissions
- The default permissions, or null
if the
default permissions are to be removed from the permission table.java.lang.SecurityException
- If the caller does not have
AllPermission
.