@Test public void testSetServerPath() { doReturn( authStore ).when( reportDesignerContext ).getGlobalAuthenticationStore(); PentahoPathModel model = new PentahoPathModel( reportDesignerContext ); assertNotNull( model ); assertNull( model.getServerPath() ); model.setServerPath( SERVER_PATH ); assertTrue( SERVER_PATH.equals( model.getServerPath() ) ); }
public void setServerPath( final String serverPath ) { final String oldServerPath = getServerPath(); if ( ObjectUtilities.equal( oldServerPath, serverPath ) ) { return; } if ( serverPath == null ) { setLoginData( null ); propertyChangeSupport.firePropertyChange( SERVER_PATH_PROPERTY, oldServerPath, null ); return; } AuthenticationData loginData = RepositoryLoginDialog.getStoredLoginData( serverPath, reportDesignerContext ); if ( loginData == null ) { loginData = new AuthenticationData( serverPath ); } setLoginData( loginData ); propertyChangeSupport.firePropertyChange( SERVER_PATH_PROPERTY, oldServerPath, serverPath ); }
PentahoPathModel implements XulEventSource { public void setServerPath( final String serverPath ) { final String oldServerPath = getServerPath(); if ( ObjectUtilities.equal( oldServerPath, serverPath ) ) { return; } if ( serverPath == null ) { setLoginData( null ); propertyChangeSupport.firePropertyChange( SERVER_PATH_PROPERTY, oldServerPath, null ); return; } AuthenticationData loginData = RepositoryLoginDialog.getStoredLoginData( serverPath, reportDesignerContext ); if ( loginData == null ) { loginData = new AuthenticationData( serverPath ); } setLoginData( loginData ); propertyChangeSupport.firePropertyChange( SERVER_PATH_PROPERTY, oldServerPath, serverPath ); } }
PentahoPathModel implements XulEventSource { public void setServerPath( final String serverPath ) { final String oldServerPath = getServerPath(); if ( ObjectUtilities.equal( oldServerPath, serverPath ) ) { return; } if ( serverPath == null ) { setLoginData( null ); propertyChangeSupport.firePropertyChange( SERVER_PATH_PROPERTY, oldServerPath, null ); return; } AuthenticationData loginData = RepositoryLoginDialog.getStoredLoginData( serverPath, reportDesignerContext ); if ( loginData == null ) { loginData = new AuthenticationData( serverPath ); } setLoginData( loginData ); propertyChangeSupport.firePropertyChange( SERVER_PATH_PROPERTY, oldServerPath, serverPath ); } PentahoPathModel( final ReportDesignerContext reportDesignerContext ); }
PentahoPathModel implements XulEventSource { public void setServerPath( final String serverPath ) { final String oldServerPath = getServerPath(); if ( ObjectUtilities.equal( oldServerPath, serverPath ) ) { return; } if ( serverPath == null ) { setLoginData( null ); propertyChangeSupport.firePropertyChange( SERVER_PATH_PROPERTY, oldServerPath, null ); return; } AuthenticationData loginData = RepositoryLoginDialog.getStoredLoginData( serverPath, reportDesignerContext ); if ( loginData == null ) { loginData = new AuthenticationData( serverPath ); } setLoginData( loginData ); propertyChangeSupport.firePropertyChange( SERVER_PATH_PROPERTY, oldServerPath, serverPath ); } PentahoPathModel( final ReportDesignerContext reportDesignerContext ); void registerExtension( final String extension, final boolean local, final boolean noParameter,
      final String profileName ); AuthenticationData getLoginData(); void setLoginData( final AuthenticationData loginData ); String getServerPath(); void setServerPath( final String serverPath ); boolean isUseRemoteServer(); void setUseRemoteServer( final boolean useRemoteServer ); boolean isHideParameterUi(); void setHideParameterUi( final boolean hideParameterUi ); String getLocalPath(); void setLocalPath( final String localPath ); void setLocalPathFromParameter( final DrillDownParameter[] params ); String getPath(); String getName(); String getSolution(); void addPropertyChangeListener( final String propertyName, final PropertyChangeListener listener ); void removePropertyChangeListener( final String propertyName, final PropertyChangeListener listener ); void addPropertyChangeListener( final PropertyChangeListener listener ); void removePropertyChangeListener( final PropertyChangeListener listener ); String getDrillDownProfile(); String[] getExtensions(); }
PentahoPathModel implements XulEventSource { public void setServerPath( final String serverPath ) { final String oldServerPath = getServerPath(); if ( ObjectUtilities.equal( oldServerPath, serverPath ) ) { return; } if ( serverPath == null ) { setLoginData( null ); propertyChangeSupport.firePropertyChange( SERVER_PATH_PROPERTY, oldServerPath, null ); return; } AuthenticationData loginData = RepositoryLoginDialog.getStoredLoginData( serverPath, reportDesignerContext ); if ( loginData == null ) { loginData = new AuthenticationData( serverPath ); } setLoginData( loginData ); propertyChangeSupport.firePropertyChange( SERVER_PATH_PROPERTY, oldServerPath, serverPath ); } PentahoPathModel( final ReportDesignerContext reportDesignerContext ); void registerExtension( final String extension, final boolean local, final boolean noParameter,
      final String profileName ); AuthenticationData getLoginData(); void setLoginData( final AuthenticationData loginData ); String getServerPath(); void setServerPath( final String serverPath ); boolean isUseRemoteServer(); void setUseRemoteServer( final boolean useRemoteServer ); boolean isHideParameterUi(); void setHideParameterUi( final boolean hideParameterUi ); String getLocalPath(); void setLocalPath( final String localPath ); void setLocalPathFromParameter( final DrillDownParameter[] params ); String getPath(); String getName(); String getSolution(); void addPropertyChangeListener( final String propertyName, final PropertyChangeListener listener ); void removePropertyChangeListener( final String propertyName, final PropertyChangeListener listener ); void addPropertyChangeListener( final PropertyChangeListener listener ); void removePropertyChangeListener( final PropertyChangeListener listener ); String getDrillDownProfile(); String[] getExtensions(); static final String USE_REMOTE_SERVER_PROPERTY; static final String HIDE_PARAMETER_UI_PROPERTY; static final String SERVER_PATH_PROPERTY; static final String LOGIN_DATA_PROPERTY; static final String LOCAL_PATH_PROPERTY; }