public static EntityLinkOperation linkDeliveryPolicy ( String assetId , String deliveryPolicyId ) { String escapedContentKeyId = null ; try { escapedContentKeyId = URLEncoder . encode ( deliveryPolicyId , "UTF-8" ) ; } catch ( UnsupportedEncodingException e ) { throw new InvalidParameterException ( "deliveryPolicyId" ) ; } URI contentKeyUri = URI . create ( String . format ( "AssetDeliveryPolicies('%s')" , escapedContentKeyId ) ) ; return new EntityLinkOperation ( ENTITY_SET , assetId , "DeliveryPolicies" , contentKeyUri ) ; }
Link delivery policy