/** * Method writeCRemoteStorage. * * @param cRemoteStorage * @param serializer * @param tagName * @throws java.io.IOException */ private void writeCRemoteStorage( CRemoteStorage cRemoteStorage, String tagName, XmlSerializer serializer ) throws java.io.IOException { serializer.startTag( NAMESPACE, tagName ); if ( cRemoteStorage.getProvider() != null ) { serializer.startTag( NAMESPACE, "provider" ).text( cRemoteStorage.getProvider() ).endTag( NAMESPACE, "provider" ); } if ( cRemoteStorage.getUrl() != null ) { serializer.startTag( NAMESPACE, "url" ).text( cRemoteStorage.getUrl() ).endTag( NAMESPACE, "url" ); } if ( cRemoteStorage.getAuthentication() != null ) { writeCRemoteAuthentication( (CRemoteAuthentication) cRemoteStorage.getAuthentication(), "authentication", serializer ); } if ( cRemoteStorage.getConnectionSettings() != null ) { writeCRemoteConnectionSettings( (CRemoteConnectionSettings) cRemoteStorage.getConnectionSettings(), "connectionSettings", serializer ); } serializer.endTag( NAMESPACE, tagName ); } //-- void writeCRemoteStorage( CRemoteStorage, String, XmlSerializer )
.getRemoteStorage().getConnectionSettings()));
.getRemoteStorage().getConnectionSettings() ) );
if ( repo.getRemoteStorage().getConnectionSettings() != null ) prepository.setRemoteConnectionSettings( globalRemoteConnectionSettings.convertAndValidateFromModel( repo.getRemoteStorage().getConnectionSettings() ) );