All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.arextest.web.model.mapper.UserWorkspaceMapper Maven / Gradle / Ivy

There is a newer version: 0.6.5.5
Show newest version
package com.arextest.web.model.mapper;

import com.arextest.web.model.contract.contracts.filesystem.ChangeRoleRequestType;
import com.arextest.web.model.contract.contracts.filesystem.InviteToWorkspaceRequestType;
import com.arextest.web.model.contract.contracts.filesystem.UserType;
import com.arextest.web.model.contract.contracts.filesystem.ValidInvitationRequestType;
import com.arextest.web.model.dao.mongodb.UserWorkspaceCollection;
import com.arextest.web.model.dto.filesystem.UserWorkspaceDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface UserWorkspaceMapper {

  UserWorkspaceMapper INSTANCE = Mappers.getMapper(UserWorkspaceMapper.class);

  UserWorkspaceDto dtoFromDao(UserWorkspaceCollection dao);

  UserWorkspaceDto dtoFromContract(InviteToWorkspaceRequestType request);

  UserWorkspaceDto dtoFromContract(ValidInvitationRequestType request);

  UserWorkspaceDto dtoFromContract(ChangeRoleRequestType request);

  UserType userTypeFromDto(UserWorkspaceDto dto);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy