mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged DEV/BELARUS/HEAD-2010_03_17 to HEAD
19398: SAIL-298: Create New subsystems and modify identified modules to use properties from newly created subsystems - Remove web.application.context.url from repository.properties and action-services-context.xml. - Expose mailService outside of the OutboundSMTP subsystem because it is needed for email space/invited users actions. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19497 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -426,6 +426,18 @@
|
|||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
<!-- Import MailService from the OutboundSMTP subsystem (needed for email space/invited users actions) -->
|
||||||
|
<bean id="mailService" class="org.alfresco.repo.management.subsystems.SubsystemProxyFactory">
|
||||||
|
<property name="sourceApplicationContextFactory">
|
||||||
|
<ref bean="OutboundSMTP" />
|
||||||
|
</property>
|
||||||
|
<property name="interfaces">
|
||||||
|
<list>
|
||||||
|
<value>org.springframework.mail.javamail.JavaMailSender</value>
|
||||||
|
</list>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
<bean id="set-property-value" class="org.alfresco.repo.action.executer.SetPropertyValueActionExecuter" parent="action-executer">
|
<bean id="set-property-value" class="org.alfresco.repo.action.executer.SetPropertyValueActionExecuter" parent="action-executer">
|
||||||
<property name="publicAction">
|
<property name="publicAction">
|
||||||
<value>false</value>
|
<value>false</value>
|
||||||
@@ -517,8 +529,8 @@
|
|||||||
<property name="companyHomePath">
|
<property name="companyHomePath">
|
||||||
<value>/${spaces.company_home.childname}</value>
|
<value>/${spaces.company_home.childname}</value>
|
||||||
</property>
|
</property>
|
||||||
<property name="webApplicationContextUrl">
|
<property name="sysAdminParams">
|
||||||
<value>${web.application.context.url}</value>
|
<ref bean="sysAdminParams" />
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
@@ -6,8 +6,6 @@ repository.name=Main Repository
|
|||||||
|
|
||||||
dir.root=./alf_data
|
dir.root=./alf_data
|
||||||
|
|
||||||
web.application.context.url=http://localhost:8080/alfresco
|
|
||||||
|
|
||||||
dir.contentstore=${dir.root}/contentstore
|
dir.contentstore=${dir.root}/contentstore
|
||||||
dir.contentstore.deleted=${dir.root}/contentstore.deleted
|
dir.contentstore.deleted=${dir.root}/contentstore.deleted
|
||||||
|
|
||||||
|
@@ -24,6 +24,7 @@ import java.util.Map;
|
|||||||
|
|
||||||
import org.alfresco.model.ContentModel;
|
import org.alfresco.model.ContentModel;
|
||||||
import org.alfresco.repo.action.ParameterDefinitionImpl;
|
import org.alfresco.repo.action.ParameterDefinitionImpl;
|
||||||
|
import org.alfresco.repo.admin.SysAdminParams;
|
||||||
import org.alfresco.repo.jscript.ScriptAction;
|
import org.alfresco.repo.jscript.ScriptAction;
|
||||||
import org.alfresco.service.ServiceRegistry;
|
import org.alfresco.service.ServiceRegistry;
|
||||||
import org.alfresco.service.cmr.action.Action;
|
import org.alfresco.service.cmr.action.Action;
|
||||||
@@ -48,11 +49,11 @@ public class ScriptActionExecuter extends ActionExecuterAbstractBase
|
|||||||
public static final String PARAM_SCRIPTREF = "script-ref";
|
public static final String PARAM_SCRIPTREF = "script-ref";
|
||||||
|
|
||||||
private ServiceRegistry serviceRegistry;
|
private ServiceRegistry serviceRegistry;
|
||||||
|
private SysAdminParams sysAdminParams;
|
||||||
private PersonService personService;
|
private PersonService personService;
|
||||||
private String companyHomePath;
|
private String companyHomePath;
|
||||||
private StoreRef storeRef;
|
private StoreRef storeRef;
|
||||||
private ScriptLocation scriptLocation;
|
private ScriptLocation scriptLocation;
|
||||||
private String webApplicationContextUrl;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param serviceRegistry The serviceRegistry to set.
|
* @param serviceRegistry The serviceRegistry to set.
|
||||||
@@ -62,6 +63,14 @@ public class ScriptActionExecuter extends ActionExecuterAbstractBase
|
|||||||
this.serviceRegistry = serviceRegistry;
|
this.serviceRegistry = serviceRegistry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param sysAdminParams The sysAdminParams to set.
|
||||||
|
*/
|
||||||
|
public void setSysAdminParams(SysAdminParams sysAdminParams)
|
||||||
|
{
|
||||||
|
this.sysAdminParams = sysAdminParams;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param personService The personService to set.
|
* @param personService The personService to set.
|
||||||
*/
|
*/
|
||||||
@@ -90,16 +99,6 @@ public class ScriptActionExecuter extends ActionExecuterAbstractBase
|
|||||||
this.scriptLocation = scriptLocation;
|
this.scriptLocation = scriptLocation;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the web application context url
|
|
||||||
*
|
|
||||||
* @param webApplicationContextUrl web application context url
|
|
||||||
*/
|
|
||||||
public void setWebApplicationContextUrl(String webApplicationContextUrl)
|
|
||||||
{
|
|
||||||
this.webApplicationContextUrl = webApplicationContextUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allow adhoc properties to be passed to this action
|
* Allow adhoc properties to be passed to this action
|
||||||
*
|
*
|
||||||
@@ -155,7 +154,7 @@ public class ScriptActionExecuter extends ActionExecuterAbstractBase
|
|||||||
ScriptAction scriptAction = new ScriptAction(this.serviceRegistry, action, this.actionDefinition);
|
ScriptAction scriptAction = new ScriptAction(this.serviceRegistry, action, this.actionDefinition);
|
||||||
model.put("action", scriptAction);
|
model.put("action", scriptAction);
|
||||||
|
|
||||||
model.put("webApplicationContextUrl", webApplicationContextUrl);
|
model.put("webApplicationContextUrl", sysAdminParams.getAlfrescoProtocol() + "://" + sysAdminParams.getAlfrescoHost() + ":" + sysAdminParams.getAlfrescoPort() + "/" + sysAdminParams.getAlfrescoContext());
|
||||||
|
|
||||||
Object result = null;
|
Object result = null;
|
||||||
if (this.scriptLocation == null)
|
if (this.scriptLocation == null)
|
||||||
|
Reference in New Issue
Block a user