Package org.apache.continuum.web.util

Examples of org.apache.continuum.web.util.AuditLog.log()


            getContinuum().getDistributedBuildManager().cancelGroupBuild( projectGroupId );

            AuditLog event = new AuditLog( "Project Group id=" + projectGroupId, AuditLogConstants.CANCEL_BUILD );
            event.setCategory( AuditLogConstants.PROJECT_GROUP );
            event.setCurrentUser( getPrincipal() );
            event.log();

            return SUCCESS;
        }
        else
        {
View Full Code Here


                    AuditLog event = new AuditLog( "Build Queue id=" + addedBuildQueue.getId(),
                                                   AuditLogConstants.ADD_BUILD_QUEUE );
                    event.setCategory( AuditLogConstants.BUILD_QUEUE );
                    event.setCurrentUser( getPrincipal() );
                    event.log();
                }
                else
                {
                    addActionError( "Build queue name already exists." );
                    return ERROR;
View Full Code Here

            AuditLog event = new AuditLog( "Build Queue id=" + buildQueue.getId(),
                                           AuditLogConstants.REMOVE_BUILD_QUEUE );
            event.setCategory( AuditLogConstants.BUILD_QUEUE );
            event.setCurrentUser( getPrincipal() );
            event.log();
        }
        else
        {
            return CONFIRM;
        }
View Full Code Here

        if ( projectId > 0 )
        {
            event.setResource( "Project id=" + projectId );
            event.setCategory( AuditLogConstants.PROJECT );
            event.log();

            if ( fromGroupPage || hasActionErrors() )
            {
                return "to_group_page";
            }
View Full Code Here

        }
        else
        {
            event.setResource( "Project Group id=" + projectGroupId );
            event.setCategory( AuditLogConstants.PROJECT_GROUP );
            event.log();
            if ( fromGroupPage )
            {
                return "to_group_page";
            }
        }
View Full Code Here

                        AuditLog event = new AuditLog( "Build Result id=" + buildId,
                                                       AuditLogConstants.REMOVE_BUILD_RESULT );
                        event.setCategory( AuditLogConstants.BUILD_RESULT );
                        event.setCurrentUser( getPrincipal() );
                        event.log();
                    }
                    catch ( ContinuumException e )
                    {
                        logger.error( "Error removing BuildResult with id=" + buildId );
                        addActionError( getText( "buildResult.delete.error", "Unable to delete build result",
View Full Code Here

                AuditLog event = new AuditLog( "Repository id=" + repository.getId(),
                                               AuditLogConstants.PURGE_LOCAL_REPOSITORY );
                event.setCategory( AuditLogConstants.LOCAL_REPOSITORY );
                event.setCurrentUser( getPrincipal() );
                event.log();
            }
        }
        return SUCCESS;
    }
View Full Code Here

            addActionError( getText( "buildDefintionTemplate.name.exists" ) );
            return INPUT;
        }
        else
        {
            event.log();
        }

        return SUCCESS;
    }
View Full Code Here

                this.buildDefinitionTemplate.getId() );

            AuditLog event = new AuditLog( buildDefinitionTemplate.getName(), AuditLogConstants.REMOVE_TEMPLATE );
            event.setCategory( AuditLogConstants.TEMPLATE );
            event.setCurrentUser( getPrincipal() );
            event.log();

            this.getContinuum().getBuildDefinitionService().removeBuildDefinitionTemplate( buildDefinitionTemplate );
        }
        else
        {
View Full Code Here

            configuration.addBuildAgent( buildAgent );
            configuration.store();
            event.setAction( AuditLogConstants.ADD_BUILD_AGENT );
        }

        event.log();

        return SUCCESS;
    }

    public String delete()
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.