All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.mosip.pms.oauth.client.dto.UpdateClientRequestDtoV2 Maven / Gradle / Ivy

The newest version!
package io.mosip.pms.oauth.client.dto;

import java.util.List;
import java.util.Map;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UpdateClientRequestDtoV2 extends UpdateClientRequestDto{

	@NotEmpty
	private Map<@Size(min=3, max=3) String, @NotBlank String> clientNameLangMap;

	public UpdateClientRequestDtoV2(String logoUri, @NotNull List<@NotBlank String> redirectUris, String status,
			@NotNull List grantTypes, String clientName, List userClaims, List authContextRefs,
			@NotNull List clientAuthMethods, Map clientNameLangMap) {
		super(logoUri, redirectUris, status, grantTypes, clientName, userClaims, authContextRefs, clientAuthMethods);
		this.clientNameLangMap = clientNameLangMap;
	}

	public UpdateClientRequestDtoV2(UpdateClientRequestDto updateRequest, Map clientNameLangMap) {
		super(updateRequest.getLogoUri(), updateRequest.getRedirectUris(), updateRequest.getStatus(), updateRequest.getGrantTypes(), updateRequest.getClientName(), 
				updateRequest.getUserClaims(), updateRequest.getAuthContextRefs(), updateRequest.getClientAuthMethods());
		this.clientNameLangMap = clientNameLangMap;
	}
	
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy