Examples of DocumentDAO


Examples of org.zanata.dao.DocumentDAO

        when(identity.getCredentials()).thenReturn(credentials);
        when(credentials.getUsername()).thenReturn("mock user");

        projectIterationDAO = new ProjectIterationDAO(getSession());
        documentDAO = new DocumentDAO(getSession());
        textFlowTargetDAO = new TextFlowTargetDAO(getSession());
        textFlowDAO = new TextFlowDAO(getSession());
        rawDocumentDAO = new RawDocumentDAO((getSession()));

        service = seam.reset()
View Full Code Here

Examples of org.zanata.dao.DocumentDAO

    @BeforeMethod
    public void initializeSeam() {
        seam.reset().use("activityDAO", new ActivityDAO(getSession()))
                .use("textFlowTargetDAO", new TextFlowTargetDAO(getSession()))
                .use("documentDAO", new DocumentDAO(getSession()))
                .use("session", getSession()).ignoreNonResolvable();

        activityService = seam.autowire(ActivityServiceImpl.class);
    }
View Full Code Here

Examples of org.zanata.dao.DocumentDAO

    public void beforeMethod() {
        MockitoAnnotations.initMocks(this);
        // @formatter:off
        seam.reset()
            .use("localeServiceImpl", localeService)
            .use("documentDAO", new DocumentDAO(getSession()))
            .use("projectIterationDAO", new ProjectIterationDAO(getSession()))
            .use("entityManager", new FullTextEntityManagerImpl(getEm()))
            .use("session", new FullTextSessionImpl(getSession()));
        // @formatter:on
        jaHLocale = getEm().find(HLocale.class, 3L);
View Full Code Here

Examples of org.zanata.dao.DocumentDAO

        TransUnitTransformer transUnitTransformer =
            seam.reset().use("resourceUtils", resourceUtils)
                .autowire(TransUnitTransformer.class);

            seam.use("localeServiceImpl", localeService)
                        .use("documentDAO", new DocumentDAO(getSession()))
                        .use("projectIterationDAO",
                                new ProjectIterationDAO(getSession()))
                        .use("entityManager",
                                new FullTextEntityManagerImpl(getEm()))
                        .use("session", new FullTextSessionImpl(getSession()))
View Full Code Here

Examples of org.zanata.dao.DocumentDAO

            return ServiceLocator.instance().getInstance(DocumentDAO.class);
        }

        @Override
        public DocumentStatus load(DocumentLocaleKey key) throws Exception {
            DocumentDAO documentDAO = getDocumentDAO();
            HTextFlowTarget target =
                    documentDAO.getLastTranslatedTarget(key.getDocumentId(),
                            key.getLocaleId());
            DocumentStatus documentStatus = new DocumentStatus();

            return updateDocumentStatus(documentDAO, documentStatus,
                    key.getDocumentId(), target);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.