-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ECOAPI-661 - Adição da primitiva listRoles (#23)
* Adição da primitiva listRoles * Update src/test/java/br/com/senior/core/authorization/AuthorizationIT.java Co-authored-by: Andre <meirezende@hotmail.com> * Update src/main/java/br/com/senior/core/authorization/AuthorizationClient.java Co-authored-by: Andre <meirezende@hotmail.com> Co-authored-by: Andre <meirezende@hotmail.com>
- Loading branch information
1 parent
4be6e7f
commit ffa88e7
Showing
5 changed files
with
90 additions
and
6 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
24 changes: 24 additions & 0 deletions
24
src/main/java/br/com/senior/core/authorization/pojos/ListRolesInput.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,24 @@ | ||
package br.com.senior.core.authorization.pojos; | ||
|
||
import br.com.senior.core.user.pojos.Pagination; | ||
import lombok.AccessLevel; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.FieldDefaults; | ||
|
||
@Getter | ||
@FieldDefaults(level = AccessLevel.PRIVATE) | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class ListRolesInput { | ||
|
||
/** | ||
* O valor a ser pesquisado no nome dos papéis | ||
*/ | ||
String searchValue; | ||
/** | ||
* As configurações de paginação da listagem. Não definido, retornará os 10 primeiros resultados. | ||
*/ | ||
Pagination pagination; | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/br/com/senior/core/authorization/pojos/ListRolesOutput.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,25 @@ | ||
package br.com.senior.core.authorization.pojos; | ||
|
||
import br.com.senior.core.user.pojos.ListInformation; | ||
import lombok.AccessLevel; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.FieldDefaults; | ||
|
||
@Getter | ||
@FieldDefaults(level = AccessLevel.PRIVATE) | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class ListRolesOutput { | ||
|
||
/** | ||
* Os elementos retornados pela listagem | ||
*/ | ||
java.util.List<Role> roles; | ||
/** | ||
* Informações sobre os resultados da listagem | ||
*/ | ||
ListInformation listInformation; | ||
|
||
} |
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