agave-monitors/monitors-core/src/main/java/org/iplantc/service/monitor/model/enumeration/StartupScriptMonitorVariableType.java
/**
	 * Resolves a template variable into the actual value for the
	 * monitor. Tenancy is honored with respect to the monitor.
	 * 
	 * @param monitor A valid monitor object
	 * @return resolved value of the variable.
	 */
Resolves a template variable into the actual value for the
monitor. Tenancy is honored with respect to the monitor.

@param monitor A valid monitor object
@return resolved value of the variable.
Resolves a template variable into the actual value for the monitor . Tenancy is honored with respect to the monitor . @param monitor A valid monitor object @return resolved value of the variable .
public String resolveForSystem(MonitorCheck monitorCheck)
	{	
		if (this == MONITOR_ID)
		{
			return monitorCheck.getMonitor().getUuid();
		}
		else if (this == MONITOR_OWNER)
		{
			return monitorCheck.getMonitor().getOwner();
		}
		else if (this == MONITOR_CHECK_ID)
		{
			return monitorCheck.getUuid();
		}
		else {
			throw new NotYetImplementedException("The startupScript variable " + name() + " is not yet supported.");
		}
	}
public String resolveForSystem ( MonitorCheck monitorCheck ) { if ( this == MONITOR_ID ) { return monitorCheck . getMonitor ( ) . getUuid ( ) ; } else if ( this == MONITOR_OWNER ) { return monitorCheck . getMonitor ( ) . getOwner ( ) ; } else if ( this == MONITOR_CHECK_ID ) { return monitorCheck . getUuid ( ) ; } else { throw new NotYetImplementedException ( "The startupScript variable " + name ( ) + " is not yet supported." ) ; } }
Resolves a template variable into the actual value for the
 monitor.
Resolves a template variable into the actual value for the monitor .