agave-files/files-core/src/main/java/org/iplantc/service/io/manager/LogicalFileManager.java
/**
	 * Creates a logical file from the current system, path, and the passed in owner and format.
	 * Status will be set to STAGING_COMPLETE and the name of the file/folder in the path will be
	 * the logical file name.
	 *  
	 * @param owner
	 * @param nativeFormat
	 * @return LogicalFile
	 * @throws LogicalFileException if the path is invalid or cannot be resolved to an absolute path
	 */
Creates a logical file from the current system, path, and the passed in owner and format.
Status will be set to STAGING_COMPLETE and the name of the file/folder in the path will be
the logical file name.

@param owner
@param nativeFormat
@return LogicalFile
@throws LogicalFileException if the path is invalid or cannot be resolved to an absolute path
Creates a logical file from the current system path and the passed in owner and format . Status will be set to STAGING_COMPLETE and the name of the file / folder in the path will be the logical file name . @param owner @param nativeFormat @return LogicalFile @throws LogicalFileException if the path is invalid or cannot be resolved to an absolute path
public LogicalFile createLogicalFile(String owner, String nativeFormat) throws LogicalFileException 
	{
		try 
		{
			LogicalFile logicalFile = new LogicalFile(owner, 
													system, 
													null, 
													getClient().resolvePath(agavePath), 
													FilenameUtils.getName(agavePath), 
													StagingTaskStatus.STAGING_COMPLETED.name(), 
													nativeFormat);
			logicalFile.setInternalUsername(internalUsername);
			return logicalFile;
		} 
		catch (FileNotFoundException e) {
			throw new LogicalFileException("Invalid path " + agavePath);
		}
		catch(Exception e) {
			throw new LogicalFileException("Failed to resolve path to file on " + system.getSystemId());
		}
	}
public LogicalFile createLogicalFile ( String owner , String nativeFormat ) throws LogicalFileException { try { LogicalFile logicalFile = new LogicalFile ( owner , system , null , getClient ( ) . resolvePath ( agavePath ) , FilenameUtils . getName ( agavePath ) , StagingTaskStatus . STAGING_COMPLETED . name ( ) , nativeFormat ) ; logicalFile . setInternalUsername ( internalUsername ) ; return logicalFile ; } catch ( FileNotFoundException e ) { throw new LogicalFileException ( "Invalid path " + agavePath ) ; } catch ( Exception e ) { throw new LogicalFileException ( "Failed to resolve path to file on " + system . getSystemId ( ) ) ; } }
Creates a logical file from the current system, path, and the passed in owner and format.
Creates a logical file from the current system path and the passed in owner and format .