mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.2 to HEAD
16681: Fixed ETHREEOH-2454 "It's possible to create a group with less than 3 symbols in JSF client, but it's impossible to find it in Share client" - Group name can now only be between 3-100 characters in webclient git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16901 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -80,6 +80,7 @@ public class ClientConfigElement extends ConfigElementAdapter
|
||||
private List<QName> simpleSearchAdditionalAttributes = null;
|
||||
private int minUsernameLength = 2;
|
||||
private int minPasswordLength = 3;
|
||||
private int minGroupNameLength = 3;
|
||||
private String breadcrumbMode = BREADCRUMB_PATH;
|
||||
private String cifsURLSuffix = null;
|
||||
private boolean languageSelect = true;
|
||||
@@ -276,7 +277,12 @@ public class ClientConfigElement extends ConfigElementAdapter
|
||||
{
|
||||
combinedElement.setMinPasswordLength(newElement.getMinPasswordLength());
|
||||
}
|
||||
|
||||
|
||||
if (newElement.getMinGroupNameLength() != combinedElement.getMinGroupNameLength())
|
||||
{
|
||||
combinedElement.setMinGroupNameLength(newElement.getMinGroupNameLength());
|
||||
}
|
||||
|
||||
if (newElement.getBreadcrumbMode() != null &&
|
||||
newElement.getBreadcrumbMode().equals(combinedElement.getBreadcrumbMode()) == false)
|
||||
{
|
||||
@@ -728,7 +734,23 @@ public class ClientConfigElement extends ConfigElementAdapter
|
||||
{
|
||||
this.minPasswordLength = minPasswordLength;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return Returns the minimum length for a group name.
|
||||
*/
|
||||
public int getMinGroupNameLength()
|
||||
{
|
||||
return this.minGroupNameLength;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param minGroupNameLength The minimum length of a group name
|
||||
*/
|
||||
/*package*/ void setMinGroupNameLength(int minGroupNameLength)
|
||||
{
|
||||
this.minGroupNameLength = minGroupNameLength;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the breadcrumb mode
|
||||
*
|
||||
|
Reference in New Issue
Block a user