Examples of createFolder()


Examples of org.apache.jackrabbit.core.fs.FileSystem.createFolder()

            // rather than in physical workspace root directory on disk
            try {
                FileSystem fs = fsf.getFileSystem();
                try {
                    if (!fs.exists(workspaceConfigDirectory)) {
                        fs.createFolder(workspaceConfigDirectory);
                    } else {
                        String[] dirNames = fs.listFolders(workspaceConfigDirectory);
                        for (String dir : dirNames) {
                            String configDir = workspaceConfigDirectory
                            + FileSystem.SEPARATOR + dir;
View Full Code Here

Examples of org.apache.jackrabbit.core.fs.mem.MemoryFileSystem.createFolder()

    private FileSystem createFileSystem() {
        FileSystem fs = new MemoryFileSystem();
        BufferedWriter writer = null;       
        try {
            fs.createFolder("/");
            FileSystemResource file = new FileSystemResource(fs, "/retention");

            writer = new BufferedWriter(new OutputStreamWriter(file.getOutputStream()));
            writer.write(((NodeImpl) childN).getNodeId().toString());
        } catch (FileSystemException e) {
View Full Code Here

Examples of org.eclipse.egit.core.test.TestProject.createFolder()

  @Test
  public void testResourceCompare() throws Exception {
    // we just want to test that we can call the JFace resource name
    // comparator which itself is tested by JFace
    TestProject p = new TestProject();
    p.createFolder("test");
    IFile f1 = p.createFile("test/z.txt", "z".getBytes("UTF-8"));
    IFile f2 = p.createFile("test/d.txt", "d".getBytes("UTF-8"));
    IFile f3 = p.createFile("test/a.txt", "a".getBytes("UTF-8"));
    List<IResource> expected = Arrays
        .asList(new IResource[] { f3, f2,
View Full Code Here

Examples of org.jboss.test.security.interfaces.ProjRepository.createFolder()

         Name projName = parser.parse(name);
         // This requires the ProjectAdmin role
         ProjRepository bean = home.create(projName);
         // This requires CreateFolder role
         Name programs = parser.parse("/Programs Files");
         bean.createFolder(programs);
         // This requires DeleteFolder role
         bean.deleteFolder(programs, true);
         sendReply(replyTo, "Role tests ok");
         // cannot remove because of JBAS-3946
         // bean.remove();
View Full Code Here

Examples of org.openide.filesystems.FileObject.createFolder()

     */
    @Test
    public void testValidateDirectory() throws IOException {
        FileSystem fileSystem = FileUtil.createMemoryFileSystem();
        FileObject sourceDirectory = fileSystem.getRoot();
        sourceDirectory.createFolder("myfolder");
        sourceDirectory.createData("test.php");

        // existing directory
        YiiCustomizerValidator validator = new YiiCustomizerValidator()
                .validateDirectory(sourceDirectory, "myfolder");
View Full Code Here

Examples of org.pentaho.platform.api.repository2.unified.IUnifiedRepository.createFolder()

    adapter = new DatasourceMgmtToWebServiceAdapter( datasourceMgmtWS );
    SecurityContextHolder.getContext()
        .setAuthentication(
            new UsernamePasswordAuthenticationToken( MockUnifiedRepository.root().getName(), null,
                new GrantedAuthority[0] ) );
    repository.createFolder( repository.getFile( "/etc" ).getId(), new RepositoryFile.Builder( FOLDER_PDI ).folder(
        true ).build(), new RepositoryFileAcl.Builder( MockUnifiedRepository.root() ).ace(
          MockUnifiedRepository.everyone(), READ, WRITE ).build(), null );
    repository.createFolder( repository.getFile( "/etc/pdi" ).getId(), new RepositoryFile.Builder( FOLDER_DATABASES )
        .folder( true ).build(), null );
    SecurityContextHolder.getContext().setAuthentication(
View Full Code Here

Examples of org.pentaho.test.platform.repository2.unified.MockUnifiedRepository.createFolder()

    adapter = new DatasourceMgmtToWebServiceAdapter( datasourceMgmtWS );
    SecurityContextHolder.getContext()
        .setAuthentication(
            new UsernamePasswordAuthenticationToken( MockUnifiedRepository.root().getName(), null,
                new GrantedAuthority[0] ) );
    repository.createFolder( repository.getFile( "/etc" ).getId(), new RepositoryFile.Builder( FOLDER_PDI ).folder(
        true ).build(), new RepositoryFileAcl.Builder( MockUnifiedRepository.root() ).ace(
          MockUnifiedRepository.everyone(), READ, WRITE ).build(), null );
    repository.createFolder( repository.getFile( "/etc/pdi" ).getId(), new RepositoryFile.Builder( FOLDER_DATABASES )
        .folder( true ).build(), null );
    SecurityContextHolder.getContext().setAuthentication(
View Full Code Here

Examples of org.rssowl.core.persist.IModelFactory.createFolder()

    /* Get the parent Folder */
    IFolder parent = fPage.getFolder();

    /* Create the Folder */
    IFolder folder = factory.createFolder(null, parent, name);

    /* Copy all Properties from Parent into this Mark */
    if (parent != null) {
      Map<String, Serializable> properties = parent.getProperties();
      for (Map.Entry<String, Serializable> property : properties.entrySet())
View Full Code Here

Examples of org.rssowl.core.persist.IModelFactory.createFolder()

  public void testNormalize() throws Exception {
    CoreUtils.normalize(null);
    CoreUtils.normalize(Collections.EMPTY_LIST);

    IModelFactory factory = Owl.getModelFactory();
    IFolder root = factory.createFolder(null, null, "Root");
    IFolder folder1 = factory.createFolder(null, root, "Folder 1");
    IFolder folder2 = factory.createFolder(null, root, "Folder 2");
    IFolder folder3 = factory.createFolder(null, folder2, "Folder 3");
    IBookMark mark1 = factory.createBookMark(null, root, new FeedLinkReference(new URI("#")), "Mark 1");
    IBookMark mark2 = factory.createBookMark(null, folder1, new FeedLinkReference(new URI("#")), "Mark 2");
View Full Code Here

Examples of org.rssowl.core.persist.IModelFactory.createFolder()

    CoreUtils.normalize(null);
    CoreUtils.normalize(Collections.EMPTY_LIST);

    IModelFactory factory = Owl.getModelFactory();
    IFolder root = factory.createFolder(null, null, "Root");
    IFolder folder1 = factory.createFolder(null, root, "Folder 1");
    IFolder folder2 = factory.createFolder(null, root, "Folder 2");
    IFolder folder3 = factory.createFolder(null, folder2, "Folder 3");
    IBookMark mark1 = factory.createBookMark(null, root, new FeedLinkReference(new URI("#")), "Mark 1");
    IBookMark mark2 = factory.createBookMark(null, folder1, new FeedLinkReference(new URI("#")), "Mark 2");
    IBookMark mark3 = factory.createBookMark(null, folder2, new FeedLinkReference(new URI("#")), "Mark 3");
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.