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

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


                                                                               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 sessionId,
                                                 final String commitMessage ) {
        final String name = identity.getName();
        final Date when = new Date();
        final CommentedOption co = new CommentedOption( sessionId,
                                                        name,
                                                        null,
                                                        commitMessage,
                                                        when );
        return co;
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

    }

    protected 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

    }

    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

                                                         targetName,
                                                         targetURI );

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

            resourceCopiedEvent.fire( new ResourceCopiedEvent( path,
                                                               targetPath,
                                                               sessionInfo ) );
View Full Code Here

                        final String comment ) {
        try {
            System.out.println( "USER:" + identity.getName() + " DELETING asset [" + path.getFileName() + "]" );

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

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

            final String extension = originalFileName.substring( originalFileName.indexOf( "." ) );
            final org.uberfire.java.nio.file.Path _target = _path.resolveSibling( newName + extension );

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

            return Paths.convert( _target );

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

        try {
            final org.uberfire.java.nio.file.Path path = Paths.convert( _path );

            final org.uberfire.java.nio.file.Path target = path.getFileSystem().getPath( path.toString() );

            return Paths.convert( ioService.copy( path, target, REPLACE_EXISTING, new CommentedOption( sessionInfo.getId(), identity.getName(), null, comment ) ) );

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

     * @return
     */
    public 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

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.