use of org.wso2.carbon.identity.user.store.configuration.stub.dto.PropertyDTO in project identity-api-server by wso2.
the class ServerUserStoreService method patchUserStoreProperties.
/**
* To construct properties list for patch request.
*
* @param propertyDTOS array of {@link PropertyDTO}
* @return List<AddUserStorePropertiesRes>
*/
private List<AddUserStorePropertiesRes> patchUserStoreProperties(PropertyDTO[] propertyDTOS) {
List<AddUserStorePropertiesRes> propertiesToAdd = new ArrayList<>();
for (PropertyDTO propertyDTO : propertyDTOS) {
AddUserStorePropertiesRes patchUserStoreProperties = new AddUserStorePropertiesRes();
patchUserStoreProperties.setName(propertyDTO.getName());
patchUserStoreProperties.setValue(propertyDTO.getValue());
propertiesToAdd.add(patchUserStoreProperties);
}
return propertiesToAdd;
}
use of org.wso2.carbon.identity.user.store.configuration.stub.dto.PropertyDTO in project identity-api-server by wso2.
the class ServerUserStoreService method generatePropertiesWithUniqueIDProperty.
/**
* Construct PropertyDTO array with UniqueID.
*
* @param propertiesToAdd Array list of properties.
* @return PropertyDTO[].
*/
private PropertyDTO[] generatePropertiesWithUniqueIDProperty(ArrayList<PropertyDTO> propertiesToAdd) {
PropertyDTO propertyDTO = new PropertyDTO();
propertyDTO.setName("UniqueID");
propertyDTO.setValue(UUID.randomUUID().toString());
propertiesToAdd.add(propertyDTO);
return propertiesToAdd.toArray(new PropertyDTO[0]);
}
Aggregations