mirror of https://github.com/apache/nifi.git
NIFI-2505: - Updating the user identity field in the ActionDTO.
This closes #800. Signed-off-by: Bryan Bende <bbende@apache.org>
This commit is contained in:
parent
aae6325603
commit
ae8045d99b
|
@ -32,7 +32,7 @@ import java.util.Date;
|
|||
public class ActionDTO {
|
||||
|
||||
private Integer id;
|
||||
private String userDn;
|
||||
private String userIdentity;
|
||||
private Date timestamp;
|
||||
|
||||
private String sourceId;
|
||||
|
@ -58,17 +58,17 @@ public class ActionDTO {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return user dn who perform this action
|
||||
* @return user identity who perform this action
|
||||
*/
|
||||
@ApiModelProperty(
|
||||
value = "The dn of the user that performed the action."
|
||||
value = "The identity of the user that performed the action."
|
||||
)
|
||||
public String getUserDn() {
|
||||
return userDn;
|
||||
public String getUserIdentity() {
|
||||
return userIdentity;
|
||||
}
|
||||
|
||||
public void setUserDn(String userDn) {
|
||||
this.userDn = userDn;
|
||||
public void setUserIdentity(String userIdentity) {
|
||||
this.userIdentity = userIdentity;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -222,7 +222,7 @@ public final class DtoFactory {
|
|||
actionDto.setSourceName(action.getSourceName());
|
||||
actionDto.setSourceType(action.getSourceType().name());
|
||||
actionDto.setTimestamp(action.getTimestamp());
|
||||
actionDto.setUserDn(action.getUserIdentity());
|
||||
actionDto.setUserIdentity(action.getUserIdentity());
|
||||
actionDto.setOperation(action.getOperation().name());
|
||||
actionDto.setActionDetails(createActionDetailsDto(action.getActionDetails()));
|
||||
actionDto.setComponentDetails(createComponentDetailsDto(action.getComponentDetails()));
|
||||
|
|
Loading…
Reference in New Issue