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:
Olivier Lamy 2012-11-23 18:33:52 +00:00
parent f0b5140e1a
commit 4f810483e5
6 changed files with 31 additions and 0 deletions

View File

@ -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();
}

View File

@ -328,4 +328,9 @@ public class CachedUserManager
{
return false;
}
public String getDescriptionKey()
{
return "archiva.redback.usermanager.cached";
}
}

View File

@ -182,4 +182,9 @@ public class ConfigurableUserManager
{
this.userManagerImpl = userManagerImpl;
}
public String getDescriptionKey()
{
return "archiva.redback.usermanager.configurable";
}
}

View File

@ -490,4 +490,9 @@ public class JdoUserManager
{
return true;
}
public String getDescriptionKey()
{
return "archiva.redback.usermanager.jdo";
}
}

View File

@ -505,4 +505,9 @@ public class LdapUserManager
{
return true;
}
public String getDescriptionKey()
{
return "archiva.redback.usermanager.ldap";
}
}

View File

@ -314,4 +314,9 @@ public class MemoryUserManager
hasTriggeredInit = true;
}
}
public String getDescriptionKey()
{
return "archiva.redback.usermanager.memory";
}
}