mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added the notion of a ContentContext to select the content store to write to.
Added AbstractRoutingContentStore as a start base implementation. Added warnings to drive config away from disused setTransactionService towards setRetryingTransactionHelper. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5734 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -28,6 +28,7 @@ import junit.framework.TestCase;
|
||||
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.repo.content.AbstractContentStore;
|
||||
import org.alfresco.repo.content.ContentContext;
|
||||
import org.alfresco.repo.content.ContentStore;
|
||||
import org.alfresco.repo.node.db.NodeDaoService;
|
||||
import org.alfresco.repo.search.Indexer;
|
||||
@@ -148,7 +149,8 @@ public class MissingContentReindexComponentTest extends TestCase
|
||||
}
|
||||
|
||||
// now put some content in the store
|
||||
ContentWriter writer = contentStore.getWriter(null, contentUrl);
|
||||
ContentContext ctx = new ContentContext(null, contentUrl);
|
||||
ContentWriter writer = contentStore.getWriter(ctx);
|
||||
writer.setMimetype("text/plain");
|
||||
writer.setEncoding("UTF8");
|
||||
writer.putContent("123abc456def");
|
||||
|
Reference in New Issue
Block a user