use of org.wso2.carbon.identity.api.server.tenant.management.v1.model.OwnerResponse in project identity-api-server by wso2.
the class ServerTenantManagementService method createOwnerResponse.
private List<OwnerResponse> createOwnerResponse(User user) {
List<OwnerResponse> ownerResponseList = new ArrayList<>();
OwnerResponse ownerResponse = new OwnerResponse();
ownerResponse.setId(user.getUserID());
ownerResponse.setUsername(user.getUsername());
ownerResponseList.add(ownerResponse);
return ownerResponseList;
}
use of org.wso2.carbon.identity.api.server.tenant.management.v1.model.OwnerResponse in project identity-api-server by wso2.
the class ServerTenantManagementService method getOwnerResponses.
private List<OwnerResponse> getOwnerResponses(Tenant tenant) {
List<OwnerResponse> ownerResponseList = new ArrayList<>();
OwnerResponse ownerResponse = new OwnerResponse();
ownerResponse.setUsername(tenant.getAdminName());
ownerResponse.setId(tenant.getAdminUserId());
ownerResponseList.add(ownerResponse);
return ownerResponseList;
}
Aggregations