X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fauthorization%2FIResourceAuthorization.java;h=8f6cfa42512642ba6e1115332c68898bb35ece75;hp=cabe5712589a93f63f7310172bbc549629eae67b;hb=e2f7aaa41e482815ca1d4495eb85c8653cd903ab;hpb=0cc147bcc963544380071b7d101ece8bbea55849 diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/authorization/IResourceAuthorization.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/authorization/IResourceAuthorization.java index cabe571258..8f6cfa4251 100644 --- a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/authorization/IResourceAuthorization.java +++ b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/authorization/IResourceAuthorization.java @@ -18,7 +18,7 @@ import org.opendaylight.controller.sal.utils.Status; * Interface for applications which maintain an authorization * database for their resources. Respective application web bundle * and User Manager make use of this interface to retrieve - * authorization information at user or and role level + * authorization information at user or and role level. */ public interface IResourceAuthorization { @@ -90,15 +90,27 @@ public interface IResourceAuthorization { public List getResourceGroups(); /** - * Assign a resource group to a user group (role) + * Assign a resource group to a role * - * @param groupName the object expressing the resource group name and the access privilege - * @param role the user group (role) name + * @param groupName the name of the resource group + * @param privilege the access privilege role will have on the resource group + * @param role the role name * @return the status of the request */ + @Deprecated public Status assignResourceGroupToRole(String groupName, Privilege privilege, String role); + /** + * Assign a resource group to a role. The access privilege on the resources + * is inferred by the AppRoleLevel associated to role. + * + * @param groupName the name of the resource group + * @param role the role name + * @return the status of the request + */ + public Status assignResourceGroupToRole(String groupName, String role); + /** * Unassign the passed resource group from the specified role *