Examples of archive()


Examples of org.olat.collaboration.CollaborationTools.archive()

    if(info!=null && !info.trim().equals("")) {
      newGroup.addAttribute(EXPORT_KEY_NEWS,info.trim());     
    }   
   
    Tracing.logDebug("fExportFile.getParent()=" + fExportFile.getParent(), this.getClass());
    ct.archive(fExportFile.getParent());
    // export membership
    List bgAreas = BGAreaManagerImpl.getInstance().findBGAreasOfBusinessGroup(group);
    for (Iterator iterator = bgAreas.iterator(); iterator.hasNext();) {
      BGArea areaRelation = (BGArea) iterator.next();
      MutableConfiguration newGroupAreaRel = newGroup.addChild(EXPORT_KEY_AREA_RELATION);
View Full Code Here

Examples of org.olat.repository.handlers.RepositoryHandler.archive()

      RepositoryHandler repositoryHandler = RepositoryHandlerFactory.getInstance().getRepositoryHandler(repositoryEntry);
      File archiveDir = new File(getArchivFilePath());
      if (!archiveDir.exists()) {
        archiveDir.mkdirs();
      }
      String archiveFileName = repositoryHandler.archive(ureq.getIdentity(), getArchivFilePath(), repositoryEntry);
      Tracing.logAudit("Repository-Deletion: archived repositoryEntry=" + repositoryEntry + " , archive-file-name=" + archiveFileName, this.getClass());
      RepositoryManager.getInstance().deleteRepositoryEntryWithAllData( ureq, wControl, repositoryEntry );
      LifeCycleManager.createInstanceFor(repositoryEntry).deleteTimestampFor(SEND_DELETE_EMAIL_ACTION);
      LifeCycleManager.createInstanceFor(repositoryEntry).markTimestampFor(REPOSITORY_DELETED_ACTION, createLifeCycleLogDataFor(repositoryEntry));
      Tracing.logAudit("Repository-Deletion: deleted repositoryEntry=" + repositoryEntry, this.getClass());
View Full Code Here

Examples of org.pentaho.cdf.comments.CommentsEngine.archive()

              .valueOf( params.getStringParameter( Parameter.VALUE, "true" ) ), userSession.getName(),
              isAdministrator );
          break;
        case ARCHIVE:
          result =
            engine.archive( Integer.parseInt( params.getStringParameter( Parameter.COMMENT_ID, "-1" ) ), Boolean
              .valueOf( params.getStringParameter( Parameter.VALUE, "true" ) ), userSession.getName(),
              isAdministrator );
          break;
        case LIST:
          result =
View Full Code Here

Examples of org.richfaces.deployment.CoreDeployment.archive()

    @Deployment(testable = false)
    public static WebArchive deployment() {
        CoreDeployment deployment = new CoreDeployment(ITAjaxSubmissionCallbacks.class);
        deployment.withA4jComponents();
       
        deployment.archive().addAsWebResource(buildPage(true, true), "documentAndFormScoped.xhtml");
        deployment.archive().addAsWebResource(buildPage(true, false), "formScoped.xhtml");
        deployment.archive().addAsWebResource(buildPage(false, true), "documentScoped.xhtml");

        return deployment.getFinalArchive();
    }
View Full Code Here

Examples of org.richfaces.integration.A4JDeployment.archive()

    @Deployment
    public static WebArchive deployment() {
        A4JDeployment deployment = new A4JDeployment(ITNestedRepeat.class);

        deployment.archive()
            .addClasses(NestedDataBean.class)
            .addAsWebResource(ITNestedRepeat.class.getResource("NestedRepeatTest.xhtml"), "NestedRepeatTest.xhtml")
            .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");

        return deployment.getFinalArchive();
View Full Code Here

Examples of org.richfaces.integration.A4JDeployment.archive()

    @Deployment
    public static WebArchive deployment() {
        A4JDeployment deployment = new A4JDeployment(ITCollectionModel.class);

        deployment.archive()
            .addClasses(CollectionModelBean.class)
            .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");

        addIndexPage(deployment);
View Full Code Here

Examples of org.richfaces.integration.A4JDeployment.archive()

    private URL contextPath;

    @Deployment(testable = false)
    public static WebArchive createDeployment() {
        A4JDeployment deployment = new A4JDeployment(ITAjax.class);
        deployment.archive().addClass(AjaxBean.class);
        addIndexPage(deployment);
        deployment.archive().addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");

        return deployment.getFinalArchive();
    }
View Full Code Here

Examples of org.richfaces.integration.A4JDeployment.archive()

    @Deployment(testable = false)
    public static WebArchive createDeployment() {
        A4JDeployment deployment = new A4JDeployment(ITAjax.class);
        deployment.archive().addClass(AjaxBean.class);
        addIndexPage(deployment);
        deployment.archive().addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");

        return deployment.getFinalArchive();
    }

    @Test
View Full Code Here

Examples of org.richfaces.integration.A4JDeployment.archive()

    private static final String EXPETED_ROOT_CONTEXT_PATH = ITCommandButtonImage.class.getSimpleName();

    @Deployment(testable = false)
    public static WebArchive createDeployment() {
        A4JDeployment deployment = new A4JDeployment(ITCommandButtonImage.class);
        deployment.archive().addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
            .addAsWebResource(new File("src/test/resources/images/square.jpg"), "resources/square.jpg");
        addIndexPage(deployment);

        return deployment.getFinalArchive();
    }
View Full Code Here

Examples of org.richfaces.integration.A4JDeployment.archive()

    @Deployment(testable = false)
    public static WebArchive createDeployment() {
        A4JDeployment deployment = new A4JDeployment(ITJsfAjaxScriptRendering.class);

        addIndexPage(deployment);
        deployment.archive().addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");

        return deployment.getFinalArchive();
    }

    @Test
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.