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

com.aizuda.snailjob.server.web.service.convert.PermissionsResponseVOConverterImpl Maven / Gradle / Ivy

package com.aizuda.snailjob.server.web.service.convert;

import com.aizuda.snailjob.server.web.model.response.PermissionsResponseVO;
import com.aizuda.snailjob.template.datasource.persistence.po.SystemUserPermission;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.processing.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2024-05-29T12:27:56+0800",
    comments = "version: 1.5.3.Final, compiler: javac, environment: Java 17.0.10 (Amazon.com Inc.)"
)
public class PermissionsResponseVOConverterImpl implements PermissionsResponseVOConverter {

    @Override
    public List convertList(List systemUserPermissionList) {
        if ( systemUserPermissionList == null ) {
            return null;
        }

        List list = new ArrayList( systemUserPermissionList.size() );
        for ( SystemUserPermission systemUserPermission : systemUserPermissionList ) {
            list.add( systemUserPermissionToPermissionsResponseVO( systemUserPermission ) );
        }

        return list;
    }

    protected PermissionsResponseVO systemUserPermissionToPermissionsResponseVO(SystemUserPermission systemUserPermission) {
        if ( systemUserPermission == null ) {
            return null;
        }

        PermissionsResponseVO permissionsResponseVO = new PermissionsResponseVO();

        permissionsResponseVO.setGroupName( systemUserPermission.getGroupName() );
        permissionsResponseVO.setNamespaceId( systemUserPermission.getNamespaceId() );

        return permissionsResponseVO;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy