public static boolean hasContentSpecMetaDataChanged ( final String metaDataName , final String currentValue , final ContentSpecWrapper contentSpecEntity ) { final CSNodeWrapper metaData = contentSpecEntity . getMetaData ( metaDataName ) ; if ( metaData != null && metaData . getAdditionalText ( ) != null && ! metaData . getAdditionalText ( ) . equals ( currentValue ) ) { // The values no longer match return true ; } else if ( ( metaData == null || metaData . getAdditionalText ( ) == null ) && currentValue != null ) { // The meta data node doesn't exist but it exists now return true ; } else { return false ; } }
Checks to see if a Content Spec Meta Data element has changed .