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:
Mark Rogers
2010-03-09 16:26:47 +00:00
parent 1c48dad589
commit ad5e708830
10 changed files with 286 additions and 54 deletions

View File

@@ -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();
}