Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)

59048: ALF-13291 - Transfer target is still displayed in replication job despite of target was deleted
      build fix.   fix incomplete.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62081 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2014-02-12 00:48:56 +00:00
parent d6d16285d9
commit 122952e3f3
3 changed files with 22 additions and 6 deletions

View File

@@ -96,22 +96,20 @@ public class ReplicationServiceImpl implements ReplicationService, ReplicationDe
* org.alfresco.service.cmr.replication.ReplicationService#loadReplicationDefinition
* (org.alfresco.service.namespace.QName)
*/
public ReplicationDefinition loadReplicationDefinition(String replicationDefinitionName) {
@SuppressWarnings("deprecation")
public ReplicationDefinition loadReplicationDefinition(String replicationDefinitionName) {
ReplicationDefinitionImpl rd = (ReplicationDefinitionImpl)
replicationDefinitionPersister.loadReplicationDefinition(replicationDefinitionName);
if(rd != null)
{
// check here whether the target still exists and blank if not
// TODO we should rework relationship between action and target
String targetName = rd.getTargetName();
if(targetName != null)
{
if(!getTransferService().targetExists(targetName))
{
rd.setTargetName(null);
}
// Decorate RD with targetExists
rd.setTargetExists(getTransferService().targetExists(targetName));
}
rd.setSchedule(