Skip to content

Commit

Permalink
refactoring and organizing
Browse files Browse the repository at this point in the history
  • Loading branch information
summitt committed Dec 21, 2023
1 parent ccdd634 commit 320f3de
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pom.xml.releaseBackup
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>FactionSecurity</groupId>
<artifactId>faction-extender</artifactId>
<version>2.0-SNAPSHOT</version>
<version>2.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Faction Extender API</name>
<description>API to reference when building extensions for Faction.</description>
Expand Down
8 changes: 4 additions & 4 deletions release.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#release configuration
#Thu Dec 21 01:15:15 CST 2023
#Thu Dec 21 01:35:11 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.dev.FactionSecurity\:faction-extender=2.2-SNAPSHOT
project.rel.FactionSecurity\:faction-extender=2.1
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
Expand All @@ -16,7 +16,7 @@ pushChanges=true
remoteTagging=true
scm.commentPrefix=[maven-release-plugin]
scm.id=github
scm.tag=2.0
scm.tag=2.1
scm.tagNameFormat=@{project.version}
scm.url=scm\:git\:https\://github.com/factionsecurity/FactionExtender.git
scm.username=summitt
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package com.faction.extender;
package com.faction.elements.results;

import com.faction.elements.Vulnerability;
import com.faction.elements.Assessment;
import java.util.List;

import com.faction.elements.Assessment;
import com.faction.elements.Vulnerability;

import java.util.ArrayList;

public class AssessmentManagerResult {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.faction.extender;
package com.faction.elements.results;

import java.util.HashMap;

Expand Down
45 changes: 45 additions & 0 deletions src/com/faction/elements/utils/Logger.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
package com.faction.elements.utils;

import java.io.PrintWriter;
import java.io.StringWriter;

public class Logger {

public enum LEVEL { INFO, WARNING, ERROR, DEBUG };
private LEVEL level;
private String message;
private String stackTrace;

public Logger(LEVEL level, Exception exception) {
this.level = level;
this.message = exception.getMessage();
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
exception.printStackTrace(pw);
this.stackTrace = sw.toString();

}
public LEVEL getLevel() {
return level;
}
public void setLevel(LEVEL level) {
this.level = level;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public String getStackTrace() {
return this.stackTrace;
}








}
2 changes: 1 addition & 1 deletion src/com/faction/extender/ApplicationInventory.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.faction.extender;


import com.faction.elements.results.InventoryResult;

public interface ApplicationInventory {

Expand Down
2 changes: 1 addition & 1 deletion src/com/faction/extender/AssessmentManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import com.faction.elements.Assessment;
import com.faction.elements.Vulnerability;
import com.faction.extender.AssessmentManagerResult;
import com.faction.elements.results.AssessmentManagerResult;


public interface AssessmentManager {
Expand Down
10 changes: 10 additions & 0 deletions src/com/faction/extender/ExtensionMetaData.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.faction.extender;

public interface ExtensionMetaData {

public String getCreatedBy();
public String getVersion();
public String getDescription();


}

0 comments on commit 320f3de

Please sign in to comment.