src/main/java/org/edgegallery/appstore/infrastructure/persistence/apackage/AppReleasePo.java
public static AppReleasePo of(Release pack) {
        AppReleasePo po = new AppReleasePo();
        po.packageId = pack.getPackageId();
        po.packageAddress = pack.getPackageFile().getStorageAddress();
        po.iconAddress = pack.getIcon().getStorageAddress();
        if (pack.getDemoVideo() != null) {
            po.demoVideoAddress = pack.getDemoVideo().getStorageAddress();
        }
        po.size = pack.getPackageFile().getSize();
        po.fileStructure = pack.getAppBasicInfo().getFileStructure();
        po.createTime = pack.getCreateTime();
        po.shortDesc = pack.getAppBasicInfo().getAppDesc();
        po.showType = pack.getShowType();
        po.appName = pack.getAppBasicInfo().getAppName();
        po.version = pack.getAppBasicInfo().getVersion();
        po.applicationType = pack.getApplicationType();
        po.markDownContent = pack.getAppBasicInfo().getMarkDownContent();
        po.affinity = pack.getAffinity();
        po.industry = pack.getIndustry();
        po.contact = pack.getAppBasicInfo().getContact();
        po.appId = pack.getAppId();
        po.userId = pack.getUser().getUserId();
        po.userName = pack.getUser().getUserName();
        po.provider = pack.getAppBasicInfo().getProvider();
        po.testTaskId = pack.getTestTaskId();
        po.status = pack.getStatus().toString();
        po.deployMode = pack.getDeployMode();
        po.appInstanceId = pack.getAppInstanceId();
        po.instanceTenentId = pack.getInstanceTenentId();
        po.instancePackageId = pack.getInstancePackageId();
        po.experienceAble = pack.isExperienceAble();
        po.startExpTime = pack.getStartExpTime();
        po.setExperienceAbleIp(pack.getExperienceAbleIp());
        po.setMecHost(pack.getMecHost());
        return po;
    }
/**
     * transfer Release to AppRelease.
     *
     * @param pack object of Release.
     * @return AppReleasePo
     */
transfer Release to AppRelease.
@param pack object of Release.
transfer Release to AppRelease . @param pack object of Release .
public static AppReleasePo of(Release pack) {
        AppReleasePo po = new AppReleasePo();
        po.packageId = pack.getPackageId();
        po.packageAddress = pack.getPackageFile().getStorageAddress();
        po.iconAddress = pack.getIcon().getStorageAddress();
        if (pack.getDemoVideo() != null) {
            po.demoVideoAddress = pack.getDemoVideo().getStorageAddress();
        }
        po.size = pack.getPackageFile().getSize();
        po.fileStructure = pack.getAppBasicInfo().getFileStructure();
        po.createTime = pack.getCreateTime();
        po.shortDesc = pack.getAppBasicInfo().getAppDesc();
        po.showType = pack.getShowType();
        po.appName = pack.getAppBasicInfo().getAppName();
        po.version = pack.getAppBasicInfo().getVersion();
        po.applicationType = pack.getApplicationType();
        po.markDownContent = pack.getAppBasicInfo().getMarkDownContent();
        po.affinity = pack.getAffinity();
        po.industry = pack.getIndustry();
        po.contact = pack.getAppBasicInfo().getContact();
        po.appId = pack.getAppId();
        po.userId = pack.getUser().getUserId();
        po.userName = pack.getUser().getUserName();
        po.provider = pack.getAppBasicInfo().getProvider();
        po.testTaskId = pack.getTestTaskId();
        po.status = pack.getStatus().toString();
        po.deployMode = pack.getDeployMode();
        po.appInstanceId = pack.getAppInstanceId();
        po.instanceTenentId = pack.getInstanceTenentId();
        po.instancePackageId = pack.getInstancePackageId();
        po.experienceAble = pack.isExperienceAble();
        po.startExpTime = pack.getStartExpTime();
        po.setExperienceAbleIp(pack.getExperienceAbleIp());
        po.setMecHost(pack.getMecHost());
        return po;
    }
public static AppReleasePo of ( Release pack ) { AppReleasePo po = new AppReleasePo ( ) ; po . packageId = pack . getPackageId ( ) ; po . packageAddress = pack . getPackageFile ( ) . getStorageAddress ( ) ; po . iconAddress = pack . getIcon ( ) . getStorageAddress ( ) ; if ( pack . getDemoVideo ( ) != null ) { po . demoVideoAddress = pack . getDemoVideo ( ) . getStorageAddress ( ) ; } po . size = pack . getPackageFile ( ) . getSize ( ) ; po . fileStructure = pack . getAppBasicInfo ( ) . getFileStructure ( ) ; po . createTime = pack . getCreateTime ( ) ; po . shortDesc = pack . getAppBasicInfo ( ) . getAppDesc ( ) ; po . showType = pack . getShowType ( ) ; po . appName = pack . getAppBasicInfo ( ) . getAppName ( ) ; po . version = pack . getAppBasicInfo ( ) . getVersion ( ) ; po . applicationType = pack . getApplicationType ( ) ; po . markDownContent = pack . getAppBasicInfo ( ) . getMarkDownContent ( ) ; po . affinity = pack . getAffinity ( ) ; po . industry = pack . getIndustry ( ) ; po . contact = pack . getAppBasicInfo ( ) . getContact ( ) ; po . appId = pack . getAppId ( ) ; po . userId = pack . getUser ( ) . getUserId ( ) ; po . userName = pack . getUser ( ) . getUserName ( ) ; po . provider = pack . getAppBasicInfo ( ) . getProvider ( ) ; po . testTaskId = pack . getTestTaskId ( ) ; po . status = pack . getStatus ( ) . toString ( ) ; po . deployMode = pack . getDeployMode ( ) ; po . appInstanceId = pack . getAppInstanceId ( ) ; po . instanceTenentId = pack . getInstanceTenentId ( ) ; po . instancePackageId = pack . getInstancePackageId ( ) ; po . experienceAble = pack . isExperienceAble ( ) ; po . startExpTime = pack . getStartExpTime ( ) ; po . setExperienceAbleIp ( pack . getExperienceAbleIp ( ) ) ; po . setMecHost ( pack . getMecHost ( ) ) ; return po ; }
transfer Release to AppRelease.
transfer Release to AppRelease .