Package org.apache.maven.continuum

Examples of org.apache.maven.continuum.ContinuumException


        if ( files == null )
        {
            //workingDirectory isn't a directory but a file. Not possible in theory.
            String msg = workingDirectory.getAbsolutePath() + " isn't a directory but a file.";
            getLogger().error( msg );
            throw new ContinuumException( msg );
        }

        setWorkingDirectoryExist( context, files.length > 0 );
    }
View Full Code Here


            }
        }
        catch ( RoleManagerException e )
        {
            e.printStackTrace();
            throw new ContinuumException( "error generating templated role for project " + projectGroup.getName(), e );
        }
    }
View Full Code Here

        ProjectGroup projectGroup = projectGroupDao.getProjectGroupWithBuildDetailsByProjectGroupId( projectGroupId );

        if ( buildDefinition.isDefaultForProject() )
        {
            throw new ContinuumException( "can't remove default build definition from project group" );
        }

        projectGroup.removeBuildDefinition( buildDefinition );

        projectGroupDao.updateProjectGroup( projectGroup );
View Full Code Here

        // stuff out
        // ----------------------------------------------------------------------

        if ( !buildExecutorManager.hasBuildExecutor( project.getExecutorId() ) )
        {
            throw new ContinuumException( "No such executor with id '" + project.getExecutorId() + "'." );
        }

        List<Project> projects = projectDao.getAllProjectsByName();

        for ( Project storedProject : projects )
        {
            // CONTINUUM-1445
            if ( StringUtils.equalsIgnoreCase( project.getName(), storedProject.getName() ) &&
                StringUtils.equalsIgnoreCase( project.getVersion(), storedProject.getVersion() ) &&
                StringUtils.equalsIgnoreCase( project.getScmUrl(), storedProject.getScmUrl() ) )
            {
                throw new ContinuumException( "A duplicate project already exist '" + storedProject.getName() + "'." );
            }
        }
        /*
        if ( store.getProjectByName( project.getName() ) != null )
        {
View Full Code Here

    {
        try
        {
            if ( !isAuthorized( role, resource, requiredResource ) )
            {
                throw new ContinuumException( "You're not authorized to execute this action." );
            }
        }
        catch ( AuthorizationException ae )
        {
            throw new ContinuumException( "error authorizing request." );
        }
    }
View Full Code Here

    protected void checkManageConfigurationAuthorization()
        throws ContinuumException
    {
        if ( !isAuthenticated() )
        {
            throw new ContinuumException( "Authentication required." );
        }

        checkAuthorization( ContinuumRoleConstants.CONTINUUM_MANAGE_CONFIGURATION );
    }
View Full Code Here

    protected void checkManageSchedulesAuthorization()
        throws ContinuumException
    {
        if ( !isAuthenticated() )
        {
            throw new ContinuumException( "Authentication required." );
        }

        checkAuthorization( ContinuumRoleConstants.CONTINUUM_MANAGE_SCHEDULES );
    }
View Full Code Here

    protected void checkManageInstallationsAuthorization()
        throws ContinuumException
    {
        if ( !isAuthenticated() )
        {
            throw new ContinuumException( "Authentication required." );
        }

        checkAuthorization( ContinuumRoleConstants.CONTINUUM_MANAGE_INSTALLATIONS );
    }
View Full Code Here

    protected void checkManageProfilesAuthorization()
        throws ContinuumException
    {
        if ( !isAuthenticated() )
        {
            throw new ContinuumException( "Authentication required." );
        }

        checkAuthorization( ContinuumRoleConstants.CONTINUUM_MANAGE_PROFILES );
    }
View Full Code Here

    protected void checkManageBuildDefinitionTemplatesAuthorization()
        throws ContinuumException
    {
        if ( !isAuthenticated() )
        {
            throw new ContinuumException( "Authentication required." );
        }

        checkAuthorization( ContinuumRoleConstants.CONTINUUM_MANAGE_BUILD_TEMPLATES );
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.continuum.ContinuumException

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.