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:
Matt Gilman 2016-08-05 16:35:13 -04:00 committed by Bryan Bende
parent aae6325603
commit ae8045d99b
No known key found for this signature in database
GPG Key ID: A0DDA9ED50711C39
2 changed files with 8 additions and 8 deletions

View File

@ -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;
}
/**

View File

@ -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()));