Search in sources :

Example 1 with ProjectInvitationResponse

use of org.apache.cloudstack.api.response.ProjectInvitationResponse in project cloudstack by apache.

the class ProjectInvitationJoinDaoImpl method newProjectInvitationResponse.

@Override
public ProjectInvitationResponse newProjectInvitationResponse(ProjectInvitationJoinVO invite) {
    ProjectInvitationResponse response = new ProjectInvitationResponse();
    response.setId(invite.getUuid());
    response.setProjectId(invite.getProjectUuid());
    response.setProjectName(invite.getProjectName());
    if (invite.getState() != null) {
        response.setInvitationState(invite.getState().toString());
    }
    if (invite.getAccountName() != null) {
        response.setAccountName(invite.getAccountName());
    }
    if (invite.getUserId() != null) {
        response.setUserId(invite.getUserId());
    }
    if (invite.getEmail() != null) {
        response.setEmail(invite.getEmail());
    }
    response.setDomainId(invite.getDomainUuid());
    response.setDomainName(invite.getDomainName());
    response.setObjectName("projectinvitation");
    return response;
}
Also used : ProjectInvitationResponse(org.apache.cloudstack.api.response.ProjectInvitationResponse)

Aggregations

ProjectInvitationResponse (org.apache.cloudstack.api.response.ProjectInvitationResponse)1