agave-files/files-core/src/main/java/org/iplantc/service/io/permissions/PermissionManager.java
/**
	 * Checks whether path is the virtual home directory of the user
	 * on the system assigned to the current PermissionManager. The user's
	 * virtual home is defined as:
	 * 
	 * system.storageConfig.rootDir + / + system.storageConfig.homeDir + / username
	 * 
	 * @param path agave path
	 * @return true if cleaned up path is the user home directory
	 */
Checks whether path is the virtual home directory of the user
on the system assigned to the current PermissionManager. The user's
virtual home is defined as.



@param path agave path
@return true if cleaned up path is the user home directory
Checks whether path is the virtual home directory of the user on the system assigned to the current PermissionManager . The user ' s virtual home is defined as . @param path agave path @return true if cleaned up path is the user home directory
public boolean isUserHomeDirOnPublicSystem(String path)
	{
		SimpleTimer st = null;
		if (log.isDebugEnabled()) st = SimpleTimer.start("isUserHomeDirOnPublicSystem");
		if (remoteSystem.isPubliclyAvailable())
		{
			String homeDir;
			try {
				if (remoteDataClient == null) {
					homeDir = remoteSystem.getRemoteDataClient().resolvePath("");
				} else {
					homeDir = remoteDataClient.resolvePath("");
				}
			} catch (Exception e) {
				if (st != null) log.debug(st.getShortStopMsg());
				return false;
			}
			homeDir += "/" + apiUsername;
			homeDir = homeDir.replaceAll("/+", "/");
			if (st != null) log.debug(st.getShortStopMsg());
			return StringUtils.equalsIgnoreCase(cleanPath(path) , homeDir);
		}
		else
		{
			if (st != null) log.debug(st.getShortStopMsg());
			return false;
		}
	}
public boolean isUserHomeDirOnPublicSystem ( String path ) { SimpleTimer st = null ; if ( log . isDebugEnabled ( ) ) st = SimpleTimer . start ( "isUserHomeDirOnPublicSystem" ) ; if ( remoteSystem . isPubliclyAvailable ( ) ) { String homeDir ; try { if ( remoteDataClient == null ) { homeDir = remoteSystem . getRemoteDataClient ( ) . resolvePath ( "" ) ; } else { homeDir = remoteDataClient . resolvePath ( "" ) ; } } catch ( Exception e ) { if ( st != null ) log . debug ( st . getShortStopMsg ( ) ) ; return false ; } homeDir += "/" + apiUsername ; homeDir = homeDir . replaceAll ( "/+" , "/" ) ; if ( st != null ) log . debug ( st . getShortStopMsg ( ) ) ; return StringUtils . equalsIgnoreCase ( cleanPath ( path ) , homeDir ) ; } else { if ( st != null ) log . debug ( st . getShortStopMsg ( ) ) ; return false ; } }
Checks whether path is the virtual home directory of the user
 on the system assigned to the current PermissionManager.
Checks whether path is the virtual home directory of the user on the system assigned to the current PermissionManager .