-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from edsonmartins/resource-edit
Criar endpoints para cadastro de permissões
- Loading branch information
Showing
9 changed files
with
423 additions
and
23 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
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
15 changes: 15 additions & 0 deletions
15
archbase-security/src/main/java/br/com/archbase/security/domain/dto/GrantPermissionDto.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,15 @@ | ||
package br.com.archbase.security.domain.dto; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
|
||
@Getter | ||
@Setter | ||
@Builder | ||
public class GrantPermissionDto { | ||
private String securityId; | ||
private String actionId; | ||
private SecurityType type; | ||
} |
24 changes: 24 additions & 0 deletions
24
...se-security/src/main/java/br/com/archbase/security/domain/dto/PermissionWithTypesDto.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.archbase.security.domain.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIdentityInfo; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.ObjectIdGenerators; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.util.Set; | ||
|
||
|
||
@Getter | ||
@Setter | ||
@Builder | ||
@JsonIdentityInfo(generator = ObjectIdGenerators.UUIDGenerator.class, property = "@id") | ||
public class PermissionWithTypesDto { | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
private String permissionId; | ||
private String actionId; | ||
private String actionDescription; | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
private Set<SecurityType> types; | ||
} |
Oops, something went wrong.