user manager now returns a description key to be able to customize label on ui side
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1413019 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f0b5140e1a
commit
4f810483e5
|
@ -212,4 +212,10 @@ public interface UserManager
|
|||
* @return true if this implementation is a final one and not a wrapper (configurable, cached)
|
||||
*/
|
||||
boolean isFinalImplementation();
|
||||
|
||||
/**
|
||||
* @since 2.1
|
||||
* @return a key to be able to customize label in UI
|
||||
*/
|
||||
String getDescriptionKey();
|
||||
}
|
||||
|
|
|
@ -328,4 +328,9 @@ public class CachedUserManager
|
|||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public String getDescriptionKey()
|
||||
{
|
||||
return "archiva.redback.usermanager.cached";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -182,4 +182,9 @@ public class ConfigurableUserManager
|
|||
{
|
||||
this.userManagerImpl = userManagerImpl;
|
||||
}
|
||||
|
||||
public String getDescriptionKey()
|
||||
{
|
||||
return "archiva.redback.usermanager.configurable";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -490,4 +490,9 @@ public class JdoUserManager
|
|||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public String getDescriptionKey()
|
||||
{
|
||||
return "archiva.redback.usermanager.jdo";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -505,4 +505,9 @@ public class LdapUserManager
|
|||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public String getDescriptionKey()
|
||||
{
|
||||
return "archiva.redback.usermanager.ldap";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -314,4 +314,9 @@ public class MemoryUserManager
|
|||
hasTriggeredInit = true;
|
||||
}
|
||||
}
|
||||
|
||||
public String getDescriptionKey()
|
||||
{
|
||||
return "archiva.redback.usermanager.memory";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue