mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Purged some useless passing of SuperRepositories as parameters.
Yet another concurrency test. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3155 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -224,7 +224,7 @@ class RepositoryImpl implements Repository, Serializable
|
||||
PlainFileNodeImpl file = new PlainFileNodeImpl(this);
|
||||
file.setVersionID(getNextVersionID());
|
||||
dir.addChild(name, file, lPath);
|
||||
return file.getContentForWrite(this).getOutputStream(fSuper);
|
||||
return file.getContentForWrite().getOutputStream();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -266,7 +266,7 @@ class RepositoryImpl implements Repository, Serializable
|
||||
}
|
||||
FileNode file = (FileNode)node;
|
||||
FileContent content = file.getContentForRead();
|
||||
return content.getInputStream(fSuper);
|
||||
return content.getInputStream();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -309,8 +309,8 @@ class RepositoryImpl implements Repository, Serializable
|
||||
}
|
||||
FileNode file = (FileNode)node;
|
||||
file = (FileNode)file.copyOnWrite(lPath);
|
||||
FileContent content = file.getContentForWrite(this);
|
||||
return content.getOutputStream(fSuper); // TODO Do we really need fSuper?
|
||||
FileContent content = file.getContentForWrite();
|
||||
return content.getOutputStream(); // TODO Do we really need fSuper?
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -343,13 +343,13 @@ class RepositoryImpl implements Repository, Serializable
|
||||
if (write)
|
||||
{
|
||||
file = (FileNode)file.copyOnWrite(lPath);
|
||||
content = file.getContentForWrite(this);
|
||||
content = file.getContentForWrite();
|
||||
}
|
||||
else
|
||||
{
|
||||
content = file.getContentForRead();
|
||||
}
|
||||
return content.getRandomAccess(fSuper, access);
|
||||
return content.getRandomAccess(access);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user