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:
@@ -47,7 +47,7 @@ class PlainFileNodeImpl extends FileNodeImpl implements PlainFileNode
|
||||
public PlainFileNodeImpl(Repository repos)
|
||||
{
|
||||
super(repos.getSuperRepository().issueID(), repos);
|
||||
fContent = new FileContentImpl(repos.getSuperRepository());
|
||||
fContent = new FileContentImpl(SuperRepository.GetInstance().issueContentID());
|
||||
repos.getSuperRepository().getSession().save(this);
|
||||
}
|
||||
|
||||
@@ -114,13 +114,12 @@ class PlainFileNodeImpl extends FileNodeImpl implements PlainFileNode
|
||||
|
||||
/**
|
||||
* Get content for writing.
|
||||
* @param repo The Repository.
|
||||
*/
|
||||
public FileContent getContentForWrite(Repository repo)
|
||||
public FileContent getContentForWrite()
|
||||
{
|
||||
if (fContent.getRefCount() > 1)
|
||||
{
|
||||
fContent = new FileContentImpl(fContent, repo.getSuperRepository());
|
||||
fContent = new FileContentImpl(fContent, SuperRepository.GetInstance().issueContentID());
|
||||
}
|
||||
return fContent;
|
||||
}
|
||||
@@ -157,8 +156,7 @@ class PlainFileNodeImpl extends FileNodeImpl implements PlainFileNode
|
||||
null,
|
||||
false,
|
||||
-1,
|
||||
getContentForRead()
|
||||
.getLength(lPath.getRepository().getSuperRepository()));
|
||||
getContentForRead().getLength());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -185,8 +183,7 @@ class PlainFileNodeImpl extends FileNodeImpl implements PlainFileNode
|
||||
null,
|
||||
false,
|
||||
-1,
|
||||
getContentForRead()
|
||||
.getLength(getRepository().getSuperRepository()));
|
||||
getContentForRead().getLength());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user