/**
 * Licensed to the Austrian Association for Software Tool Integration (AASTI)
 * under one or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information regarding copyright
 * ownership. The AASTI licenses this file to you 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.
 */
package org.openengsb.core.api.security;

import java.util.Collection;

import org.openengsb.core.api.security.model.Permission;

public interface PermissionProvider {

    Class<? extends Permission> getPermissionClass(String className);

    Collection<Class<? extends Permission>> getSupportedPermissionClasses();

}

@@ -956,117 +956,1000 @@
 n;%0A%0A
-public interface PermissionProvider %7B%0A%0A    Class%3C? extends Permission%3E getPermissionClass(String className);%0A
+/**%0A * Provides other bundles means of delegated classloading of permission-types and detecting which permission-classes are%0A * available.%0A *%0A * Services exporting this interface must also declare the %22permissionClass%22-property where all supported classes are%0A * listed.%0A */%0Apublic interface PermissionProvider %7B%0A%0A    /**%0A     * loads the permission-class with the. This enables other bundles (e.g. persistence) to delegate loading the class%0A     * to the declaring bundle, to avoid Dynamic-Import.%0A     *%0A     * All class-names must also be listed in the services' %22permissionClass%22-property, because it may be used to query%0A     * for correct provider that is able to load a certain permission-class%0A     */%0A    Class%3C? extends Permission%3E getPermissionClass(String className);%0A%0A    /**%0A     * returns all Permission-types supported by this Provider. This method may be used by user interfaces to list all%0A     * available types of permissions and to instantiate them.%0A     *%0A     *%0A     */
 %0A   

add jdoc to permission-provider-interface