Previous Topic

Next Topic

Book Contents

Book Index

Security

This page describes the FunctionalItemPermission and how it could be used to specify the access to Functional Items and their members.

Overview

FunctionalItemPermission represents the access to FunctionalItem instances and their functionality. It is used for defining:

Examples for using in permissions.perm file:

Changing permissions runtime:

Examples on how to check the caller permissions in FunctionalItem property getters, setters and operations:

If you are extending AbstractFunctionalItem, there are more protected methods that can be used instead of the code examples listed down.

@Property
  @Description("Switch state.")
  String PROPERTY_STATE = "state";
  ...
  SecurityManager sm = System.getSecurityManager();

FIM packages permissions:

In addition to the configured FunctionalItemPermissions be sure that import PackagePermissions for FIM packages are allowed only for the required FIM API packages.