-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pass all verification data to the manager
- Loading branch information
Showing
9 changed files
with
122 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Manifest-Version: 1.0 | ||
Class-Path: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
|
||
} |