Package org.guvnor.common.services.project.events

Examples of org.guvnor.common.services.project.events.DeleteProjectEvent


            if ( ioService.exists( parentPom ) ) {
                parent = pomService.load( Paths.convert( parentPom ) );
            }

            ioService.delete( projectDirectory, StandardDeleteOption.NON_EMPTY_DIRECTORIES, optionsFactory.makeCommentedOption( comment, identity, sessionInfo ) );
            deleteProjectEvent.fire( new DeleteProjectEvent( project2Delete ) );

            if ( parent != null ) {
                parent.setMultiModule( true );
                parent.getModules().remove( project2Delete.getProjectName() );
                pomService.save( Paths.convert( parentPom), parent, null, "Removing child module " + project2Delete.getProjectName() );
View Full Code Here


    }

    private void fireDeleteEvent( final org.uberfire.backend.vfs.Path _path ) {
        final Path path = ioService.get( URI.create( _path.toURI() ) );
        final Project project = projectFactory.simpleProjectInstance( path.getParent() );
        deleteProjectEvent.fire( new DeleteProjectEvent( project ) );
    }
View Full Code Here

        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( sessionInfo.getId(), identity.getName(), null, comment ) );
            deleteProjectEvent.fire( new DeleteProjectEvent( project2Delete ) );
        } catch ( final Exception e ) {
            throw ExceptionUtilities.handleException( e );
        }
    }
View Full Code Here

    }

    private void fireDeleteEvent( final org.uberfire.backend.vfs.Path _path ) {
        final Path path = ioService.get( URI.create( _path.toURI() ) );
        final Project project = projectService.simpleProjectInstance( path.getParent() );
        deleteProjectEvent.fire( new DeleteProjectEvent( project ) );
    }
View Full Code Here

        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 {
            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 {
            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

TOP

Related Classes of org.guvnor.common.services.project.events.DeleteProjectEvent

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.