public class PermsArchiveDelegate extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PermsArchiveDelegate.SetPermissionsAction |
| Constructor and Description |
|---|
PermsArchiveDelegate() |
| Modifier and Type | Method and Description |
|---|---|
static PermissionCollection |
getDeclaredPermissions(SMGlobalPolicyUtil.CommponentType type,
DeploymentContext context)
Get the application or module packaged permissions
|
static PermissionCollection |
processEEPermissions(SMGlobalPolicyUtil.CommponentType type,
DeploymentContext dc)
Get the EE permissions for the spcified module type
|
static void |
processModuleDeclaredAndEEPemirssions(SMGlobalPolicyUtil.CommponentType type,
DeploymentContext context,
ClassLoader classloader)
Get the declared permissions and EE permissions, then add them to the classloader
|
public static PermissionCollection getDeclaredPermissions(SMGlobalPolicyUtil.CommponentType type, DeploymentContext context) throws SecurityException
type - the type of the module, this is used to check the configured restriction for the typecontext - the deployment contextSecurityException - if permissions.xml has syntax failure, or failed for restriction checkpublic static PermissionCollection processEEPermissions(SMGlobalPolicyUtil.CommponentType type, DeploymentContext dc)
type - module typedc - the deployment contextpublic static void processModuleDeclaredAndEEPemirssions(SMGlobalPolicyUtil.CommponentType type, DeploymentContext context, ClassLoader classloader) throws SecurityException
type - module typecontext - deployment contextclassloader - throws AccessControlException if caller has no privilegeSecurityExceptionCopyright © 2017. All rights reserved.