Package org.uberfire.java.nio.base.options

Examples of org.uberfire.java.nio.base.options.CommentedOption


            try {
                ioService.startBatch();

                ioService.copy( Paths.convert( path ),
                                Paths.convert( targetPath ),
                                new CommentedOption( getSessionInfo().getId(), identity.getName(), null, comment ) );

                //Delegate additional changes required for a copy to applicable Helpers
                for ( CopyHelper helper : helpers ) {
                    if ( helper.supports( targetPath ) ) {
                        helper.postProcess( path,
View Full Code Here


                        final String comment ) {
        try {
            LOGGER.info( "User:" + identity.getName() + " deleting file [" + path.getFileName() + "]" );

            ioService.delete( Paths.convert( path ),
                              new CommentedOption( getSessionInfo().getId(), identity.getName(), null, comment ) );

        } catch ( final Exception e ) {
            throw ExceptionUtilities.handleException( e );
        }
    }
View Full Code Here

            try {
                ioService.startBatch();

                ioService.move( _path,
                                _target,
                                new CommentedOption( getSessionInfo().getId(),
                                                     identity.getName(),
                                                     null,
                                                     comment ) );

                //Delegate additional changes required for a rename to applicable Helpers
View Full Code Here

    }

    private CommentedOption makeCommentedOption( final String commitMessage ) {
        final String name = identity.getName();
        final Date when = new Date();
        return new CommentedOption( getSessionInfo().getId(),
                name,
                null,
                commitMessage,
                when );
    }
View Full Code Here

        String content = jcrAssetItem.getContent();

        String sourceContentWithPackage = packageImportHelper.assertPackageNameXML( content, path );
        sourceContentWithPackage = packageImportHelper.assertPackageImportXML( sourceContentWithPackage, path );

        ioService.write( nioPath, sourceContentWithPackage, migrateMetaData(jcrModule, jcrAssetItem), new CommentedOption( jcrAssetItem.getLastContributor(), null, jcrAssetItem.getCheckinComment(), jcrAssetItem.getLastModified().getTime() ) );
       
        return path;
    }
View Full Code Here

    }

    private CommentedOption makeCommentedOption( final String commitMessage ) {
        final String name = identity.getName();
        final Date when = new Date();
        return new CommentedOption( sessionInfo.getId(),
                                    name,
                                    null,
                                    commitMessage,
                                    when );
    }
View Full Code Here

    }

    private CommentedOption makeCommentedOption( final String commitMessage ) {
        final String name = identity.getName();
        final Date when = new Date();
        final CommentedOption co = new CommentedOption( sessionInfo.getId(),
                                                        name,
                                                        null,
                                                        commitMessage,
                                                        when );
        return co;
View Full Code Here

    }

    private CommentedOption makeCommentedOption( final String commitMessage ) {
        final String name = getIdentityName();
        final Date when = new Date();
        final CommentedOption co = new CommentedOption( getSessionId(),
                                                        name,
                                                        null,
                                                        commitMessage,
                                                        when );
        return co;
View Full Code Here

                        final String comment ) {
        try {
            final org.uberfire.java.nio.file.Path projectDirectory = Paths.convert( pathToPomXML ).getParent();
            final Project project2Delete = resolveProject( Paths.convert( projectDirectory ) );

            ioService.delete( projectDirectory, StandardDeleteOption.NON_EMPTY_DIRECTORIES, new CommentedOption( getSessionId(), getIdentityName(), null, comment ) );
            deleteProjectEvent.fire( new DeleteProjectEvent( project2Delete ) );
        } catch ( final Exception e ) {
            throw ExceptionUtilities.handleException( e );
        }
    }
View Full Code Here

            try {
                ioService.startBatch( new FileSystem[]{_target.getFileSystem()} );

                ioService.copy( Paths.convert( path ),
                                Paths.convert( targetPath ),
                                new CommentedOption( getSessionInfo().getId(), identity.getName(), null, comment ) );

                //Delegate additional changes required for a copy to applicable Helpers
                for ( CopyHelper helper : helpers ) {
                    if ( helper.supports( targetPath ) ) {
                        helper.postProcess( path,
View Full Code Here

TOP

Related Classes of org.uberfire.java.nio.base.options.CommentedOption

Copyright © 2018 www.massapicom. 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.