agave-metadata/metadata-core/src/main/java/org/iplantc/service/metadata/events/MetadataEventProcessor.java
/**
	 * Generates notification events for content-related changes to a 
	 * {@link MetadataItem}. This could be a CRUD operation or a change
	 * to the credentials.
	 * 
	 * @param uuid the uuid of the metadata item
	 * @param eventType the event being triggered
	 * @param createdBy the user who caused this event
	 * @param serializedMetadataItem the serialized metadata object to include in the message body.
	 */
Generates notification events for content-related changes to a
MetadataItem. This could be a CRUD operation or a change
to the credentials.

@param uuid the uuid of the metadata item
@param eventType the event being triggered
@param createdBy the user who caused this event
@param serializedMetadataItem the serialized metadata object to include in the message body.
Generates notification events for content - related changes to a MetadataItem . This could be a CRUD operation or a change to the credentials . @param uuid the uuid of the metadata item @param eventType the event being triggered @param createdBy the user who caused this event @param serializedMetadataItem the serialized metadata object to include in the message body .
public void processContentEvent(String uuid, MetadataEventType eventType, String createdBy, String serializedMetadataItem) {
		try {
			if (StringUtils.isEmpty(uuid)) {
				throw new EntityEventProcessingException("Valid metadata uuid must be provided to process event.");
			}
			if (eventType == null) {
				throw new EntityEventProcessingException("Valid metadata event type must be provided to process event.");
			}
			if (StringUtils.isEmpty(createdBy)) {
				throw new EntityEventProcessingException("Valid metadata creator username must be provided to process event.");
			}
			if (StringUtils.isEmpty(serializedMetadataItem)) {
				throw new EntityEventProcessingException("Unable to serialize metadata item for processing.");
			}
			String sJson = "{\"metadata\":" + serializedMetadataItem + "}";
			processNotification(uuid, eventType.name(), createdBy, sJson);
		}
		catch (EntityEventProcessingException e) {
			log.error(e.getMessage());
		}
	}
public void processContentEvent ( String uuid , MetadataEventType eventType , String createdBy , String serializedMetadataItem ) { try { if ( StringUtils . isEmpty ( uuid ) ) { throw new EntityEventProcessingException ( "Valid metadata uuid must be provided to process event." ) ; } if ( eventType == null ) { throw new EntityEventProcessingException ( "Valid metadata event type must be provided to process event." ) ; } if ( StringUtils . isEmpty ( createdBy ) ) { throw new EntityEventProcessingException ( "Valid metadata creator username must be provided to process event." ) ; } if ( StringUtils . isEmpty ( serializedMetadataItem ) ) { throw new EntityEventProcessingException ( "Unable to serialize metadata item for processing." ) ; } String sJson = "{\"metadata\":" + serializedMetadataItem + "}" ; processNotification ( uuid , eventType . name ( ) , createdBy , sJson ) ; } catch ( EntityEventProcessingException e ) { log . error ( e . getMessage ( ) ) ; } }
Generates notification events for content-related changes to a
 {@link MetadataItem}.
Generates notification events for content - related changes to a { @link MetadataItem } .
// fire event on monitor //			// We fire delegated monitor chec events on the system associated with this metadata item. // disabling until we get benchmarks. //			for (String associatedUuid: metadata.getAssociations().getRawUuid()) { //				processNotification(associatedUuid, "METADATA_" + eventType.name(), createdBy, sJson); //			}