this._count = "select count(distinct id) from project_invitation_view WHERE ";
}
@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());
} else {
response.setEmail(invite.getEmail());
}
response.setDomainId(invite.getDomainUuid());
response.setDomainName(invite.getDomainName());
response.setObjectName("projectinvitation");
return response;
}