Examples of AuditLog


Examples of org.apache.continuum.web.util.AuditLog

                getContinuum().updateProject( project );
            }
        }

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

        return SUCCESS;
    }
View Full Code Here

Examples of org.apache.continuum.web.util.AuditLog

        catch ( NoBuildAgentInGroupException e )
        {
            addActionError( getText( "projectGroup.build.error.noBuildAgentInGroup" ) );
        }

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

        if ( this.isFromSummaryPage() )
        {
            return "to_summary_page";
        }
View Full Code Here

Examples of org.apache.continuum.web.util.AuditLog

            {
                int projectId = Integer.parseInt( selectedProject );

                try
                {
                    AuditLog event = new AuditLog( "Project id=" + projectId, AuditLogConstants.REMOVE_PROJECT );
                    event.setCategory( AuditLogConstants.PROJECT );
                    event.setCurrentUser( getPrincipal() );
                    event.log();

                    getContinuum().removeProject( projectId );
                }
                catch ( ContinuumException e )
                {
View Full Code Here

Examples of org.apache.continuum.web.util.AuditLog

            {
                int projectId = Integer.parseInt( pId );
                Project p = getContinuum().getProjectWithAllDetails( projectId );
                projectsList.add( p );

                AuditLog event = new AuditLog( "Project id=" + projectId, AuditLogConstants.FORCE_BUILD );
                event.setCategory( AuditLogConstants.PROJECT );
                event.setCurrentUser( getPrincipal() );
                event.log();
            }

            List<Project> sortedProjects = getContinuum().getProjectsInBuildOrder( projectsList );

            try
View Full Code Here

Examples of org.apache.continuum.web.util.AuditLog

            {
                int projectId = Integer.parseInt( selectedProject );

                try
                {
                    AuditLog event = new AuditLog( "Project id=" + projectId, AuditLogConstants.REMOVE_PROJECT );
                    event.setCategory( AuditLogConstants.PROJECT );
                    event.setCurrentUser( getPrincipal() );
                    event.log();

                    getContinuum().removeProject( projectId );
                }
                catch ( ContinuumException e )
                {
View Full Code Here

Examples of org.apache.continuum.web.util.AuditLog

            {
                int projectId = Integer.parseInt( pId );
                Project p = getContinuum().getProjectWithAllDetails( projectId );
                projectsList.add( p );

                AuditLog event = new AuditLog( "Project id=" + projectId, AuditLogConstants.FORCE_BUILD );
                event.setCategory( AuditLogConstants.PROJECT );
                event.setCurrentUser( getPrincipal() );
                event.log();
            }

            List<Project> sortedProjects = getContinuum().getProjectsInBuildOrder( projectsList );

            try
View Full Code Here

Examples of org.apache.continuum.web.util.AuditLog

        catch ( AuthorizationRequiredException e )
        {
            return REQUIRES_AUTHORIZATION;
        }
       
        AuditLog event = new AuditLog( "Project id=" + projectId, AuditLogConstants.REMOVE_PROJECT );
        event.setCurrentUser( getPrincipal() );
        event.setCategory( AuditLogConstants.PROJECT );
        event.log();

        try
        {
            getContinuum().removeProject( projectId );
        }
View Full Code Here

Examples of org.apache.continuum.web.util.AuditLog

        {
            name = getProjectGroupName();
            return CONFIRM;
        }

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

        return SUCCESS;
    }
View Full Code Here

Examples of org.apache.continuum.web.util.AuditLog

    {
        List<BuildDefinition> selectedBuildDefinitions = getBuildDefinitionsFromSelectedBuildDefinitions();
       
        BuildDefinitionTemplate result;
       
        AuditLog event = new AuditLog( buildDefinitionTemplate.getName(), AuditLogConstants.ADD_TEMPLATE );
        event.setCategory( AuditLogConstants.TEMPLATE );
        event.setCurrentUser( getPrincipal() );
       
        if ( this.buildDefinitionTemplate.getId() > 0 )
        {
            buildDefinitionTemplate.setBuildDefinitions( selectedBuildDefinitions );
            result = this.getContinuum().getBuildDefinitionService().updateBuildDefinitionTemplate( buildDefinitionTemplate );
            event.setAction( AuditLogConstants.MODIFY_TEMPLATE );
        }
        else
        {
            buildDefinitionTemplate.setBuildDefinitions( selectedBuildDefinitions );
            this.buildDefinitionTemplate =
                this.getContinuum().getBuildDefinitionService().addBuildDefinitionTemplate( buildDefinitionTemplate );
            result = this.buildDefinitionTemplate;
        }
       
        if ( result ==  null )
        {
            addActionError( getText( "buildDefintionTemplate.name.exists" ) );
            return INPUT;
        }
        else
        {
            event.log();
        }

        return SUCCESS;
    }
View Full Code Here

Examples of org.apache.continuum.web.util.AuditLog

        if ( confirmed )
        {
            buildDefinitionTemplate = getContinuum().getBuildDefinitionService().getBuildDefinitionTemplate(
                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
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.