protected void copyFieldsFrom ( RepositoryResourceImpl fromResource , boolean includeAttachmentInfo ) { setName ( fromResource . getName ( ) ) ; // part of the identification so locked setDescription ( fromResource . getDescription ( ) ) ; setShortDescription ( fromResource . getShortDescription ( ) ) ; setProviderName ( fromResource . getProviderName ( ) ) ; // part of the identification so locked setProviderUrl ( fromResource . getProviderUrl ( ) ) ; setVersion ( fromResource . getVersion ( ) ) ; setDownloadPolicy ( fromResource . getDownloadPolicy ( ) ) ; setLicenseId ( fromResource . getLicenseId ( ) ) ; setLicenseType ( fromResource . getLicenseType ( ) ) ; setMainAttachmentSize ( fromResource . getMainAttachmentSize ( ) ) ; setMainAttachmentSHA256 ( fromResource . getMainAttachmentSHA256 ( ) ) ; setFeaturedWeight ( fromResource . getFeaturedWeight ( ) ) ; setDisplayPolicy ( fromResource . getDisplayPolicy ( ) ) ; setVanityURL ( fromResource . getVanityURL ( ) ) ; setWlpInformationVersion ( fromResource . getWlpInformationVersion ( ) ) ; setMavenCoordinates ( fromResource . getMavenCoordinates ( ) ) ; if ( includeAttachmentInfo ) { setMainAttachmentSize ( fromResource . getMainAttachmentSize ( ) ) ; } _asset . getWlpInformation ( ) . setAppliesToFilterInfo ( fromResource . getAsset ( ) . getWlpInformation ( ) . getAppliesToFilterInfo ( ) ) ; }
Resources should override this method to copy fields that should be used as part of an update