Skip to content

Commit

Permalink
[CIRCSTORE-524] - Review and cleanup Module Descriptor for mod-circul…
Browse files Browse the repository at this point in the history
…ation-storage (#495)

* [CIRCSTORE-524] - Review and cleanup Module Descriptor for mod-circulation-storage

* Update permission name
  • Loading branch information
azizbekxm authored Nov 22, 2024
1 parent 79b2b41 commit f792189
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
9 changes: 5 additions & 4 deletions descriptors/ModuleDescriptor-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
}, {
"methods": ["POST"],
"pathPattern": "/loan-storage/loans/anonymize/{userId}",
"permissionsRequired": ["circulation-storage.loans.collection.anonymize.user.post"]
"permissionsRequired": ["circulation-storage.loans.anonymize.execute"]
}
]
},
Expand Down Expand Up @@ -757,9 +757,10 @@
"description": "Delete individual loan from storage"
},
{
"permissionName": "circulation-storage.loans.collection.anonymize.user.post",
"permissionName": "circulation-storage.loans.anonymize.execute",
"displayName": "Circulation storage - anonymize loans for a user",
"description": "Anonymize closed loans for a single user"
"description": "Anonymize closed loans for a single user",
"replaces": "circulation-storage.loans.collection.anonymize.user.post"
},
{
"permissionName": "anonymize-storage-loans.post",
Expand Down Expand Up @@ -1082,7 +1083,7 @@
"circulation-storage.loans.item.put",
"circulation-storage.loans.item.delete",
"circulation-storage.loans.collection.delete",
"circulation-storage.loans.collection.anonymize.user.post",
"circulation-storage.loans.anonymize.execute",
"circulation-storage.loans-history.collection.get",
"circulation-storage.circulation-rules.get",
"circulation-storage.circulation-rules.put",
Expand Down
15 changes: 15 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
<vertx-version>4.5.9</vertx-version>
<raml-module-builder-version>35.3.0</raml-module-builder-version>
<spring.version>6.1.5</spring.version>

<!--Folio dependencies properties-->
<folio-module-descriptor-validator.version>1.0.0</folio-module-descriptor-validator.version>
<argLine />
</properties>

Expand Down Expand Up @@ -513,6 +516,18 @@
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.folio</groupId>
<artifactId>folio-module-descriptor-validator</artifactId>
<version>${folio-module-descriptor-validator.version}</version>
<executions>
<execution>
<goals>
<goal>validate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit f792189

Please sign in to comment.