mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merge master into feature/RM-3512_QueryForAuthorities
This commit is contained in:
18
README.txt
18
README.txt
@@ -32,7 +32,6 @@ Configuring a different DB other than H2 (e.g. MySQL or PostgreSQL):
|
|||||||
mvn clean install -Pstart-repo,use-mysql
|
mvn clean install -Pstart-repo,use-mysql
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Running integration test:
|
Running integration test:
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
@@ -69,6 +68,23 @@ The latest Aikau snapshot can be pulled by running the following command in rm-c
|
|||||||
Thereafter start the Share instance and run automation tests as described above.
|
Thereafter start the Share instance and run automation tests as described above.
|
||||||
|
|
||||||
|
|
||||||
|
Configuring Outlook Integration:
|
||||||
|
-------------------------------
|
||||||
|
|
||||||
|
To download and run RM with the Outlook Integration AMPs installed on the repo and Share use the following commands:
|
||||||
|
|
||||||
|
mvn clean install -Pstart-repo,outlook-integration
|
||||||
|
mvn clean install -Pstart-share,outlook-integration
|
||||||
|
|
||||||
|
Follow these instructions install licence and Outlook plugin:
|
||||||
|
|
||||||
|
- http://docs.alfresco.com/outlook2.1/tasks/Outlook-license.html
|
||||||
|
- http://docs.alfresco.com/outlook2.1/tasks/Outlook-install_v2.html
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SNAPSHOT dependencies:
|
SNAPSHOT dependencies:
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
|
@@ -85,7 +85,7 @@
|
|||||||
|
|
||||||
<property name="nodeService" ref="nodeService" />
|
<property name="nodeService" ref="nodeService" />
|
||||||
<property name="searchService" ref="searchService" />
|
<property name="searchService" ref="searchService" />
|
||||||
<property name="authenticationService" ref="authenticationService" />
|
<property name="personService" ref="personService" />
|
||||||
<property name="recordsManagementActionService" ref="recordsManagementActionService" />
|
<property name="recordsManagementActionService" ref="recordsManagementActionService" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
@@ -43,7 +43,7 @@ import org.alfresco.service.cmr.repository.NodeService;
|
|||||||
import org.alfresco.service.cmr.repository.StoreRef;
|
import org.alfresco.service.cmr.repository.StoreRef;
|
||||||
import org.alfresco.service.cmr.search.ResultSet;
|
import org.alfresco.service.cmr.search.ResultSet;
|
||||||
import org.alfresco.service.cmr.search.SearchService;
|
import org.alfresco.service.cmr.search.SearchService;
|
||||||
import org.alfresco.service.cmr.security.AuthenticationService;
|
import org.alfresco.service.cmr.security.PersonService;
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
|
|
||||||
@@ -74,8 +74,8 @@ public class DispositionLifecycleJobExecuter extends RecordsManagementJobExecute
|
|||||||
/** search service */
|
/** search service */
|
||||||
private SearchService searchService;
|
private SearchService searchService;
|
||||||
|
|
||||||
/** authenticationService service */
|
/** person service */
|
||||||
private AuthenticationService authenticationService;
|
private PersonService personService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List of disposition actions to automatically execute when eligible.
|
* List of disposition actions to automatically execute when eligible.
|
||||||
@@ -241,13 +241,13 @@ public class DispositionLifecycleJobExecuter extends RecordsManagementJobExecute
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public AuthenticationService getAuthenticationService()
|
public PersonService getPersonService()
|
||||||
{
|
{
|
||||||
return authenticationService;
|
return personService;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAuthenticationService(AuthenticationService authenticationService)
|
public void setPersonService(PersonService personService)
|
||||||
{
|
{
|
||||||
this.authenticationService = authenticationService;
|
this.personService = personService;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -129,10 +129,8 @@ public class RecordsManagementJob implements Job
|
|||||||
if (jobExecuter instanceof DispositionLifecycleJobExecuter)
|
if (jobExecuter instanceof DispositionLifecycleJobExecuter)
|
||||||
{
|
{
|
||||||
String auditUser = (String) context.getJobDetail().getJobDataMap().get("runAuditAs");
|
String auditUser = (String) context.getJobDetail().getJobDataMap().get("runAuditAs");
|
||||||
if (((DispositionLifecycleJobExecuter) jobExecuter).getAuthenticationService()
|
if (((DispositionLifecycleJobExecuter) jobExecuter).getPersonService().getPersonOrNull(auditUser) != null)
|
||||||
.authenticationExists(auditUser))
|
|
||||||
{
|
{
|
||||||
|
|
||||||
setRunAuditAs(auditUser);
|
setRunAuditAs(auditUser);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user