Examples of MutableRepository


Examples of atg.repository.MutableRepository

     * environment variable. (ex: DYNAMO_HOME=/home/user/ATG/ATG9.0/home)
     */
    @Test
    public void testResolveComponentWithNucleus() {
        assertNotNull(mNucleus);
        MutableRepository catalog = (MutableRepository) mNucleus.resolveName(
                "/atg/deployment/DeploymentRepository"
        );
        assertNotNull("DeploymentRepository should not be null.", catalog);
        MutableRepository profile = (MutableRepository) mNucleus.resolveName(
                "/atg/userprofiling/ProfileAdapterRepository"
        );
        // Good enough for this test.
        // Don't want to disturb any data that might be in this repository.
    }
View Full Code Here

Examples of atg.repository.MutableRepository

        // Start Nucleus
        Nucleus n = startNucleus(configpath);

        TransactionDemarcation td = new TransactionDemarcation();
        MutableRepository r = (MutableRepository) n.resolveName("/SimpleRepository");

        try {
            // Start a new transaction
            td.begin(((GSARepository) r).getTransactionManager());
            // Create the item
            MutableRepositoryItem item = r.createItem("simpleItem");
            item.setPropertyValue("name", "simpleName");
            // Persist to the repository
            r.addItem(item);
            // Try to get it back from the repository
            String id = item.getRepositoryId();
            RepositoryItem item2 = r.getItem(id, "simpleItem");
            assertNotNull(
                    " We did not get back the item just created from the repository.", item2
            );
            rollback = false;
        } finally {
View Full Code Here

Examples of atg.repository.MutableRepository

     * @throws Exception
     */
    @Test
    public void testProfileFormHandler()
            throws Exception {
        MutableRepository par = (MutableRepository) nucleus.resolveName(
                PROFILE_ADAPTER_REPOSITORY_PATH
        );
        assertNotNull(par);
    }
View Full Code Here

Examples of atg.repository.MutableRepository

        DynamoHttpServletRequest request = servletTestUtils.createDynamoHttpServletRequestForSession(
                nucleus, "mySessionId", "new"
        );
        previousRequest = setCurrentRequest(request);
        MutableRepository par = (MutableRepository) nucleus.resolveName(
                PROFILE_ADAPTER_REPOSITORY_PATH
        );
        assertNotNull(par);

        assertNotNull(
View Full Code Here

Examples of org.jboss.profileservice.spi.repository.MutableRepository

/*     */
/*     */   public Collection<ModificationInfo> getModifiedDeployments() throws Exception
/*     */   {
/* 322 */     ArrayList modified = new ArrayList();
/* 323 */     URI appURI = getApplicationURI();
/* 324 */     MutableRepository repo = getRepository(appURI);
/* 325 */     Collection resources = repo.getModifiedResources();
/* 326 */     boolean trace = log.isTraceEnabled();
/* 327 */     if (trace)
/* 328 */       log.trace("Checking applications for modifications");
/* 329 */     if (resources != null)
/*     */     {
View Full Code Here

Examples of org.jboss.profileservice.spi.repository.MutableRepository

/*     */     throws Exception
/*     */   {
/* 429 */     Repository repo = this.delegate.getRepository(uri);
/* 430 */     if (!(repo instanceof MutableRepository))
/* 431 */       throw new IllegalStateException("Repository does not support MutableRepository");
/* 432 */     MutableRepository mrepo = (MutableRepository)repo;
/* 433 */     return mrepo;
/*     */   }
View Full Code Here

Examples of org.jboss.profileservice.spi.repository.MutableRepository

/*     */     }
/*     */   }
/*     */
/*     */   protected VFSDeployment removeDeployment(String name, URI uri) throws Exception
/*     */   {
/* 503 */     MutableRepository mrepo = getRepository(uri);
/* 504 */     Resource res = mrepo.removeResource(name);
/* 505 */     VFSDeploymentResource vfsres = (VFSDeploymentResource)res;
/* 506 */     VFSDeployment deployment = (VFSDeployment)vfsres.getProperties().get("deployment");
/* 507 */     return deployment;
/*     */   }
View Full Code Here

Examples of org.jboss.profileservice.spi.repository.MutableRepository

/*     */   private ProfileKey key;
/*     */
/*     */   public void addDeployment(String vfsPath, VFSDeployment d, ManagedDeployment.DeploymentPhase phase)
/*     */     throws Exception
/*     */   {
/*  83 */     MutableRepository mrepo = getRepository(d.getRoot().toURI());
/*  84 */     VFSDeploymentResource dres = new VFSDeploymentResource(d, phase, mrepo);
/*  85 */     mrepo.addResource(dres);
/*     */   }
View Full Code Here

Examples of org.jboss.profileservice.spi.repository.MutableRepository

/*  92 */     throw new IOException("Not yet implemented");
/*     */   }
/*     */
/*     */   public void addManagedObject(String vfsPath, Attachments edits) throws Exception
/*     */   {
/*  97 */     MutableRepository repo = getRepository(this.adminEditsRoot.toURI());
/*  98 */     AttachmentsResource attachments = new AttachmentsResource(vfsPath, edits, repo);
/*  99 */     repo.addResource(attachments);
/*     */   }
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.