sparqlGraphLibrary/src/main/java/com/ge/research/semtk/edc/JobTracker.java
private void checkEndpointUserNames(String jobId, Table tab) throws AuthorizationException, Exception {
		// security
	    String userList[] = tab.getColumn("userName");
	    if (userList.length > 0) {
	    	for (String user : userList) {
	    		AuthorizationManager.throwExceptionIfNotJobOwner(user, "jobId=" + jobId);
	    	}
	    } else {
	    	// query returned nothing, check for AuthorizationError so non-owner doesn't see empty results
	    	this.checkJobAuthIfExists(jobId);
	    }
	   
	}
/**
	 * Make sure every row returned from previous query has an authorized userName
	 * @param jobId
	 * @throws AuthorizationException
	 * @throws Exception
	 */
Make sure every row returned from previous query has an authorized userName
@param jobId
@throws AuthorizationException
@throws Exception
Make sure every row returned from previous query has an authorized userName @param jobId @throws AuthorizationException @throws Exception
private void checkEndpointUserNames(String jobId, Table tab) throws AuthorizationException, Exception {
	    String userList[] = tab.getColumn("userName");
	    if (userList.length > 0) {
	    	for (String user : userList) {
	    		AuthorizationManager.throwExceptionIfNotJobOwner(user, "jobId=" + jobId);
	    	}
	    } else {
	    	this.checkJobAuthIfExists(jobId);
	    }
	}
private void checkEndpointUserNames ( String jobId , Table tab ) throws AuthorizationException , Exception { String userList [ ] = tab . getColumn ( "userName" ) ; if ( userList . length > 0 ) { for ( String user : userList ) { AuthorizationManager . throwExceptionIfNotJobOwner ( user , "jobId=" + jobId ) ; } } else { this . checkJobAuthIfExists ( jobId ) ; } }
Make sure every row returned from previous query has an authorized userName
 @param jobId
 @throws AuthorizationException
 @throws Exception
Make sure every row returned from previous query has an authorized userName @param jobId @throws AuthorizationException @throws Exception
// security // query returned nothing, check for AuthorizationError so non-owner doesn't see empty results