Skip to content

Commit

Permalink
pass all verification data to the manager
Browse files Browse the repository at this point in the history
  • Loading branch information
summitt committed Dec 21, 2023
1 parent 82516c6 commit 59b0916
Show file tree
Hide file tree
Showing 9 changed files with 122 additions and 15 deletions.
1 change: 1 addition & 0 deletions .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
Expand Down
13 changes: 13 additions & 0 deletions .project
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
Expand All @@ -15,9 +20,17 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
</natures>
</projectDescription>
3 changes: 3 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
org.eclipse.jdt.core.compiler.release=disabled
Expand Down
6 changes: 6 additions & 0 deletions .settings/org.eclipse.wst.common.component
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="FactionExtender">
<wb-resource deploy-path="/" source-path="/FactionExtender/src"/>
<wb-resource deploy-path="/" source-path="/src"/>
</wb-module>
</project-modules>
5 changes: 5 additions & 0 deletions .settings/org.eclipse.wst.common.project.facet.core.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<installed facet="java" version="1.8"/>
<installed facet="jst.utility" version="1.0"/>
</faceted-project>
3 changes: 3 additions & 0 deletions FactionExtender/src/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Class-Path:

73 changes: 73 additions & 0 deletions pom.xml.releaseBackup
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>FactionSecurity</groupId>
<artifactId>faction-extender</artifactId>
<version>2.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Faction Extender API</name>
<description>API to reference when building extensions for Faction.</description>
<url>https://www.factionsecurity.com</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://github.com/factionsecurity/FactionExtender.git</url>
<connection>scm:git:https://github.com/factionsecurity/FactionExtender.git</connection>
<developerConnection>
scm:git:https://github.com/factionsecurity/FactionExtender.git</developerConnection>
<tag>1.1.0</tag>
</scm>
<properties>
<aws.java.sdk.version>2.18.16</aws.java.sdk.version>
<project.scm.id>github</project.scm.id>
<github.global.server>github</github.global.server>
</properties>
<distributionManagement>
<repository>
<id>github</id>
<name>Faction Extender</name>
<url>https://maven.pkg.github.com/factionsecurity/FactionExtender</url>
</repository>
</distributionManagement>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<tagNameFormat>@{project.version}</tagNameFormat>
<checkModificationExcludes>
<checkModificationExclude>pom.xml</checkModificationExclude>
</checkModificationExcludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.2.0</version>
<type>maven-plugin</type>
</dependency>
</dependencies>
</project>
12 changes: 10 additions & 2 deletions release.properties
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
#release configuration
#Thu Dec 21 01:12:43 CST 2023
completedPhase=check-poms
#Thu Dec 21 01:15:15 CST 2023
completedPhase=end-release
exec.additionalArguments=-Dmaven.javadoc.skip\=true -Dmaven.test.skipTests\=true -Dmaven.test.skip\=true -P github
exec.snapshotReleasePluginAllowed=false
preparationGoals=clean verify
project.dev.FactionSecurity\:faction-extender=2.1-SNAPSHOT
project.rel.FactionSecurity\:faction-extender=2.0
project.scm.FactionSecurity\:faction-extender.connection=scm\:git\:https\://github.com/factionsecurity/FactionExtender.git
project.scm.FactionSecurity\:faction-extender.developerConnection=scm\:git\:https\://github.com/factionsecurity/FactionExtender.git
project.scm.FactionSecurity\:faction-extender.id=github
project.scm.FactionSecurity\:faction-extender.tag=1.1.0
project.scm.FactionSecurity\:faction-extender.url=https\://github.com/factionsecurity/FactionExtender.git
projectVersionPolicyId=default
pushChanges=true
remoteTagging=true
scm.commentPrefix=[maven-release-plugin]
scm.id=github
scm.tag=2.0
scm.tagNameFormat=@{project.version}
scm.url=scm\:git\:https\://github.com/factionsecurity/FactionExtender.git
scm.username=summitt
21 changes: 8 additions & 13 deletions src/com/faction/extender/VerificationManager.java
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
package com.faction.extender;

import java.util.Date;

import com.faction.elements.Assessment;
import com.faction.elements.User;
import com.faction.elements.Verification;
import com.faction.elements.Vulnerability;
import com.faction.extender.AssessmentManager.Operation;

public interface VerificationManager {
static public enum Operation { Cancel, PASS,FAIL,Assigned};

/**
* @param changer This is the user that changed the vulnerability
* @param vuln This the vulnerability that is being modified
* @param notes This is the added notes when verification is passed or failed.
* @param start The start date for the verification
* @param end The expected end date of the end date for the verification
* @param operation An Enum operation. Values are Cancel, PASS, FAIL, or Assigned
* @return All Operations return the updated vulnerability. If return value is null then
* Faction will not update the internal database.
* @param changer This is the user that changed the vulnerability
* @param vulnerability This the vulnerability that is being modified
* @param verification This is the verification object
* @param operation An Enum operation. Values are Cancel, PASS, FAIL, or Assigned
* @return All Operations return the updated vulnerability. If return value is null then
* Faction will not update the internal database.
*/
public Vulnerability verificationChange(User changer, Vulnerability vuln, String AssessorNotes, Date start, Date end, Operation Operation);
public Vulnerability verificationChange(User changer, Vulnerability vulnerability, Verification verification, Operation Operation);


}

0 comments on commit 59b0916

Please sign in to comment.