Skip to content

Commit

Permalink
chore: Rename withTrashed to withSoftDeletion
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGT96 committed Nov 14, 2024
1 parent 47dcceb commit 9ada458
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/isf/menu/manager/UserBrowsingManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ public User getUserByName(String userName) throws OHServiceException {
/**
* Returns {@link User} from its username
* @param username - the {@link User}'s username
* @param withTrashed - Included soft deleted if set to true
* @param withSoftDeletion - Included soft deleted if set to true
* @return {@link User}
* @throws OHServiceException When error occurs
*/
public User getUserByName(String username, boolean withTrashed) throws OHServiceException {
return ioOperations.getUserByName(username, withTrashed);
public User getUserByName(String username, boolean withSoftDeletion) throws OHServiceException {
return ioOperations.getUserByName(username, withSoftDeletion);
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/isf/menu/service/MenuIoOperations.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ public User getUserByName(String userName) throws OHServiceException {
/**
* Returns {@link User} from its username
* @param username - the {@link User}'s username
* @param withTrashed - Included soft deleted if set to true
* @param withSoftDeletion - Included soft deleted if set to true
* @return {@link User}
* @throws OHServiceException When error occurs
*/
public User getUserByName(String username, boolean withTrashed) throws OHServiceException {
return withTrashed ? repository.findByUserName(username) : getUserByName(username);
public User getUserByName(String username, boolean withSoftDeletion) throws OHServiceException {
return withSoftDeletion ? repository.findByUserName(username) : getUserByName(username);
}

/**
Expand Down

0 comments on commit 9ada458

Please sign in to comment.