@Test public void testGetPath() { PentahoPathModel model = new PentahoPathModel( reportDesignerContext ); assertNotNull( model ); model.setLocalPath( "MySolution/path/to/my/file/myFile.txt" ); assertTrue( "path/to/my/file".equals( model.getPath() ) ); }
public String getPath() { if ( localPath == null ) { return null; } final String normalizedPath = localPath.replace( '\\', '/' ); final String[] path = StringUtils.split( normalizedPath, "/" ); final StringBuilder b = new StringBuilder(); for ( int i = 1; i < path.length - 1; i++ ) { if ( i > 1 ) { b.append( '/' ); } final String pathElement = path[i]; b.append( pathElement ); } return b.toString(); }
PentahoPathModel implements XulEventSource { public String getPath() { if ( localPath == null ) { return null; } final String normalizedPath = localPath.replace( '\\', '/' ); final String[] path = StringUtils.split( normalizedPath, "/" ); final StringBuilder b = new StringBuilder(); for ( int i = 1; i < path.length - 1; i++ ) { if ( i > 1 ) { b.append( '/' ); } final String pathElement = path[i]; b.append( pathElement ); } return b.toString(); } }
PentahoPathModel implements XulEventSource { public String getPath() { if ( localPath == null ) { return null; } final String normalizedPath = localPath.replace( '\\', '/' ); final String[] path = StringUtils.split( normalizedPath, "/" ); final StringBuilder b = new StringBuilder(); for ( int i = 1; i < path.length - 1; i++ ) { if ( i > 1 ) { b.append( '/' ); } final String pathElement = path[i]; b.append( pathElement ); } return b.toString(); } PentahoPathModel( final ReportDesignerContext reportDesignerContext ); }
PentahoPathModel implements XulEventSource { public String getPath() { if ( localPath == null ) { return null; } final String normalizedPath = localPath.replace( '\\', '/' ); final String[] path = StringUtils.split( normalizedPath, "/" ); final StringBuilder b = new StringBuilder(); for ( int i = 1; i < path.length - 1; i++ ) { if ( i > 1 ) { b.append( '/' ); } final String pathElement = path[i]; b.append( pathElement ); } return b.toString(); } 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 String getPath() { if ( localPath == null ) { return null; } final String normalizedPath = localPath.replace( '\\', '/' ); final String[] path = StringUtils.split( normalizedPath, "/" ); final StringBuilder b = new StringBuilder(); for ( int i = 1; i < path.length - 1; i++ ) { if ( i > 1 ) { b.append( '/' ); } final String pathElement = path[i]; b.append( pathElement ); } return b.toString(); } 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; }