Search in sources :

Example 1 with OwnerResponse

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;
}
Also used : OwnerResponse(org.wso2.carbon.identity.api.server.tenant.management.v1.model.OwnerResponse) ArrayList(java.util.ArrayList)

Example 2 with OwnerResponse

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;
}
Also used : OwnerResponse(org.wso2.carbon.identity.api.server.tenant.management.v1.model.OwnerResponse) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)2 OwnerResponse (org.wso2.carbon.identity.api.server.tenant.management.v1.model.OwnerResponse)2