mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
. Added URL addressability to dashboards
- the External Access servlet now supports jumping to the My Alfresco dashboard for a user - pages other than the default are supported - URL is of the form /alfresco/navigate/myalfresco or /alfresco/navigate/myalfresco?page=id . Added configuration so that the web-client can be configured to jump to any of the following start locations: My Home (current defaut), Company Home, Guest Home or My Alfresco dashboard see the <initial-location> web-client-config element git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3398 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -40,6 +40,7 @@ public class ClientConfigElement extends ConfigElementAdapter
|
||||
private String editLinkType = "http";
|
||||
private String homeSpacePermission = null;
|
||||
private boolean ajaxEnabled = false;
|
||||
private String initialLocation = null;
|
||||
|
||||
/**
|
||||
* Default Constructor
|
||||
@@ -145,6 +146,17 @@ public class ClientConfigElement extends ConfigElementAdapter
|
||||
combinedElement.setFromEmailAddress(newElement.getFromEmailAddress());
|
||||
}
|
||||
|
||||
if (newElement.isAjaxEnabled() != combinedElement.isAjaxEnabled())
|
||||
{
|
||||
combinedElement.setAjaxEnabled(newElement.isAjaxEnabled());
|
||||
}
|
||||
|
||||
if (newElement.getInitialLocation() != null &&
|
||||
newElement.getInitialLocation().equals(combinedElement.getInitialLocation()) == false)
|
||||
{
|
||||
combinedElement.setInitialLocation(newElement.getInitialLocation());
|
||||
}
|
||||
|
||||
return combinedElement;
|
||||
}
|
||||
|
||||
@@ -348,4 +360,20 @@ public class ClientConfigElement extends ConfigElementAdapter
|
||||
{
|
||||
this.ajaxEnabled = ajaxEnabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns the default initial location for the user.
|
||||
*/
|
||||
public String getInitialLocation()
|
||||
{
|
||||
return this.initialLocation;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param initialLocation The initial location to set.
|
||||
*/
|
||||
/*package*/ void setInitialLocation(String initialLocation)
|
||||
{
|
||||
this.initialLocation = initialLocation;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user