Examples of TenantId


Examples of com.saasovation.agilepm.domain.model.tenant.TenantId

        savedTeams = teamRepository.allTeamsOfTenant(tenantId);
        assertTrue(savedTeams.isEmpty());
    }

    public void testSaveAllRemoveAll() throws Exception {
        Team team1 = new Team(new TenantId("12345"), "team1");

        Team team2 = new Team(new TenantId("12345"), "team2");

        Team team3 = new Team(new TenantId("12345"), "team3");

        LevelDBUnitOfWork.start(this.database);
        teamRepository.saveAll(Arrays.asList(new Team[] { team1, team2, team3 }));
        LevelDBUnitOfWork.current().commit();

        TenantId tenantId = team1.tenantId();

        Collection<Team> savedTeams = teamRepository.allTeamsOfTenant(tenantId);
        assertFalse(savedTeams.isEmpty());
        assertEquals(3, savedTeams.size());
View Full Code Here

Examples of com.saasovation.agilepm.domain.model.tenant.TenantId

    }

    public void testConcurrentTransactions() throws Exception {
        final List<Integer> orderOfCommits = new ArrayList<Integer>();

        Team team1 = new Team(new TenantId("12345"), "team1");

        LevelDBUnitOfWork.start(database);
        teamRepository.save(team1);

        new Thread() {
           @Override
           public void run() {
               Team team2 = new Team(new TenantId("12345"), "team2");

               LevelDBUnitOfWork.start(database);
               teamRepository.save(team2);
               LevelDBUnitOfWork.current().commit();
               orderOfCommits.add(2);
View Full Code Here

Examples of com.saasovation.agilepm.domain.model.tenant.TenantId

        this.productOwnerRepository = aProductOwnerRepository;
        this.teamMemberRepository = aTeamMemberRepository;
    }

    public void enableProductOwner(EnableProductOwnerCommand aCommand) {
        TenantId tenantId = new TenantId(aCommand.getTenantId());

        ApplicationServiceLifeCycle.begin();

        try {
            ProductOwner productOwner =
View Full Code Here

Examples of com.saasovation.agilepm.domain.model.tenant.TenantId

            ApplicationServiceLifeCycle.fail(e);
        }
    }

    public void enableTeamMember(EnableTeamMemberCommand aCommand) {
        TenantId tenantId = new TenantId(aCommand.getTenantId());

        ApplicationServiceLifeCycle.begin();

        try {
            TeamMember teamMember =
View Full Code Here

Examples of com.saasovation.agilepm.domain.model.tenant.TenantId

            ApplicationServiceLifeCycle.fail(e);
        }
    }

    public void changeTeamMemberEmailAddress(ChangeTeamMemberEmailAddressCommand aCommand) {
        TenantId tenantId = new TenantId(aCommand.getTenantId());

        ApplicationServiceLifeCycle.begin();

        try {
            ProductOwner productOwner =
View Full Code Here

Examples of com.saasovation.agilepm.domain.model.tenant.TenantId

            ApplicationServiceLifeCycle.fail(e);
        }
    }

    public void changeTeamMemberName(ChangeTeamMemberNameCommand aCommand) {
        TenantId tenantId = new TenantId(aCommand.getTenantId());

        ApplicationServiceLifeCycle.begin();

        try {
            ProductOwner productOwner =
View Full Code Here

Examples of com.saasovation.agilepm.domain.model.tenant.TenantId

            ApplicationServiceLifeCycle.fail(e);
        }
    }

    public void disableProductOwner(DisableProductOwnerCommand aCommand) {
        TenantId tenantId = new TenantId(aCommand.getTenantId());

        ApplicationServiceLifeCycle.begin();

        try {
            ProductOwner productOwner =
View Full Code Here

Examples of com.saasovation.agilepm.domain.model.tenant.TenantId

            ApplicationServiceLifeCycle.fail(e);
        }
    }

    public void disableTeamMember(DisableTeamMemberCommand aCommand) {
        TenantId tenantId = new TenantId(aCommand.getTenantId());

        ApplicationServiceLifeCycle.begin();

        try {
            TeamMember teamMember =
View Full Code Here

Examples of com.saasovation.agilepm.domain.model.tenant.TenantId

        try {
            Product product =
                    this.productRepository()
                        .productOfId(
                                new TenantId(aCommand.getTenantId()),
                                new ProductId(aCommand.getProductId()));

            if (product == null) {
                throw new IllegalStateException(
                        "Unknown product of tenant id: "
View Full Code Here

Examples of com.saasovation.agilepm.domain.model.tenant.TenantId

    public void requestProductDiscussion(RequestProductDiscussionCommand aCommand) {
        Product product =
                this.productRepository()
                    .productOfId(
                            new TenantId(aCommand.getTenantId()),
                            new ProductId(aCommand.getProductId()));

        if (product == null) {
            throw new IllegalStateException(
                    "Unknown product of tenant id: "
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.