agave-systems/systems-core/src/main/java/org/iplantc/service/systems/manager/SystemManager.java
/**
	 * Sets the publiclyAvailable flag on the RemoteSystem to true. This is a 
	 * pure db operation and no apps or data are associated with it. Also, it
	 * does not automatically make this the global default system of this type. 
	 * That must be done separately by a super admin using the SystemManager.updateSystem()
	 * method.
	 * 
	 * @param system system to be published
	 * @param apiUsername user calling this action
	 * @return
	 * @throws SystemException
	 */
Sets the publiclyAvailable flag on the RemoteSystem to true. This is a
pure db operation and no apps or data are associated with it. Also, it
does not automatically make this the global default system of this type.
That must be done separately by a super admin using the SystemManager.updateSystem()
method.

@param system system to be published
@param apiUsername user calling this action
@return
@throws SystemException
Sets the publiclyAvailable flag on the RemoteSystem to true . This is a pure db operation and no apps or data are associated with it . Also it does not automatically make this the global default system of this type . That must be done separately by a super admin using the SystemManager . updateSystem () method . @param system system to be published @param apiUsername user calling this action @return @throws SystemException
public RemoteSystem publish(RemoteSystem system, String apiUsername) 
	throws SystemException
	{
		if (system == null) {
			throw new SystemException("No system provided.");
		} else if (system.isPubliclyAvailable()) {
			return system;
		} 
		system.setPubliclyAvailable(true);
		system.setLastUpdated(new Date());
		system.setRevision(system.getRevision() + 1);
		getDao().persist(system);
		getEventProcessor().processPublishEvent(system, SystemEventType.PUBLISH, apiUsername);
		return system;
	}
public RemoteSystem publish ( RemoteSystem system , String apiUsername ) throws SystemException { if ( system == null ) { throw new SystemException ( "No system provided." ) ; } else if ( system . isPubliclyAvailable ( ) ) { return system ; } system . setPubliclyAvailable ( true ) ; system . setLastUpdated ( new Date ( ) ) ; system . setRevision ( system . getRevision ( ) + 1 ) ; getDao ( ) . persist ( system ) ; getEventProcessor ( ) . processPublishEvent ( system , SystemEventType . PUBLISH , apiUsername ) ; return system ; }
Sets the publiclyAvailable flag on the RemoteSystem to true.
Sets the publiclyAvailable flag on the RemoteSystem to true .