mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Create Project action added to Projects folder Create menu (only for this folder). Create Project dialog. Config to wire in new action/evaluators and Create Project dialog. Project placeholder icons added. Project type removed from list of types in Advanced Space wizard.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7523 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -88,6 +88,7 @@ public class Application
|
||||
private static String websitesFolderName;
|
||||
private static String webContentFormsFolderName;
|
||||
private static String contentFormsFolderName;
|
||||
private static String projectsFolderName;
|
||||
|
||||
private static Boolean isDynamicConfig = null;
|
||||
|
||||
@@ -553,6 +554,22 @@ public class Application
|
||||
return getContentFormsFolderName(FacesContextUtils.getRequiredWebApplicationContext(context));
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the Projects folder name
|
||||
*/
|
||||
public static String getProjectsFolderName(ServletContext context)
|
||||
{
|
||||
return getProjectsFolderName(WebApplicationContextUtils.getRequiredWebApplicationContext(context));
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the Projects folder name
|
||||
*/
|
||||
public static String getProjectsFolderName(FacesContext context)
|
||||
{
|
||||
return getProjectsFolderName(FacesContextUtils.getRequiredWebApplicationContext(context));
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the language locale for the current user context
|
||||
*
|
||||
@@ -950,6 +967,24 @@ public class Application
|
||||
return websitesFolderName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the Projects folder name
|
||||
*
|
||||
* @param context The Spring context
|
||||
* @return The Projects folder name
|
||||
*/
|
||||
private static String getProjectsFolderName(WebApplicationContext context)
|
||||
{
|
||||
if (projectsFolderName == null)
|
||||
{
|
||||
ImporterBootstrap bootstrap = (ImporterBootstrap)context.getBean(BEAN_IMPORTER_BOOTSTRAP);
|
||||
Properties configuration = bootstrap.getConfiguration();
|
||||
projectsFolderName = configuration.getProperty("spaces.projects.childname");
|
||||
}
|
||||
|
||||
return projectsFolderName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the WCM Content Forms folder name
|
||||
*
|
||||
|
Reference in New Issue
Block a user