this(null, componentUuid, componentKey, componentName, role, groupUuid, groupName, qualifier, null);
}
- public GroupPermissionNewValue(GroupPermissionDto dto, String componentKey, String qualifier, PermissionTemplateDto permissionTemplate) {
+ public GroupPermissionNewValue(GroupPermissionDto dto, @Nullable String componentKey, @Nullable String qualifier, @Nullable PermissionTemplateDto permissionTemplate) {
this(dto.getUuid(), dto.getComponentUuid(), componentKey, dto.getComponentName(), dto.getRole(), dto.getGroupUuid(), dto.getGroupName(), qualifier, permissionTemplate);
}
@Nullable
private String qualifier;
- public PropertyNewValue(UserPropertyDto userPropertyDto, String login) {
+ public PropertyNewValue(UserPropertyDto userPropertyDto, @Nullable String login) {
this.propertyKey = userPropertyDto.getKey();
this.userUuid = userPropertyDto.getUserUuid();
this.userLogin = login;
this(null, null, null, null, userId, qualifier);
}
- public UserPermissionNewValue(String role, String componentUuid, String componentKey, String componentName, UserId userId,
- String qualifier) {
+ public UserPermissionNewValue(@Nullable String role, @Nullable String componentUuid, @Nullable String componentKey, @Nullable String componentName,
+ UserId userId, @Nullable String qualifier) {
super(null, componentUuid, componentKey, componentName, role, qualifier, null);
this.userUuid = userId != null ? userId.getUuid() : null;
this.userLogin = userId != null ? userId.getLogin() : null;