/** * 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().getAuthentication()));
if ( repo.getRemoteStorage() != null && repo.getRemoteStorage().getAuthentication() != null && StringUtils.isNotEmpty( repo.getRemoteStorage().getAuthentication().getPassword() ) ) CRemoteAuthentication auth = repo.getRemoteStorage().getAuthentication(); auth.setPassword( encryptDecryptPassword( auth.getPassword(), encrypt, mask ) );
.getRemoteStorage().getAuthentication() ) );
if ( repo.getRemoteStorage().getAuthentication() != null ) prepository.setRemoteAuthenticationSettings( authenticationInfoConverter.convertAndValidateFromModel( repo.getRemoteStorage().getAuthentication() ) );