agave-common/common-core/src/main/java/org/iplantc/service/common/uuid/UUIDEntityLookup.java
/**
	 * Constructs the software unique name from the query result map passed in.
	 * @param queryResult the map of column names and values returned from the db query
	 * @return the software unique name regardless of public or private app
	 */
Constructs the software unique name from the query result map passed in.
@param queryResult the map of column names and values returned from the db query
@return the software unique name regardless of public or private app
Constructs the software unique name from the query result map passed in . @param queryResult the map of column names and values returned from the db query @return the software unique name regardless of public or private app
private static String buildSoftwareUrl(Map<String, Object> queryResult) {
		String softwareUniqueName = queryResult.get("name") + "-" + queryResult.get("version");
		Object available = queryResult.get("publicly_available");
		if (available instanceof Byte) {
			if ((Byte) queryResult.get("publicly_available") == 1) {
				softwareUniqueName += "u" + ((Integer) queryResult.get("revision_count")).toString();
			}
		} else if (available instanceof Boolean) {
			if ((Boolean) available) {
				softwareUniqueName += "u" + ((Integer) queryResult.get("revision_count")).toString();
			}
		} else if (available instanceof Integer) {
			if ((Integer) queryResult.get("publicly_available") == 1) {
				softwareUniqueName += "u" + ((Integer) queryResult.get("revision_count")).toString();
			}
		}
		return softwareUniqueName;
	}
private static String buildSoftwareUrl ( Map < String , Object > queryResult ) { String softwareUniqueName = queryResult . get ( "name" ) + "-" + queryResult . get ( "version" ) ; Object available = queryResult . get ( "publicly_available" ) ; if ( available instanceof Byte ) { if ( ( Byte ) queryResult . get ( "publicly_available" ) == 1 ) { softwareUniqueName += "u" + ( ( Integer ) queryResult . get ( "revision_count" ) ) . toString ( ) ; } } else if ( available instanceof Boolean ) { if ( ( Boolean ) available ) { softwareUniqueName += "u" + ( ( Integer ) queryResult . get ( "revision_count" ) ) . toString ( ) ; } } else if ( available instanceof Integer ) { if ( ( Integer ) queryResult . get ( "publicly_available" ) == 1 ) { softwareUniqueName += "u" + ( ( Integer ) queryResult . get ( "revision_count" ) ) . toString ( ) ; } } return softwareUniqueName ; }
Constructs the software unique name from the query result map passed in.
Constructs the software unique name from the query result map passed in .