mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
TransferService:
No-Op implementation of script transfer service. TransferService interface rework for createTransferTarget git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19163 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -139,7 +139,14 @@ public class TransferTargetImpl implements TransferTarget
|
||||
return false;
|
||||
}
|
||||
TransferTargetImpl that = (TransferTargetImpl) obj;
|
||||
return (this.getNodeRef().equals(that.getNodeRef()));
|
||||
if(this.getNodeRef() == null)
|
||||
{
|
||||
return (this.getName().equals(that.getName()));
|
||||
}
|
||||
else
|
||||
{
|
||||
return (this.getNodeRef().equals(that.getNodeRef()));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -148,6 +155,10 @@ public class TransferTargetImpl implements TransferTarget
|
||||
*/
|
||||
public int hashCode()
|
||||
{
|
||||
if(nodeRef == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return getNodeRef().hashCode();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user