An OSCAR shell command to handle the OSGi PermissionAdmin Service.

Copyright 2004 TRIALOG


Licenses

This bundle is licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.

You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Installation

This bundle must have the org.osgi.framework.AdminPermission in order to be able to set and change permissions through the Permission Admin service.

Usage

Once the bundle is started, the following shell commands are available:

permz list [<bundle url>]

lists either all the permissions or only those associated to a bundle.

permz add <bundle url> <permissionType> [<Name> [<Actions>]]

adds a permission to a given bundle.

permz del <bundle url> <permission #>

removes a permission (numbered from 0) from a bundle.

permz load <file>

loads a set of permissions from a local file.

permz reset [<bundle url>]

clears the permissions associated to a bundle.

Files of the project