X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fusermanager%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fusermanager%2FIUserManager.java;h=85a97f0b852e99fa728ab4366e69e8dda775dd93;hb=feeb64e96e1bfbb4d5492ddabcf70e7f43ad4082;hp=ed23b5f067c45ebd000ac52fffc919e9707800ef;hpb=20d6b967b3d425a4514000c7e77b2e5339763ba8;p=controller.git diff --git a/opendaylight/usermanager/src/main/java/org/opendaylight/controller/usermanager/IUserManager.java b/opendaylight/usermanager/src/main/java/org/opendaylight/controller/usermanager/IUserManager.java index ed23b5f067..85a97f0b85 100644 --- a/opendaylight/usermanager/src/main/java/org/opendaylight/controller/usermanager/IUserManager.java +++ b/opendaylight/usermanager/src/main/java/org/opendaylight/controller/usermanager/IUserManager.java @@ -267,6 +267,18 @@ public interface IUserManager extends UserDetailsService { */ public ISessionManager getSessionManager(); + /** + * Checks if the specified role belongs to any application. Usually an + * application will call this function when configuring a role, to check if + * that role is already being used by another application. + * + * @param role + * The role to check + * @return true if the specified role belongs to any application or if the + * role is a well-known controller role, false otherwise. + */ + public boolean isRoleInUse(String role); + /* non-Javadoc * Returns the password for a given user *