}
return false;
}
public Job getJobInfo( String jobId ) throws SchedulerException {
Job job = getJob( jobId );
if ( getSecurityHelper().isPentahoAdministrator( getSession() )
|| getSession().getName().equals( job.getUserName() ) ) {
for ( String key : job.getJobParams().keySet() ) {
Serializable value = job.getJobParams().get( key );
if ( value.getClass().isArray() ) {
String[] sa = ( new String[0] ).getClass().cast( value );
ArrayList<String> list = new ArrayList<String>();
for ( int i = 0; i < sa.length; i++ ) {
list.add( sa[i] );
}
job.getJobParams().put( key, list );
}
}
return job;
} else {
throw new RuntimeException( "Job not found or improper credentials for access" );