agave-apps/apps-core/src/main/java/org/iplantc/service/apps/managers/ApplicationManager.java
/**
	 * Disables an app from disabled status
	 *
	 * @param software the software to be disabled
	 * @param username the user requesting the software be disabled
	 * @return the disabled software
	 * @throws SoftwareException if the user does not have permission to disable the software, or it cannot be updated
	 */
Disables an app from disabled status
@param software the software to be disabled
@param username the user requesting the software be disabled
@return the disabled software
@throws SoftwareException if the user does not have permission to disable the software, or it cannot be updated
Disables an app from disabled status @param software the software to be disabled @param username the user requesting the software be disabled @return the disabled software @throws SoftwareException if the user does not have permission to disable the software or it cannot be updated
public static Software disableSoftware(Software software, String username)
	throws SoftwareException
	{	
		if (software == null) {
			throw new SoftwareException("No disabled software found matching the given id");
		} else if (!software.isAvailable()) {
			return software;
		}
		software.setAvailable(false);
		SoftwareDao.persist(software);
		SoftwareEventProcessor eventProcessor = new SoftwareEventProcessor();
		eventProcessor.processSoftwareContentEvent(software, 
				SoftwareEventType.DISABLED,
				"App was disabled by user " + username, 
				username);
		return software;
	}
public static Software disableSoftware ( Software software , String username ) throws SoftwareException { if ( software == null ) { throw new SoftwareException ( "No disabled software found matching the given id" ) ; } else if ( ! software . isAvailable ( ) ) { return software ; } software . setAvailable ( false ) ; SoftwareDao . persist ( software ) ; SoftwareEventProcessor eventProcessor = new SoftwareEventProcessor ( ) ; eventProcessor . processSoftwareContentEvent ( software , SoftwareEventType . DISABLED , "App was disabled by user " + username , username ) ; return software ; }
Disables an app from disabled status
 @param software the software to be disabled
 @param username the user requesting the software be disabled
 @return the disabled software
 @throws SoftwareException if the user does not have permission to disable the software, or it cannot be updated
Disables an app from disabled status @param software the software to be disabled @param username the user requesting the software be disabled @return the disabled software @throws SoftwareException if the user does not have permission to disable the software or it cannot be updated