Week5 (July 29-Aug. 4)
Weekly summary:
1.Studied the casbin policy. 2.Fixed issue #41, modify adapter policies before modifying memory
Before coding:
First of all, I checked the reference link sent to me by my tutor. In the changed file, I found classes and methods that have not been implemented by jCasbin. So I'm ready to integrated these classes and methods. However, I found that some methods in the reference code return two return values at a time, which is not allowed in Java. These two return values represent the matching effect List (list type), whether it was successfully found (boolean type). If the list is empty, it means it is not found, and the Boolean value is false. According to this, I decided to divide this method into two methods: one returns the list type, and the other calls the method that returns the list type, and returns the Boolean value according to the search result.
Next week:
1.Preparing for implementation of an interface compatible with Spring Security.