-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for neo4j embedded and package refactor (#177)
bump grpc related versions add maven wrapper move index creation to a static method in neo4j to be called outside of the PAP class change OperandEntry value to a oneof add named routine rpc add dissociate op update neo4j tx handler move verification to store make policyStore public for PAP rename EPP interfaces first pass at package refactor package refactor
- Loading branch information
1 parent
3db2645
commit 68b06d3
Showing
457 changed files
with
3,986 additions
and
2,487 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
5 changes: 2 additions & 3 deletions
5
...t/csd/pm/pap/obligation/EventContext.java → ...ist/csd/pm/common/event/EventContext.java
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
13 changes: 6 additions & 7 deletions
13
...ava/gov/nist/csd/pm/epp/EventEmitter.java → ...t/csd/pm/common/event/EventPublisher.java
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,30 +1,29 @@ | ||
package gov.nist.csd.pm.epp; | ||
package gov.nist.csd.pm.common.event; | ||
|
||
import gov.nist.csd.pm.pap.exception.PMException; | ||
import gov.nist.csd.pm.pap.obligation.EventContext; | ||
import gov.nist.csd.pm.common.exception.PMException; | ||
|
||
/** | ||
* Interface for emitting events to be processed by an EPP. | ||
*/ | ||
public interface EventEmitter { | ||
public interface EventPublisher { | ||
|
||
/** | ||
* Add the given EventProcessor as a listener for policy events. | ||
* @param processor The processor to add as a listener. | ||
*/ | ||
void addEventListener(EventProcessor processor); | ||
void addEventSubscriber(EventSubscriber processor); | ||
|
||
/** | ||
* Remove the given EventProcessor as a listener. | ||
* @param processor The processor to remove. | ||
*/ | ||
void removeEventListener(EventProcessor processor); | ||
void removeEventSubscriber(EventSubscriber processor); | ||
|
||
/** | ||
* Emit the given event context to any EventProcessors listening. | ||
* @param event The EventContext to emit. | ||
* @throws PMException If there is an exception emitting the event. | ||
*/ | ||
void emitEvent(EventContext event) throws PMException; | ||
void publishEvent(EventContext event) throws PMException; | ||
|
||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/gov/nist/csd/pm/common/event/EventSubscriber.java
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,17 @@ | ||
package gov.nist.csd.pm.common.event; | ||
|
||
import gov.nist.csd.pm.common.exception.PMException; | ||
|
||
/** | ||
* Interface for processing EventContexts. | ||
*/ | ||
public interface EventSubscriber { | ||
|
||
/** | ||
* Process the given EventContext. | ||
* @param eventCtx The event context to process. | ||
* @throws PMException If there is an error processing the EventContext. | ||
*/ | ||
void processEvent(EventContext eventCtx) throws PMException; | ||
|
||
} |
2 changes: 1 addition & 1 deletion
2
...tion/AdminAccessRightExistsException.java → ...tion/AdminAccessRightExistsException.java
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
2 changes: 1 addition & 1 deletion
2
...ion/AdminPolicyVerificationException.java → ...ion/AdminPolicyVerificationException.java
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
2 changes: 1 addition & 1 deletion
2
...eption/AssignmentCausesLoopException.java → ...eption/AssignmentCausesLoopException.java
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
2 changes: 1 addition & 1 deletion
2
...ion/BootstrapExistingPolicyException.java → ...ion/BootstrapExistingPolicyException.java
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
2 changes: 1 addition & 1 deletion
2
...nnotDeleteAdminPolicyConfigException.java → ...nnotDeleteAdminPolicyConfigException.java
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
4 changes: 2 additions & 2 deletions
4
.../exception/DisconnectedNodeException.java → .../exception/DisconnectedNodeException.java
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
2 changes: 1 addition & 1 deletion
2
...n/InvalidProhibitionSubjectException.java → ...n/InvalidProhibitionSubjectException.java
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
2 changes: 1 addition & 1 deletion
2
.../exception/NodeDoesNotExistException.java → .../exception/NodeDoesNotExistException.java
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
2 changes: 1 addition & 1 deletion
2
...exception/NodeHasAscendantsException.java → ...exception/NodeHasAscendantsException.java
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
2 changes: 1 addition & 1 deletion
2
...ap/exception/NodeNameExistsException.java → ...on/exception/NodeNameExistsException.java
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
2 changes: 1 addition & 1 deletion
2
.../NodeReferencedInObligationException.java → .../NodeReferencedInObligationException.java
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
2 changes: 1 addition & 1 deletion
2
...NodeReferencedInProhibitionException.java → ...NodeReferencedInProhibitionException.java
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
2 changes: 1 addition & 1 deletion
2
...eption/NodesAlreadyAssignedException.java → ...eption/NodesAlreadyAssignedException.java
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
2 changes: 1 addition & 1 deletion
2
...tion/ObligationDoesNotExistException.java → ...tion/ObligationDoesNotExistException.java
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
2 changes: 1 addition & 1 deletion
2
...eption/ObligationNameExistsException.java → ...eption/ObligationNameExistsException.java
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
2 changes: 1 addition & 1 deletion
2
...on/ObligationRuleNameExistsException.java → ...on/ObligationRuleNameExistsException.java
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
2 changes: 1 addition & 1 deletion
2
...xception/OperandsDoNotMatchException.java → ...xception/OperandsDoNotMatchException.java
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,4 +1,4 @@ | ||
package gov.nist.csd.pm.pap.exception; | ||
package gov.nist.csd.pm.common.exception; | ||
|
||
import java.util.Collection; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...ption/OperationDoesNotExistException.java → ...ption/OperationDoesNotExistException.java
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
2 changes: 1 addition & 1 deletion
2
...p/exception/OperationExistsException.java → ...n/exception/OperationExistsException.java
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
2 changes: 1 addition & 1 deletion
2
.../pm/pap/exception/PMBackendException.java → .../common/exception/PMBackendException.java
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
2 changes: 1 addition & 1 deletion
2
...ist/csd/pm/pap/exception/PMException.java → .../csd/pm/common/exception/PMException.java
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
2 changes: 1 addition & 1 deletion
2
...n/PMLConstantAlreadyDefinedException.java → ...n/PMLConstantAlreadyDefinedException.java
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
2 changes: 1 addition & 1 deletion
2
...ption/PMLConstantNotDefinedException.java → ...ption/PMLConstantNotDefinedException.java
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
2 changes: 1 addition & 1 deletion
2
...n/PMLFunctionAlreadyDefinedException.java → ...n/PMLFunctionAlreadyDefinedException.java
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
2 changes: 1 addition & 1 deletion
2
...ption/PMLFunctionNotDefinedException.java → ...ption/PMLFunctionNotDefinedException.java
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
2 changes: 1 addition & 1 deletion
2
.../pm/pap/exception/PMRuntimeException.java → .../common/exception/PMRuntimeException.java
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
2 changes: 1 addition & 1 deletion
2
...on/PolicyEntityDoesNotExistException.java → ...on/PolicyEntityDoesNotExistException.java
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
2 changes: 1 addition & 1 deletion
2
...bitionContainerDoesNotExistException.java → ...bitionContainerDoesNotExistException.java
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
2 changes: 1 addition & 1 deletion
2
...ion/ProhibitionDoesNotExistException.java → ...ion/ProhibitionDoesNotExistException.java
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
2 changes: 1 addition & 1 deletion
2
...exception/ProhibitionExistsException.java → ...exception/ProhibitionExistsException.java
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
2 changes: 1 addition & 1 deletion
2
...hibitionSubjectDoesNotExistException.java → ...hibitionSubjectDoesNotExistException.java
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
2 changes: 1 addition & 1 deletion
2
...p/exception/RepObjectNotSetException.java → ...n/exception/RepObjectNotSetException.java
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
2 changes: 1 addition & 1 deletion
2
...ception/RoutineDoesNotExistException.java → ...ception/RoutineDoesNotExistException.java
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
2 changes: 1 addition & 1 deletion
2
...pap/exception/RoutineExistsException.java → ...mon/exception/RoutineExistsException.java
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
2 changes: 1 addition & 1 deletion
2
...xception/UnknownAccessRightException.java → ...xception/UnknownAccessRightException.java
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
2 changes: 1 addition & 1 deletion
2
...ap/exception/UnknownOperandException.java → ...on/exception/UnknownOperandException.java
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
2 changes: 1 addition & 1 deletion
2
...ap/exception/UnknownPatternException.java → ...on/exception/UnknownPatternException.java
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
2 changes: 1 addition & 1 deletion
2
...m/pap/exception/UnknownTypeException.java → ...ommon/exception/UnknownTypeException.java
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
Oops, something went wrong.