. Added client config setting to allow the Shelf component to be hidden by default

. Added ExpiringValueCache class used to hold simple lists in the client that don't need refreshing constantly

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2105 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-01-12 17:29:56 +00:00
parent 2652d33f08
commit aaff54e53c
7 changed files with 127 additions and 89 deletions

View File

@@ -61,6 +61,7 @@ public class ClientConfigElement extends ConfigElementAdapter
private List<String> descendingSorts = new ArrayList<String>(1);
private int recentSpacesItems = 6;
private boolean shelfVisible = true;
private int searchMinimum = 3;
private String helpUrl = null;
private String editLinkType = null;
@@ -260,6 +261,22 @@ public class ClientConfigElement extends ConfigElementAdapter
this.recentSpacesItems = recentSpacesItems;
}
/**
* @return Returns if the shelf component is visible by default.
*/
public boolean isShelfVisible()
{
return this.shelfVisible;
}
/**
* @param shelfVisible True if the shelf component is visible by default.
*/
/*package*/ void setShelfVisible(boolean shelfVisible)
{
this.shelfVisible = shelfVisible;
}
/**
* Add a language locale and display label to the list.
*