mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
Merged V1.4 to HEAD
svn merge svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@3987 svn://svn.alfresco.com:3691/alfresco/BRANCHES/V1.4@4133 . Removed LicenseComponent reference from projects\repository\source\java\org\alfresco\repo\descriptor\DescriptorServiceImpl.java git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4135 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -36,6 +36,7 @@ public class ClientConfigElement extends ConfigElementAdapter
|
||||
private int searchMinimum = 3;
|
||||
private boolean forceAndTerms = false;
|
||||
private int searchMaxResults = -1;
|
||||
private int selectorsSearchMaxResults = 500;
|
||||
private String helpUrl = null;
|
||||
private String editLinkType = "http";
|
||||
private String homeSpacePermission = null;
|
||||
@@ -135,6 +136,11 @@ public class ClientConfigElement extends ConfigElementAdapter
|
||||
combinedElement.setSearchMaxResults(newElement.getSearchMaxResults());
|
||||
}
|
||||
|
||||
if (newElement.getSelectorsSearchMaxResults() != combinedElement.getSelectorsSearchMaxResults())
|
||||
{
|
||||
combinedElement.setSelectorsSearchMaxResults(newElement.getSelectorsSearchMaxResults());
|
||||
}
|
||||
|
||||
if (newElement.isShelfVisible() != combinedElement.isShelfVisible())
|
||||
{
|
||||
combinedElement.setShelfVisible(newElement.isShelfVisible());
|
||||
@@ -310,10 +316,9 @@ public class ClientConfigElement extends ConfigElementAdapter
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
|
||||
public int getSearchMaxResults()
|
||||
{
|
||||
return searchMaxResults;
|
||||
return this.searchMaxResults;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -326,6 +331,29 @@ public class ClientConfigElement extends ConfigElementAdapter
|
||||
{
|
||||
this.searchMaxResults = searchMaxResults;
|
||||
}
|
||||
|
||||
/**
|
||||
* If positive, this will limit the size of the result set from the search
|
||||
* used in selector components.
|
||||
*
|
||||
* @return The maximum number of results to display
|
||||
*/
|
||||
public int getSelectorsSearchMaxResults()
|
||||
{
|
||||
return this.selectorsSearchMaxResults;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set if the the result set from a search for the selector components
|
||||
* will be of limited size. If negative it is unlimited, by default,
|
||||
* this is set to 500.
|
||||
*
|
||||
* @param selectorsSearchMaxResults
|
||||
*/
|
||||
/*package*/ void setSelectorsSearchMaxResults(int selectorsSearchMaxResults)
|
||||
{
|
||||
this.selectorsSearchMaxResults = selectorsSearchMaxResults;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns the default Home Space permissions.
|
||||
|
@@ -36,6 +36,7 @@ public class ClientElementReader implements ConfigElementReader
|
||||
public static final String ELEMENT_SEARCHMINIMUM = "search-minimum";
|
||||
public static final String ELEMENT_SEARCHANDTERMS = "search-and-terms";
|
||||
public static final String ELEMENT_SEARCHMAXRESULTS = "search-max-results";
|
||||
public static final String ELEMENT_SELECTORSSEARCHMAXRESULTS = "selectors-search-max-results";
|
||||
public static final String ELEMENT_HOMESPACEPERMISSION = "home-space-permission";
|
||||
public static final String ELEMENT_FROMEMAILADDRESS = "from-email-address";
|
||||
public static final String ELEMENT_SHELFVISIBLE = "shelf-visible";
|
||||
@@ -111,6 +112,14 @@ public class ClientElementReader implements ConfigElementReader
|
||||
configElement.setSearchMaxResults(Integer.parseInt(searchMaxResults.getTextTrim()));
|
||||
}
|
||||
|
||||
// get the selectors search max results size
|
||||
Element selectorsSearchMaxResults = element.element(ELEMENT_SELECTORSSEARCHMAXRESULTS);
|
||||
if (selectorsSearchMaxResults != null)
|
||||
{
|
||||
configElement.setSelectorsSearchMaxResults(
|
||||
Integer.parseInt(selectorsSearchMaxResults.getTextTrim()));
|
||||
}
|
||||
|
||||
// get the default permission for newly created users Home Spaces
|
||||
Element permission = element.element(ELEMENT_HOMESPACEPERMISSION);
|
||||
if (permission != null)
|
||||
|
Reference in New Issue
Block a user