Skip to content

Commit

Permalink
MODAUD-187 - Updating permissions in MD (#170)
Browse files Browse the repository at this point in the history
* MODAUD-187 - Updating permissions in MD

* MODAUD-187 - exclude mod-audit-server execution for the folio-module-descriptor-validator plugin

* MODAUD-187 - exclude mod-audit-server execution for the folio-module-descriptor-validator plugin

* MODAUD-187 - exclude mod-audit-server execution for the folio-module-descriptor-validator plugin
  • Loading branch information
gurleenkaurbp authored Oct 21, 2024
1 parent 1ee6520 commit 13dbc70
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
18 changes: 15 additions & 3 deletions descriptors/ModuleDescriptor-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
],
"pathPattern": "/audit-data/acquisition/piece/{id}/status-change-history",
"permissionsRequired": [
"acquisition.piece.events.get"
"acquisition.piece.events.history.get"
]
}
]
Expand Down Expand Up @@ -174,7 +174,7 @@
"methods": ["POST"],
"pathPattern": "/audit/handlers/log-record",
"permissionsRequired": [
"pubsub.events.post"
"audit.pub-sub-handlers.log-record-event.post"
],
"modulePermissions": [
"users.item.get",
Expand Down Expand Up @@ -259,6 +259,17 @@
"displayName": "Acquisition piece events - get piece change events",
"description": "Get piece change events"
},
{
"permissionName": "acquisition.piece.events.history.get",
"displayName": "Acquisition piece status change history events - get piece status change events",
"description": "Get piece status change events"
},
{
"permissionName": "audit.pub-sub-handlers.log-record-event.post",
"displayName" : "log record events from pub-sub",
"description" : "log record events received from pub-sub",
"replaces": [ "pubsub.events.post" ]
},
{
"permissionName": "audit.all",
"displayName": "Audit - all permissions",
Expand All @@ -272,7 +283,8 @@
"circulation-logs.collection.get",
"acquisition.order.events.get",
"acquisition.order-line.events.get",
"acquisition.piece.events.get"
"acquisition.piece.events.get",
"acquisition.piece.events.history.get"
]
}
],
Expand Down
15 changes: 15 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<main.basedir>${project.basedir}</main.basedir>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<folio-module-descriptor-validator.version>1.0.0</folio-module-descriptor-validator.version>
<argLine />
</properties>

Expand Down Expand Up @@ -183,6 +184,20 @@
</dependencies>
</plugin>

<plugin>
<groupId>org.folio</groupId>
<artifactId>folio-module-descriptor-validator</artifactId>
<version>${folio-module-descriptor-validator.version}</version>
<inherited>false</inherited>
<executions>
<execution>
<goals>
<goal>validate</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>

Expand Down

0 comments on commit 13dbc70

Please sign in to comment.